* m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.

This commit is contained in:
Joel Brobecker 2008-06-02 16:06:52 +00:00
parent e4d8bc0898
commit c95f502610
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2008-06-02 Roman Zippel <zippel@linux-m68k.org>
* m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
2008-06-02 Roman Zippel <zippel@linux-m68k.org>
* m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.

View File

@ -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);