2011-02-26 Michael Snyder <msnyder@vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Sat, 26 Feb 2011 19:41:35 +0000 (19:41 +0000)
committerMichael Snyder <msnyder@vmware.com>
Sat, 26 Feb 2011 19:41:35 +0000 (19:41 +0000)
* amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
dead if statement.  Condition can't be false.

gdb/ChangeLog
gdb/amd64-linux-tdep.c

index 18b8eb5c0f6bb38be0bd680dfbfcc4be76656b6d..3422ce606cd11b62a5cb77e8eb345b49c8c5f6bf 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2011-02-25  Michael Snyder  <msnyder@vmware.com>
 
        * arm-tdep.c: Fix typos in comments.
index 45e1f5cf7657d921c14d9305f8999d4ef976067c..011983802f9049b96df7d53274ce8000788798fe 100644 (file)
@@ -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;
     }