This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] Delete breakpoint.c local variables


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");


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]