Patch for kgdb
John Baldwin
jhb at freebsd.org
Fri May 23 20:15:56 UTC 2008
These are the changes I mentioned earlier to David to catch the kgdb mips
support up to the recent changes to kgdb. What is there now won't compile
(binary can't link) and also won't work.
--- //depot/vendor/freebsd/src/gnu/usr.bin/gdb/kgdb/trgt_mips.c 2008/05/20 23:42:06
+++ //depot/user/jhb/kgdb/gnu/usr.bin/gdb/kgdb/trgt_mips.c 2008/05/23 19:12:28
@@ -54,7 +54,7 @@
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 @@
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;
--
John Baldwin
More information about the freebsd-mips
mailing list