diff options
author | siddhesh <siddhesh> | 2012-09-17 07:26:54 +0000 |
---|---|---|
committer | siddhesh <siddhesh> | 2012-09-17 07:26:54 +0000 |
commit | 928dc53169f1d179bd2379f187091b2634efda5d (patch) | |
tree | be372e6d68999afa3cd6004166d1f71542ea8963 | |
parent | d73b8edd178c15180f2ce0f64067bd4235200201 (diff) | |
download | gdb-928dc53169f1d179bd2379f187091b2634efda5d.tar.gz |
* infrun.c (restore_infcall_suspend_state): Eliminate single-use
variable LEN.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/infrun.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 38fc1ad89b9..1cc4babb32b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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 diff --git a/gdb/infrun.c b/gdb/infrun.c index 20207ed9bea..0caa1ac31ae 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 (¤t_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)" |