Does gdb support PIE?

H. J. Lu hjl@lucon.org
Tue Jan 31 19:03:00 GMT 2006


I got

[hjl@gnu-16 pie-5]$ gdb pie
GNU gdb 6.4.50.20060115-cvs
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "x86_64-unknown-linux-gnu"...Using host
libthread_db library "/lib64/tls/libthread_db.so.1".

(gdb) b main
Breakpoint 1 at 0x918: file main.c, line 6.
(gdb) r
Starting program: /export/home/hjl/bugs/binutils/pie-5/pie
Warning:
Cannot insert breakpoint 1.
Error accessing memory address 0x918: Input/output error.


H.J.



More information about the Gdb mailing list