This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/13987] jit debug interface fails attaching to pieexecutables
- From: "ppluzhnikov at google dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sat, 13 Oct 2012 03:21:57 +0000
- Subject: [Bug gdb/13987] jit debug interface fails attaching to pieexecutables
- Auto-submitted: auto-generated
- References: <bug-13987-4717@http.sourceware.org/bugzilla/>
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.