diff options
author | jhb <jhb@FreeBSD.org> | 2008-06-18 14:23:28 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2008-06-18 14:23:28 +0000 |
commit | 7941cfc2566ce8f86a00dd1c2f4b4b83b5cdbaf2 (patch) | |
tree | c0535aae766474e4e685fd5d19a2c5f48bfffeed /gnu | |
parent | 9b1f265839058799225725206f2924fe915d4efb (diff) | |
download | FreeBSD-src-7941cfc2566ce8f86a00dd1c2f4b4b83b5cdbaf2.zip FreeBSD-src-7941cfc2566ce8f86a00dd1c2f4b4b83b5cdbaf2.tar.gz |
Catch up to recentish kgdb changes:
- Use ptid_get_pid() rather than ptid_get_tid() (part of the changes to
let 'tid' work for remote kgdb).
- Add a stub kgdb_trgt_new_objfile() hook.
Silence from: obrien, mips@
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/gdb/kgdb/trgt_mips.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/usr.bin/gdb/kgdb/trgt_mips.c b/gnu/usr.bin/gdb/kgdb/trgt_mips.c index 822c90e..92d6f23 100644 --- a/gnu/usr.bin/gdb/kgdb/trgt_mips.c +++ b/gnu/usr.bin/gdb/kgdb/trgt_mips.c @@ -54,7 +54,7 @@ kgdb_trgt_fetch_registers(int regno __unused) struct kthr *kt; struct pcb pcb; - kt = kgdb_thr_lookup_tid(ptid_get_tid(inferior_ptid)); + kt = kgdb_thr_lookup_tid(ptid_get_pid(inferior_ptid)); if (kt == NULL) return; if (kvm_read(kvm, kt->pcb, &pcb, sizeof(pcb)) != sizeof(pcb)) { @@ -82,6 +82,11 @@ kgdb_trgt_store_registers(int regno __unused) fprintf_unfiltered(gdb_stderr, "XXX: %s\n", __func__); } +void +kgdb_trgt_new_objfile(struct objfile *objfile) +{ +} + struct kgdb_frame_cache { CORE_ADDR pc; CORE_ADDR sp; |