diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-02-18 15:59:14 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-02-18 15:59:14 +0000 |
commit | 7f55af320dacaf5665b1ab6b1530fbed20a07dbf (patch) | |
tree | c84e6eef693792dc9f7b8b640ad4bb3db9c672d6 /gdb/gdbarch.h | |
parent | 05f13b9c26569280ca83876cc51e359466d9e404 (diff) | |
download | gdb-7f55af320dacaf5665b1ab6b1530fbed20a07dbf.zip gdb-7f55af320dacaf5665b1ab6b1530fbed20a07dbf.tar.gz gdb-7f55af320dacaf5665b1ab6b1530fbed20a07dbf.tar.bz2 |
* gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
Default to func_frame_chain_valid.
* gdbarch.h, gdbarch.c: Re-generate.
* frame.h (FRAME_CHAIN_VALID): Delete definition.
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r-- | gdb/gdbarch.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index 2dba00f..81f5174 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -1812,16 +1812,27 @@ extern void set_gdbarch_frame_chain (struct gdbarch *gdbarch, gdbarch_frame_chai #endif #endif -/* See comments on DUMMY_FRAME for why this is required at level 1. */ +/* Define a default FRAME_CHAIN_VALID, in the form that is suitable for + most targets. If FRAME_CHAIN_VALID returns zero it means that the + given frame is the outermost one and has no caller. + + XXXX - both default and alternate frame_chain_valid functions are + deprecated. New code should use dummy frames and one of the generic + functions. */ + +/* Default (function) for non- multi-arch platforms. */ +#if (!GDB_MULTI_ARCH) && !defined (FRAME_CHAIN_VALID) +#define FRAME_CHAIN_VALID(chain, thisframe) (func_frame_chain_valid (chain, thisframe)) +#endif typedef int (gdbarch_frame_chain_valid_ftype) (CORE_ADDR chain, struct frame_info *thisframe); extern int gdbarch_frame_chain_valid (struct gdbarch *gdbarch, CORE_ADDR chain, struct frame_info *thisframe); extern void set_gdbarch_frame_chain_valid (struct gdbarch *gdbarch, gdbarch_frame_chain_valid_ftype *frame_chain_valid); -#if (GDB_MULTI_ARCH >= GDB_MULTI_ARCH_PARTIAL) && defined (FRAME_CHAIN_VALID) +#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && defined (FRAME_CHAIN_VALID) #error "Non multi-arch definition of FRAME_CHAIN_VALID" #endif #if GDB_MULTI_ARCH -#if (GDB_MULTI_ARCH >= GDB_MULTI_ARCH_PARTIAL) || !defined (FRAME_CHAIN_VALID) +#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) || !defined (FRAME_CHAIN_VALID) #define FRAME_CHAIN_VALID(chain, thisframe) (gdbarch_frame_chain_valid (current_gdbarch, chain, thisframe)) #endif #endif |