diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2003-11-14 20:49:23 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2003-11-14 20:49:23 +0000 |
commit | 287a334e725d8a095303b6017b725e511319ff8a (patch) | |
tree | f2a62a948ee4695d9d35008f7e31fb6e50f56b38 /gdb/ia64-linux-nat.c | |
parent | 140be7b8100ca97b1334515f3eee0f860079531f (diff) | |
download | gdb-287a334e725d8a095303b6017b725e511319ff8a.zip gdb-287a334e725d8a095303b6017b725e511319ff8a.tar.gz gdb-287a334e725d8a095303b6017b725e511319ff8a.tar.bz2 |
2003-11-14 Jeff Johnston <jjohnstn@redhat.com>
* config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
set up the ia64 linux native target method for getting the kernel
unwind table.
* ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
* inftarg.c (child_xfer_partial): Enable section of code to
handle TARGET_OBJECT_UNWIND_TABLE.
* target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
Diffstat (limited to 'gdb/ia64-linux-nat.c')
-rw-r--r-- | gdb/ia64-linux-nat.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/ia64-linux-nat.c b/gdb/ia64-linux-nat.c index a2ca8fa..00f66fb 100644 --- a/gdb/ia64-linux-nat.c +++ b/gdb/ia64-linux-nat.c @@ -34,6 +34,7 @@ #ifdef HAVE_SYS_REG_H #include <sys/reg.h> #endif +#include <sys/syscall.h> #include <sys/user.h> #include <asm/ptrace_offsets.h> @@ -645,3 +646,13 @@ ia64_linux_stopped_by_watchpoint (ptid_t ptid) return (CORE_ADDR) siginfo.si_addr; } + +LONGEST +ia64_linux_xfer_unwind_table (struct target_ops *ops, + enum target_object object, + const char *annex, + void *readbuf, const void *writebuf, + ULONGEST offset, LONGEST len) +{ + return syscall (__NR_getunwind, readbuf, len); +} |