From c95f502610e9757735f4b06e4be93f8b1b7667f8 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Mon, 2 Jun 2008 16:06:52 +0000 Subject: [PATCH] * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test. --- gdb/ChangeLog | 4 ++++ gdb/m68klinux-tdep.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4795455..08a01c7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2008-06-02 Roman Zippel + * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test. + +2008-06-02 Roman Zippel + * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn. 2008-06-01 Joel Brobecker diff --git a/gdb/m68klinux-tdep.c b/gdb/m68klinux-tdep.c index bb78b91..29b1120 100644 --- a/gdb/m68klinux-tdep.c +++ b/gdb/m68klinux-tdep.c @@ -70,7 +70,7 @@ m68k_linux_pc_in_sigtramp (struct frame_info *this_frame) unsigned long insn0, insn1, insn2; CORE_ADDR pc = get_frame_pc (this_frame); - if (safe_frame_unwind_memory (this_frame, pc - 4, buf, sizeof (buf))) + if (!safe_frame_unwind_memory (this_frame, pc - 4, buf, sizeof (buf))) return 0; insn1 = extract_unsigned_integer (buf + 4, 4); insn2 = extract_unsigned_integer (buf + 8, 4); -- 2.7.4