mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 18:08:24 +08:00
gdb/
* linux-tdep.c (linux_is_uclinux): New function. Code moved from linux_has_shared_address_space. (linux_has_shared_address_space): Call linux_is_uclinux. * linux-tdep.h (linux_is_uclinux): Declare. * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call linux_is_uclinux.
This commit is contained in:
@ -1,3 +1,12 @@
|
|||||||
|
2013-09-03 Yao Qi <yao@codesourcery.com>
|
||||||
|
|
||||||
|
* linux-tdep.c (linux_is_uclinux): New function. Code moved
|
||||||
|
from linux_has_shared_address_space.
|
||||||
|
(linux_has_shared_address_space): Call linux_is_uclinux.
|
||||||
|
* linux-tdep.h (linux_is_uclinux): Declare.
|
||||||
|
* m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
|
||||||
|
linux_is_uclinux.
|
||||||
|
|
||||||
2013-09-03 Yao Qi <yao@codesourcery.com>
|
2013-09-03 Yao Qi <yao@codesourcery.com>
|
||||||
|
|
||||||
* config/djgpp/fnchange.lst: Remove entry of
|
* config/djgpp/fnchange.lst: Remove entry of
|
||||||
|
@ -241,19 +241,22 @@ linux_get_siginfo_type (struct gdbarch *gdbarch)
|
|||||||
return siginfo_type;
|
return siginfo_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Return true if the target is running on uClinux instead of normal
|
||||||
|
Linux kernel. */
|
||||||
|
|
||||||
|
int
|
||||||
|
linux_is_uclinux (void)
|
||||||
|
{
|
||||||
|
CORE_ADDR dummy;
|
||||||
|
|
||||||
|
return (target_auxv_search (¤t_target, AT_NULL, &dummy) > 0
|
||||||
|
&& target_auxv_search (¤t_target, AT_PAGESZ, &dummy) == 0);
|
||||||
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
linux_has_shared_address_space (struct gdbarch *gdbarch)
|
linux_has_shared_address_space (struct gdbarch *gdbarch)
|
||||||
{
|
{
|
||||||
/* Determine whether we are running on uClinux or normal Linux
|
return linux_is_uclinux ();
|
||||||
kernel. */
|
|
||||||
CORE_ADDR dummy;
|
|
||||||
int target_is_uclinux;
|
|
||||||
|
|
||||||
target_is_uclinux
|
|
||||||
= (target_auxv_search (¤t_target, AT_NULL, &dummy) > 0
|
|
||||||
&& target_auxv_search (¤t_target, AT_PAGESZ, &dummy) == 0);
|
|
||||||
|
|
||||||
return target_is_uclinux;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This is how we want PTIDs from core files to be printed. */
|
/* This is how we want PTIDs from core files to be printed. */
|
||||||
|
@ -42,4 +42,6 @@ extern int linux_gdb_signal_to_target (struct gdbarch *gdbarch,
|
|||||||
|
|
||||||
extern void linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch);
|
extern void linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch);
|
||||||
|
|
||||||
|
extern int linux_is_uclinux (void);
|
||||||
|
|
||||||
#endif /* linux-tdep.h */
|
#endif /* linux-tdep.h */
|
||||||
|
@ -228,16 +228,10 @@ m68k_linux_get_sigtramp_info (struct frame_info *this_frame)
|
|||||||
CORE_ADDR sp;
|
CORE_ADDR sp;
|
||||||
struct m68k_linux_sigtramp_info info;
|
struct m68k_linux_sigtramp_info info;
|
||||||
|
|
||||||
|
/* Determine whether we are running on a uClinux or normal GNU/Linux
|
||||||
|
target so we can use the correct sigcontext layouts. */
|
||||||
if (target_is_uclinux == -1)
|
if (target_is_uclinux == -1)
|
||||||
{
|
target_is_uclinux = linux_is_uclinux ();
|
||||||
/* Determine whether we are running on a uClinux or normal GNU/Linux
|
|
||||||
target so we can use the correct sigcontext layouts. */
|
|
||||||
CORE_ADDR dummy;
|
|
||||||
|
|
||||||
target_is_uclinux
|
|
||||||
= (target_auxv_search (¤t_target, AT_NULL, &dummy) > 0
|
|
||||||
&& target_auxv_search (¤t_target, AT_PAGESZ, &dummy) == 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
sp = get_frame_register_unsigned (this_frame, M68K_SP_REGNUM);
|
sp = get_frame_register_unsigned (this_frame, M68K_SP_REGNUM);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user