Bug 12897 - gdb fails to insert breakpoint in pie executable
Summary: gdb fails to insert breakpoint in pie executable
Status: RESOLVED OBSOLETE
Alias: None
Product: gdb
Classification: Unclassified
Component: breakpoints (show other bugs)
Version: 7.2
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-16 05:35 UTC by rogelio.serrano@gmail.com
Modified: 2014-09-12 23:00 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rogelio.serrano@gmail.com 2011-06-16 05:35:54 UTC
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/rogelio/a.out...done.
(gdb) b main
Breakpoint 1 at 0x640: file dummy.c, line 1.
(gdb) r
Starting program: /home/rogelio/a.out 
Warning:
Cannot insert breakpoint 1.
Error accessing memory address 0x13a8342640: Input/output error.
Cannot insert breakpoint -1.
Temporarily disabling shared library breakpoints:
breakpoint #-1
Comment 1 Tom Tromey 2011-07-29 20:26:41 UTC
Can you provide a test source file and instructions for building it?
A simple PIE test on my machine (Fedora 15) works fine with gdb.
Comment 2 Sergio Durigan Junior 2014-09-12 23:00:58 UTC
Closing as OBSOLETE due to inactivity.  Feel free to reopen if still valid.