diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2002-09-14 09:40:36 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2002-09-14 09:40:36 +0000 |
commit | 20515eb1f5e857fa71d7b028a04ddb39da1c4ef7 (patch) | |
tree | dde498ce32de86e603ce4ab3b24ddcaf41cd0b04 /gdb/arch-utils.c | |
parent | b03202ac4298ac4ed386a4b791a484380ff827b8 (diff) | |
download | gdb-20515eb1f5e857fa71d7b028a04ddb39da1c4ef7.tar.gz |
* arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
Diffstat (limited to 'gdb/arch-utils.c')
-rw-r--r-- | gdb/arch-utils.c | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index ecdecaf9a1a..3666bd55c06 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -438,18 +438,6 @@ generic_register_size (int regnum) return TYPE_LENGTH (REGISTER_VIRTUAL_TYPE (regnum)); } -#if !defined (IN_SIGTRAMP) -#if defined (SIGTRAMP_START) -#define IN_SIGTRAMP(pc, name) \ - ((pc) >= SIGTRAMP_START(pc) \ - && (pc) < SIGTRAMP_END(pc) \ - ) -#else -#define IN_SIGTRAMP(pc, name) \ - (name && STREQ ("_sigtramp", name)) -#endif -#endif - /* Assume all registers are adjacent. */ int @@ -470,7 +458,14 @@ generic_register_byte (int regnum) int legacy_pc_in_sigtramp (CORE_ADDR pc, char *name) { - return IN_SIGTRAMP(pc, name); +#if !defined (IN_SIGTRAMP) + if (SIGTRAMP_START_P ()) + return (pc) >= SIGTRAMP_START (pc) && (pc) < SIGTRAMP_END (pc); + else + return name && strcmp ("_sigtramp", name) == 0; +#else + return IN_SIGTRAMP (pc, name); +#endif } int |