diff options
author | Michael Snyder <msnyder@vmware.com> | 2011-02-26 19:41:35 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2011-02-26 19:41:35 +0000 |
commit | f2c4ead5169122a145587efa9798d4b4bd45564b (patch) | |
tree | a2ec782cfc0678d7bc4d4572945a9cb32ceec0bb /gdb/amd64-linux-tdep.c | |
parent | 238f1c7460fb0d30a5aea1bbae261d3aef1d75c0 (diff) | |
download | gdb-f2c4ead5169122a145587efa9798d4b4bd45564b.zip gdb-f2c4ead5169122a145587efa9798d4b4bd45564b.tar.gz gdb-f2c4ead5169122a145587efa9798d4b4bd45564b.tar.bz2 |
2011-02-26 Michael Snyder <msnyder@vmware.com>
* amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
dead if statement. Condition can't be false.
Diffstat (limited to 'gdb/amd64-linux-tdep.c')
-rw-r--r-- | gdb/amd64-linux-tdep.c | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/gdb/amd64-linux-tdep.c b/gdb/amd64-linux-tdep.c index 45e1f5c..0119838 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; } |