aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2012-09-17 07:26:55 +0000
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2012-09-17 07:26:55 +0000
commit6acef6cd7bfefe89401de1eca7e12e737eb94da6 (patch)
tree08fbf0acc879f06f13296aedcc80383c01d623e4 /gdb/infrun.c
parent1ab3b62c9dabd92c26377f25146f1d58e3c766a6 (diff)
downloadgdb-6acef6cd7bfefe89401de1eca7e12e737eb94da6.zip
gdb-6acef6cd7bfefe89401de1eca7e12e737eb94da6.tar.gz
gdb-6acef6cd7bfefe89401de1eca7e12e737eb94da6.tar.bz2
* infrun.c (restore_infcall_suspend_state): Eliminate single-use
variable LEN.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 20207ed..0caa1ac 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -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)"