This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] gdbarch.c(gdbarch_dump)
Jimmy Guo wrote:
>
> This patch is to prevent sizeof.exp 'maint print arch' to trigger
> gdb_internal_error (). inferior.h defines default to be the
> gdb_internal_error () call.
Hmm, this needs some tinkering with gdbarch.sh :-(
Andrew
> Fri Jul 28 13:01:35 Jimmy Guo <guo@cup.hp.com>
>
> * gdbarch.c (gdbarch_dump): dump CALL_DUMMY_BREAKPOINT_OFFSET value
> only if CALL_DUMMY_BREAKPOINT_OFFSET_P.
>
> Index: gdbarch.c
> /usr/local/bin/diff -c -L gdbarch.c gdbarch.c@@/main/_guo_unified_merge/7 gdbarch.c
> *** gdbarch.c
> --- gdbarch.c Fri Jul 28 12:51:17 2000
> ***************
> *** 1456,1464 ****
> (long) CALL_DUMMY_START_OFFSET);
> #endif
> #ifdef CALL_DUMMY_BREAKPOINT_OFFSET
> ! fprintf_unfiltered (file,
> ! "gdbarch_dump: CALL_DUMMY_BREAKPOINT_OFFSET = 0x%08lx\n",
> ! (long) CALL_DUMMY_BREAKPOINT_OFFSET);
> #endif
> #ifdef CALL_DUMMY_BREAKPOINT_OFFSET_P
> fprintf_unfiltered (file,
> --- 1456,1465 ----
> (long) CALL_DUMMY_START_OFFSET);
> #endif
> #ifdef CALL_DUMMY_BREAKPOINT_OFFSET
> ! if (CALL_DUMMY_BREAKPOINT_OFFSET_P)
> ! fprintf_unfiltered (file,
> ! "gdbarch_dump: CALL_DUMMY_BREAKPOINT_OFFSET = 0x%08lx\n",
> ! (long) CALL_DUMMY_BREAKPOINT_OFFSET);
> #endif
> #ifdef CALL_DUMMY_BREAKPOINT_OFFSET_P
> fprintf_unfiltered (file,