]> git.pld-linux.org Git - packages/gdb.git/blob - gdb-6.3-ia64-corefile-fix-20050127.patch
- update to gdb-7.0-7.fc12.src.rpm; but leave cactus patches as these seem newer
[packages/gdb.git] / gdb-6.3-ia64-corefile-fix-20050127.patch
1 2005-01-25  Jeff Johnston  <jjohnstn@redhat.com>
2
3         * ia64-tdep.c (getunwind_table): Call the low-level xfer
4         unwind table syscall to support backtracing from syscalls in
5         a corefile.
6
7 Index: gdb-6.5/gdb/ia64-tdep.c
8 ===================================================================
9 --- gdb-6.5.orig/gdb/ia64-tdep.c        2006-04-18 16:20:06.000000000 -0300
10 +++ gdb-6.5/gdb/ia64-tdep.c     2006-07-07 02:18:40.000000000 -0300
11 @@ -2470,8 +2470,17 @@ getunwind_table (void *buf, size_t len)
12       we want to preserve fall back to the running kernel's table, then
13       we should find a way to override the corefile layer's
14       xfer_partial method.  */
15 +#if 0
16    x = target_read_partial (&current_target, TARGET_OBJECT_UNWIND_TABLE, NULL,
17                            buf, 0, len);
18 +#endif
19 +  /* FIXME: This is a temporary solution to backtracing syscalls in corefiles.
20 +            To do this properly, the AUXV section should be used.  This
21 +           fix will work as long as the kernel used to generate the corefile
22 +           is equivalent to the kernel used to debug the corefile.  */
23 +  x = ia64_linux_xfer_unwind_table (&current_target,
24 +                                   TARGET_OBJECT_UNWIND_TABLE, NULL,
25 +                                   buf, NULL, 0, len);
26  
27    return (int)x;
28  }
This page took 0.043112 seconds and 3 git commands to generate.