This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/13987] jit debug interface fails attaching to pieexecutables


http://sourceware.org/bugzilla/show_bug.cgi?id=13987

--- Comment #4 from Paul Pluzhnikov <ppluzhnikov at google dot com> 2012-10-13 03:21:57 UTC ---
Just hit this while debugging native process from the start:

cat t.c
void __jit_debug_register_code() { }
int __jit_debug_descriptor[] = { 1, 0, 0, 0, };
int main() { return 0; }

gcc -g -fPIE -pie t.c

gdb
GNU gdb (GDB) 7.5.50.20121013-cvs
...
(gdb) set debug jit 1
(gdb) file ./a.out
Reading symbols from /tmp/a.out...done.
jit_inferior_init
jit_read_descriptor, descriptor_addr = 0x201020
jit_breakpoint_re_set_internal, breakpoint_addr = 0x72c
(gdb) run
Starting program: /tmp/a.out 
Warning:
Cannot insert breakpoint -1.
Error accessing memory address 0x72c: Input/output error.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]