Date: Fri, 14 Jul 2006 00:54:22 GMT From: Olivier Houchard <cognet@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 101496 for review Message-ID: <200607140054.k6E0sMFF099840@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=101496 Change 101496 by cognet@cognet on 2006/07/14 00:53:49 #ifndef CROSS_DEBUGGER any MD bits in trgt_arm.c, to be able to build a cross-kgdb. Affected files ... .. //depot/projects/arm/gnu-arm.diff#13 edit Differences ... ==== //depot/projects/arm/gnu-arm.diff#13 (text+ko) ==== @@ -1016,8 +1016,8 @@ RCS file: gnu/usr.bin/gdb/kgdb/trgt_arm.c diff -N gnu/usr.bin/gdb/kgdb/trgt_arm.c --- /dev/null 1 Jan 1970 00:00:00 -0000 -+++ gnu/usr.bin/gdb/kgdb/trgt_arm.c 6 Jul 2006 23:54:06 -0000 -@@ -0,0 +1,224 @@ ++++ gnu/usr.bin/gdb/kgdb/trgt_arm.c 14 Jul 2006 00:49:04 -0000 +@@ -0,0 +1,232 @@ +/* + * Copyright (c) 2004 Marcel Moolenaar + * All rights reserved. @@ -1048,9 +1048,11 @@ +__FBSDID("$FreeBSD$"); + +#include <sys/types.h> ++#ifndef CROSS_DEBUGGER +#include <machine/pcb.h> +#include <machine/frame.h> +#include <machine/armreg.h> ++#endif +#include <err.h> +#include <kvm.h> +#include <string.h> @@ -1068,6 +1070,7 @@ +void +kgdb_trgt_fetch_registers(int regno __unused) +{ ++#ifndef CROSS_DEBUGGER + struct kthr *kt; + struct pcb pcb; + int i, reg; @@ -1097,6 +1100,7 @@ + else + supply_register(ARM_PC_REGNUM, (char *)®); + } ++#endif +} + +void @@ -1105,6 +1109,7 @@ + fprintf_unfiltered(gdb_stderr, "XXX: %s\n", __func__); +} + ++#ifndef CROSS_DEBUGGER +struct kgdb_frame_cache { + CORE_ADDR fp; + CORE_ADDR sp; @@ -1214,10 +1219,12 @@ + &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; + @@ -1240,5 +1247,6 @@ + is_undef = 1; + else + is_undef = 0; ++#endif + return (NULL); +}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607140054.k6E0sMFF099840>