Re: [PATCH] gdbarch.sh gdbarch.c

Jimmy Guo
2000-08-02T15:19:00Z

FYI I've comitted this.

- Jimmy

On Fri, 28 Jul 2000, Jimmy Guo wrote:

>On Sat, 29 Jul 2000, Andrew Cagney wrote:
>
>>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
>
>OK, here is the complete deal: gdbarch.sh and gdbarch.c:
>
>Fri Jul 28 20:35:27 Jimmy Guo <guo@cup.hp.com>
>
> * gdbarch.sh: Add print_p field for CALL_DUMMY_BREAKPINT_OFFSET
> to be printed only if CALL_DUMMY_BREAKPOINT_OFFSET_P.
>
> * gdbarch.c: Regenerated.
>
>Index: gdbarch.sh
>/usr/local/bin/diff -c -L gdbarch.sh gdbarch.sh@@/GDB_2000_07_24 gdbarch.sh
>*** gdbarch.sh
>--- gdbarch.sh Fri Jul 28 20:33:01 2000
>***************
>*** 314,320 ****
> v:2:CALL_DUMMY_LOCATION:int:call_dummy_location::::0:0
> f:2:CALL_DUMMY_ADDRESS:CORE_ADDR:call_dummy_address:void:::0:0::gdbarch->call_dummy_location == AT_ENTRY_POINT && gdbarch->call_dummy_address == 0
> v:2:CALL_DUMMY_START_OFFSET:CORE_ADDR:call_dummy_start_offset::::0:-1:::0x%08lx
>! v:2:CALL_DUMMY_BREAKPOINT_OFFSET:CORE_ADDR:call_dummy_breakpoint_offset::::0:-1:::0x%08lx
> v:1:CALL_DUMMY_BREAKPOINT_OFFSET_P:int:call_dummy_breakpoint_offset_p::::0:-1
> v:2:CALL_DUMMY_LENGTH:int:call_dummy_length::::0:-1:::::CALL_DUMMY_LOCATION == BEFORE_TEXT_END || CALL_DUMMY_LOCATION == AFTER_TEXT_END
> f:2:PC_IN_CALL_DUMMY:int:pc_in_call_dummy:CORE_ADDR pc, CORE_ADDR sp, CORE_ADDR frame_address:pc, sp, frame_address::0:0
>--- 314,320 ----
> v:2:CALL_DUMMY_LOCATION:int:call_dummy_location::::0:0
> f:2:CALL_DUMMY_ADDRESS:CORE_ADDR:call_dummy_address:void:::0:0::gdbarch->call_dummy_location == AT_ENTRY_POINT && gdbarch->call_dummy_address == 0
> v:2:CALL_DUMMY_START_OFFSET:CORE_ADDR:call_dummy_start_offset::::0:-1:::0x%08lx
>! v:2:CALL_DUMMY_BREAKPOINT_OFFSET:CORE_ADDR:call_dummy_breakpoint_offset::::0:-1:::0x%08lx::CALL_DUMMY_BREAKPOINT_OFFSET_P
> v:1:CALL_DUMMY_BREAKPOINT_OFFSET_P:int:call_dummy_breakpoint_offset_p::::0:-1
> v:2:CALL_DUMMY_LENGTH:int:call_dummy_length::::0:-1:::::CALL_DUMMY_LOCATION == BEFORE_TEXT_END || CALL_DUMMY_LOCATION == AFTER_TEXT_END
> f:2:PC_IN_CALL_DUMMY:int:pc_in_call_dummy:CORE_ADDR pc, CORE_ADDR sp, CORE_ADDR frame_address:pc, sp, frame_address::0:0
>Index: gdbarch.c
>/usr/local/bin/diff -c -L gdbarch.c gdbarch.c@@/GDB_2000_07_24 gdbarch.c
>*** gdbarch.c
>--- gdbarch.c Fri Jul 28 20:33:37 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,