* [obv][commit] Eliminate single-use variable LEN in infrun.c
@ 2012-09-17 7:30 Siddhesh Poyarekar
0 siblings, 0 replies; only message in thread
From: Siddhesh Poyarekar @ 2012-09-17 7:30 UTC (permalink / raw)
To: gdb-patches
Hi,
I have committed the following obvious patch into trunk.
Regards,
Siddhesh
http://sourceware.org/ml/gdb-cvs/2012-09/msg00082.html
===================================================================
RCS file: /cvs/src/src/gdb/ChangeLog,v
retrieving revision 1.14664
retrieving revision 1.14665
diff -u -r1.14664 -r1.14665
--- src/gdb/ChangeLog 2012/09/17 07:15:47 1.14664
+++ src/gdb/ChangeLog 2012/09/17 07:26:54 1.14665
@@ -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
===================================================================
RCS file: /cvs/src/src/gdb/infrun.c,v
retrieving revision 1.558
retrieving revision 1.559
diff -u -r1.558 -r1.559
--- src/gdb/infrun.c 2012/09/17 07:09:34 1.558
+++ src/gdb/infrun.c 2012/09/17 07:26:55 1.559
@@ -6777,11 +6777,10 @@
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)"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-09-17 7:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-17 7:30 [obv][commit] Eliminate single-use variable LEN in infrun.c Siddhesh Poyarekar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox