Bug 9553 - error in re-setting breakpoint for position independent executable.
Summary: error in re-setting breakpoint for position independent executable.
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: gdb (show other bugs)
Version: 6.8
: P3 normal
Target Milestone: 7.1
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-15 10:18 IST by pluto
Modified: 2010-08-24 21:38 IST (History)
1 user (show)

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


Attachments
0.tgz (3.37 KB, application/octet-stream)
, pluto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pluto 2008-04-15 10:18:01 IST
[Converted from Gnats 2448]



Release:
gdb-6.8

Environment:
gcc-4.3.0, glibc-2.7, kernel-2.6.24.4.

How-To-Repeat:
$ gcc 0.c -o 0 -fpie -pie -g2
$ gdb ./0
(gdb) break main
Breakpoint 1 at 0x6d8: file 0.c, line 3.
(gdb) r
Starting program: /home/users/pluto/src/0/0
Error in re-setting breakpoint 1: Cannot access memory at address 0x6d4
Error in re-setting breakpoint 1: Cannot access memory at address 0x6d4

Program exited normally.
Comment 1 Pawel Sikora 2009-03-12 09:47:22 IST
ping,

the gdb from FC works with -fpie executables.
could some gdb guru look at http://cvs.fedora.redhat.com/viewvc/devel/gdb/
and apply suitable fix to gdb repository?
Comment 2 Tom Tromey 2010-08-24 21:38:58 IST
The PIE patches are all in.
I think they were in 7.1.