From: Michael Snyder Date: Sat, 26 Feb 2011 19:41:35 +0000 (+0000) Subject: 2011-02-26 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f2c4ead5169122a145587efa9798d4b4bd45564b;p=binutils-gdb.git 2011-02-26 Michael Snyder * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete dead if statement. Condition can't be false. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 18b8eb5c0f6..3422ce606cd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-02-26 Michael Snyder + + * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete + dead if statement. Condition can't be false. + 2011-02-25 Michael Snyder * arm-tdep.c: Fix typos in comments. diff --git a/gdb/amd64-linux-tdep.c b/gdb/amd64-linux-tdep.c index 45e1f5cf765..011983802f9 100644 --- a/gdb/amd64-linux-tdep.c +++ b/gdb/amd64-linux-tdep.c @@ -1174,25 +1174,24 @@ amd64_linux_syscall_record (struct regcache *regcache) break; case amd64_sys_arch_prctl: - if (syscall_native == amd64_sys_arch_prctl) - { - ULONGEST arg3; - - regcache_raw_read_unsigned (regcache, amd64_linux_record_tdep.arg3, - &arg3); - if (arg3 == RECORD_ARCH_GET_FS || arg3 == RECORD_ARCH_GET_GS) - { - CORE_ADDR addr; - - regcache_raw_read_unsigned (regcache, - amd64_linux_record_tdep.arg2, - &addr); - if (record_arch_list_add_mem (addr, - amd64_linux_record_tdep.size_ulong)) - return -1; - } - goto record_regs; - } + { + ULONGEST arg3; + + regcache_raw_read_unsigned (regcache, amd64_linux_record_tdep.arg3, + &arg3); + if (arg3 == RECORD_ARCH_GET_FS || arg3 == RECORD_ARCH_GET_GS) + { + CORE_ADDR addr; + + regcache_raw_read_unsigned (regcache, + amd64_linux_record_tdep.arg2, + &addr); + if (record_arch_list_add_mem (addr, + amd64_linux_record_tdep.size_ulong)) + return -1; + } + goto record_regs; + } break; }