mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-20 06:15:09 +08:00
* 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.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2002-09-14 Corinna Vinschen <vinschen@redhat.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2002-09-13 Christopher Faylor <cgf@redhat.com>
|
2002-09-13 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* win32-nat.c (child_create_inferior): Honor 'tty' command.
|
* win32-nat.c (child_create_inferior): Honor 'tty' command.
|
||||||
|
@ -438,18 +438,6 @@ generic_register_size (int regnum)
|
|||||||
return TYPE_LENGTH (REGISTER_VIRTUAL_TYPE (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. */
|
/* Assume all registers are adjacent. */
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -470,7 +458,14 @@ generic_register_byte (int regnum)
|
|||||||
int
|
int
|
||||||
legacy_pc_in_sigtramp (CORE_ADDR pc, char *name)
|
legacy_pc_in_sigtramp (CORE_ADDR pc, char *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);
|
return IN_SIGTRAMP (pc, name);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
Reference in New Issue
Block a user