Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] Delete breakpoint.c local variables
@ 2008-07-30 17:03 Phil Muldoon
  2008-08-02 23:51 ` Michael Snyder
  0 siblings, 1 reply; 6+ messages in thread
From: Phil Muldoon @ 2008-07-30 17:03 UTC (permalink / raw)
  To: gdb-patches

While stepping through breakpoint.c longjmp breakpoint code, I noticed 
some small trivial unused local variables. Patch to fix.

2008-07-30  Phil Muldoon  <pmuldoon@redhat.com>

    * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
    breakpoint.
    (set_longjmp_breakpoint): Likewise.


Index: gdb/breakpoint.c
===================================================================
RCS file: /cvs/src/src/gdb/breakpoint.c,v
retrieving revision 1.338
diff -u -r1.338 breakpoint.c
--- gdb/breakpoint.c    28 Jul 2008 17:53:52 -0000    1.338
+++ gdb/breakpoint.c    30 Jul 2008 16:56:07 -0000
@@ -4466,7 +4466,6 @@
 static void
 create_longjmp_breakpoint (char *func_name)
 {
-  struct breakpoint *b;
   struct minimal_symbol *m;
 
   if ((m = lookup_minimal_symbol_text (func_name, NULL)) == NULL)
@@ -4482,8 +4481,6 @@
 void
 set_longjmp_breakpoint (void)
 {
-  struct breakpoint *b;
-
   if (gdbarch_get_longjmp_target_p (current_gdbarch))
     {
       create_longjmp_breakpoint ("longjmp");


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-08-06 11:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-30 17:03 [RFA] Delete breakpoint.c local variables Phil Muldoon
2008-08-02 23:51 ` Michael Snyder
2008-08-04 15:46   ` Phil Muldoon
2008-08-06  4:31     ` Michael Snyder
2008-08-06  8:21       ` Phil Muldoon
2008-08-06 11:28         ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox