diff options
author | Daniel Jacobowitz <drow@false.org> | 2003-01-05 01:39:56 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2003-01-05 01:39:56 +0000 |
commit | 516034834f1bcade05e3dcd85e9c7c8b899adbd6 (patch) | |
tree | 7dfa0fc3ff5a3e7da16a50ff725fac9a561d7ec8 /gdb/config/m68k | |
parent | 95f90d2595724210a3f27456baeb6eed02ece2bc (diff) | |
download | gdb-516034834f1bcade05e3dcd85e9c7c8b899adbd6.zip gdb-516034834f1bcade05e3dcd85e9c7c8b899adbd6.tar.gz gdb-516034834f1bcade05e3dcd85e9c7c8b899adbd6.tar.bz2 |
* arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
* d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
* hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
* blockframe.c: Include "gdbcmd.h" and "command.h".
(backtrace_below_main): New variable.
(file_frame_chain_valid, func_frame_chain_valid)
(nonnull_frame_chain_valid, generic_file_frame_chain_valid)
(generic_func_frame_chain_valid): Remove functions.
(frame_chain_valid, do_flush_frames_sfunc): New functions.
(_initialize_blockframe): New function.
* Makefile.in (blockframe.o): Update dependencies.
* frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
comment. Call frame_chain_valid ().
* frame.h: Remove old prototypes. Add prototype for
frame_chain_valid and update comments to match.
* gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
Remove old comment.
* gdbarch.h: Regenerated.
* gdbarch.c: Regenerated.
Plus updates to all other targets not to provide a FRAME_CHAIN_VALID.
Diffstat (limited to 'gdb/config/m68k')
-rw-r--r-- | gdb/config/m68k/tm-apollo68b.h | 4 | ||||
-rw-r--r-- | gdb/config/m68k/tm-m68kv4.h | 6 | ||||
-rw-r--r-- | gdb/config/m68k/tm-monitor.h | 7 | ||||
-rw-r--r-- | gdb/config/m68k/tm-os68k.h | 10 | ||||
-rw-r--r-- | gdb/config/m68k/tm-vx68.h | 11 |
5 files changed, 6 insertions, 32 deletions
diff --git a/gdb/config/m68k/tm-apollo68b.h b/gdb/config/m68k/tm-apollo68b.h index d43eec9..f0b7488 100644 --- a/gdb/config/m68k/tm-apollo68b.h +++ b/gdb/config/m68k/tm-apollo68b.h @@ -1,5 +1,5 @@ /* Parameters for execution on Apollo 68k running BSD. - Copyright 1986, 1987, 1989, 1991, 1993, 1994, 1998 + Copyright 1986, 1987, 1989, 1991, 1993, 1994, 1998, 2003 Free Software Foundation, Inc. Contributed by Cygnus Support. @@ -26,8 +26,6 @@ #include "m68k/tm-m68k.h" -#define FRAME_CHAIN_VALID(chain, thisframe) nonnull_frame_chain_valid (chain, thisframe) - /* These are the jmp_buf registers I could guess. There are 13 registers * in the buffer. There are 8 data registers, 6 general address registers, * the Frame Pointer, the Stack Pointer, the PC and the SR in the chip. I would diff --git a/gdb/config/m68k/tm-m68kv4.h b/gdb/config/m68k/tm-m68kv4.h index 275ab62..11bb122 100644 --- a/gdb/config/m68k/tm-m68kv4.h +++ b/gdb/config/m68k/tm-m68kv4.h @@ -1,6 +1,6 @@ /* Target definitions for GDB on a Motorola 680x0 running SVR4. (Commodore Amiga with amix or Atari TT with ASV) - Copyright 1991, 1994, 1995, 1996, 1998, 1999, 2000 + Copyright 1991, 1994, 1995, 1996, 1998, 1999, 2000, 2003 Free Software Foundation, Inc. Written by Fred Fish at Cygnus Support (fnf@cygint) @@ -30,10 +30,6 @@ #define DECR_PC_AFTER_BREAK 0 /* No decrement required */ -/* Use the alternate method of determining valid frame chains. */ - -#define FRAME_CHAIN_VALID(fp,fi) func_frame_chain_valid (fp, fi) - #include "config/tm-sysv4.h" #include "m68k/tm-m68k.h" diff --git a/gdb/config/m68k/tm-monitor.h b/gdb/config/m68k/tm-monitor.h index 6d38b55..1b00a8f 100644 --- a/gdb/config/m68k/tm-monitor.h +++ b/gdb/config/m68k/tm-monitor.h @@ -1,5 +1,5 @@ /* Target machine definitions for a generic m68k monitor/emulator. - Copyright 1986, 1987, 1989, 1993, 1994, 1995, 1996, 1998, 1999 + Copyright 1986, 1987, 1989, 1993, 1994, 1995, 1996, 1998, 1999, 2003 Free Software Foundation, Inc. This file is part of GDB. @@ -38,9 +38,4 @@ #include "m68k/tm-m68k.h" -/* Need to do this for ELF targets, where we can't figure out the boundaries of - the entry file. This method stops the backtrace when we reach main. */ - -#define FRAME_CHAIN_VALID(fp,fi) func_frame_chain_valid (fp, fi) - /* FIXME, should do GET_LONGJMP_TARGET for newlib. */ diff --git a/gdb/config/m68k/tm-os68k.h b/gdb/config/m68k/tm-os68k.h index ed1d5c8..2954570 100644 --- a/gdb/config/m68k/tm-os68k.h +++ b/gdb/config/m68k/tm-os68k.h @@ -1,5 +1,5 @@ /* Parameters for execution on VxWorks m68k's, for GDB, the GNU debugger. - Copyright 1986, 1987, 1989, 1991, 1998 Free Software Foundation, Inc. + Copyright 1986, 1987, 1989, 1991, 1998, 2003 Free Software Foundation, Inc. Contributed by Cygnus Support. This file is part of GDB. @@ -37,11 +37,3 @@ #undef FRAME_CHAIN #define FRAME_CHAIN(thisframe) ((thisframe)->frame? read_memory_integer ((thisframe)->frame, 4): 0) - -/* If the chain pointer is zero (either because the saved value fetched - by FRAME_CHAIN was zero, or because the current FP was zero so FRAME_CHAIN - never fetched anything), we are at the top of the stack. */ -/* We are guaranteed to have a zero frame pointer at bottom of stack, too. */ - -#undef FRAME_CHAIN_VALID -#define FRAME_CHAIN_VALID(chain, thisframe) nonnull_frame_chain_valid (chain, thisframe) diff --git a/gdb/config/m68k/tm-vx68.h b/gdb/config/m68k/tm-vx68.h index ea27ac4..76ac6fd 100644 --- a/gdb/config/m68k/tm-vx68.h +++ b/gdb/config/m68k/tm-vx68.h @@ -1,5 +1,6 @@ /* Target machine description for VxWorks m68k's, for GDB, the GNU debugger. - Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1996, 1998, 1999, 2000 + Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1996, 1998, 1999, 2000, + 2002, 2003 Free Software Foundation, Inc. Contributed by Cygnus Support. @@ -41,14 +42,6 @@ #undef FRAME_CHAIN #define FRAME_CHAIN(thisframe) ((thisframe)->frame? read_memory_integer ((thisframe)->frame, 4): 0) -/* If the chain pointer is zero (either because the saved value fetched - by FRAME_CHAIN was zero, or because the current FP was zero so FRAME_CHAIN - never fetched anything), we are at the top of the stack. */ -/* We are guaranteed to have a zero frame pointer at bottom of stack, too. */ - -#undef FRAME_CHAIN_VALID -#define FRAME_CHAIN_VALID(chain, thisframe) nonnull_frame_chain_valid (chain, thisframe) - /* FIXME, Longjmp information stolen from Sun-3 config. Dunno if right. */ /* Offsets (in target ints) into jmp_buf. Not defined by Sun, but at least documented in a comment in <machine/setjmp.h>! */ |