diff options
author | gonzo <gonzo@FreeBSD.org> | 2010-11-07 23:23:48 +0000 |
---|---|---|
committer | gonzo <gonzo@FreeBSD.org> | 2010-11-07 23:23:48 +0000 |
commit | f9ccde4a24ffbcf76b515ce4acfa1f256d20b1f7 (patch) | |
tree | 086d3a6f2181c38579e1f027c138ff9dcb8015db /gnu/usr.bin | |
parent | 732dc4d1092c6380ade231fa17ee8d557462dedf (diff) | |
download | FreeBSD-src-f9ccde4a24ffbcf76b515ce4acfa1f256d20b1f7.zip FreeBSD-src-f9ccde4a24ffbcf76b515ce4acfa1f256d20b1f7.tar.gz |
Fix cross-debugger build
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/gdb/kgdb/trgt_mips.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/usr.bin/gdb/kgdb/trgt_mips.c b/gnu/usr.bin/gdb/kgdb/trgt_mips.c index 5e4b4ef..423cacd 100644 --- a/gnu/usr.bin/gdb/kgdb/trgt_mips.c +++ b/gnu/usr.bin/gdb/kgdb/trgt_mips.c @@ -46,13 +46,16 @@ __FBSDID("$FreeBSD$"); #include <frame-unwind.h> #include <mips-tdep.h> +#ifndef CROSS_DEBUGGER #include <machine/pcb.h> +#endif #include "kgdb.h" void kgdb_trgt_fetch_registers(int regno __unused) { +#ifndef CROSS_DEBUGGER struct kthr *kt; struct pcb pcb; @@ -76,6 +79,7 @@ kgdb_trgt_fetch_registers(int regno __unused) supply_register(MIPS_FP_REGNUM, (char *)&pcb.pcb_context[PCB_REG_GP]); supply_register(MIPS_RA_REGNUM, (char *)&pcb.pcb_context[PCB_REG_RA]); supply_register(MIPS_EMBED_PC_REGNUM, (char *)&pcb.pcb_context[PCB_REG_PC]); +#endif } void @@ -90,6 +94,7 @@ kgdb_trgt_new_objfile(struct objfile *objfile) { } +#ifndef CROSS_DEBUGGER struct kgdb_frame_cache { CORE_ADDR pc; CORE_ADDR sp; @@ -194,10 +199,12 @@ static const struct frame_unwind kgdb_trgt_trapframe_unwind = { &kgdb_trgt_trapframe_this_id, &kgdb_trgt_trapframe_prev_register }; +#endif const struct frame_unwind * kgdb_trgt_trapframe_sniffer(struct frame_info *next_frame) { +#ifndef CROSS_DEBUGGER char *pname; CORE_ADDR pc; @@ -211,5 +218,6 @@ kgdb_trgt_trapframe_sniffer(struct frame_info *next_frame) (strcmp(pname, "MipsUserIntr") == 0) || (strcmp(pname, "MipsUserGenException") == 0)) return (&kgdb_trgt_trapframe_unwind); +#endif return (NULL); } |