]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* infrun.c (restore_infcall_suspend_state): Eliminate single-use
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Mon, 17 Sep 2012 07:26:55 +0000 (07:26 +0000)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Mon, 17 Sep 2012 07:26:55 +0000 (07:26 +0000)
variable LEN.

gdb/ChangeLog
gdb/infrun.c

index 38fc1ad89b96e8729ad388af477e19d0c9ff11e9..1cc4babb32b89f5c25fc2ac95cb3efa05d77a85f 100644 (file)
@@ -1,3 +1,8 @@
+2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
+
+       * infrun.c (restore_infcall_suspend_state): Eliminate single-use
+       variable LEN.
+
 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        PR 14119
index 20207ed9bea6deba041fc4c73c7d6a727457ad0a..0caa1ac31ae9af151c55ca7d5c750eefa6aab914 100644 (file)
@@ -6777,11 +6777,10 @@ restore_infcall_suspend_state (struct infcall_suspend_state *inf_state)
   if (inf_state->siginfo_gdbarch == gdbarch)
     {
       struct type *type = gdbarch_get_siginfo_type (gdbarch);
-      size_t len = TYPE_LENGTH (type);
 
       /* Errors ignored.  */
       target_write (&current_target, TARGET_OBJECT_SIGNAL_INFO, NULL,
-                   inf_state->siginfo_data, 0, len);
+                   inf_state->siginfo_data, 0, TYPE_LENGTH (type));
     }
 
   /* The inferior can be gone if the user types "print exit(0)"