aboutsummaryrefslogtreecommitdiff
path: root/gdb/m68klinux-tdep.c
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2013-09-02 23:09:57 +0000
committerYao Qi <yao@codesourcery.com>2013-09-02 23:09:57 +0000
commitc01cbb3d52217d404e500d11a7a4b87e87a0cd0d (patch)
tree5f2374ed68aa700b9c647b443394fd045ead9e90 /gdb/m68klinux-tdep.c
parent7b00db47cefd914e1ba6682a986a10693aa1aa22 (diff)
downloadgdb-c01cbb3d52217d404e500d11a7a4b87e87a0cd0d.zip
gdb-c01cbb3d52217d404e500d11a7a4b87e87a0cd0d.tar.gz
gdb-c01cbb3d52217d404e500d11a7a4b87e87a0cd0d.tar.bz2
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.
Diffstat (limited to 'gdb/m68klinux-tdep.c')
-rw-r--r--gdb/m68klinux-tdep.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/gdb/m68klinux-tdep.c b/gdb/m68klinux-tdep.c
index be90885..0382f68 100644
--- a/gdb/m68klinux-tdep.c
+++ b/gdb/m68klinux-tdep.c
@@ -228,16 +228,10 @@ m68k_linux_get_sigtramp_info (struct frame_info *this_frame)
CORE_ADDR sp;
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)
- {
- /* 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 (&current_target, AT_NULL, &dummy) > 0
- && target_auxv_search (&current_target, AT_PAGESZ, &dummy) == 0);
- }
+ target_is_uclinux = linux_is_uclinux ();
sp = get_frame_register_unsigned (this_frame, M68K_SP_REGNUM);