Cleanup: remove unused - breakpoint, buildsym
authorAleksandar Ristovski <aristovski@qnx.com>
Mon, 1 Apr 2013 12:48:03 +0000 (12:48 +0000)
committerAleksandar Ristovski <aristovski@qnx.com>
Mon, 1 Apr 2013 12:48:03 +0000 (12:48 +0000)
* breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
(print_it_watchpoint): Remove unused 'bl'.
(say_where): Remove unused 'uiout'.
(bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
(bkpt_breakpoint_hit): Remove unused 'b'.
(internal_bkpt_print_it): Remove unused 'uiout'.
* buildsym.c (augment_type_symtab): Remove unused 'i'.

Reference: http://sourceware.org/ml/gdb-patches/2013-03/msg01080.html

gdb/ChangeLog
gdb/breakpoint.c
gdb/buildsym.c

index 431fbcc7ee45648c1c89b312bae4eff3a0995b65..00739df9938b5e23b3ff9a06afece84b02aa8b0a 100644 (file)
@@ -1,3 +1,13 @@
+2013-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
+
+       * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
+       (print_it_watchpoint): Remove unused 'bl'.
+       (say_where): Remove unused 'uiout'.
+       (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
+       (bkpt_breakpoint_hit): Remove unused 'b'.
+       (internal_bkpt_print_it): Remove unused 'uiout'.
+       * buildsym.c (augment_type_symtab): Remove unused 'i'.
+
 2013-03-31  Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
 
        * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
index c844187467d2b38eacf491349076c87ada04b79f..ff161a0d5517f45ae00dbf1bb78170b586334ac1 100644 (file)
@@ -2047,7 +2047,6 @@ static struct agent_expr *
 parse_cond_to_aexpr (CORE_ADDR scope, struct expression *cond)
 {
   struct agent_expr *aexpr = NULL;
-  struct cleanup *old_chain = NULL;
   volatile struct gdb_exception ex;
 
   if (!cond)
@@ -2185,7 +2184,6 @@ parse_cmd_to_aexpr (CORE_ADDR scope, char *cmd)
   struct cleanup *old_cleanups = 0;
   struct expression *expr, **argvec;
   struct agent_expr *aexpr = NULL;
-  struct cleanup *old_chain = NULL;
   volatile struct gdb_exception ex;
   const char *cmdrest;
   const char *format_start, *format_end;
@@ -10485,7 +10483,6 @@ print_it_watchpoint (bpstat bs)
 {
   struct cleanup *old_chain;
   struct breakpoint *b;
-  const struct bp_location *bl;
   struct ui_file *stb;
   enum print_stop_action result;
   struct watchpoint *w;
@@ -10493,7 +10490,6 @@ print_it_watchpoint (bpstat bs)
 
   gdb_assert (bs->bp_location_at != NULL);
 
-  bl = bs->bp_location_at;
   b = bs->breakpoint_at;
   w = (struct watchpoint *) b;
 
@@ -12719,7 +12715,6 @@ bpstat_remove_breakpoint_callback (struct thread_info *th, void *data)
 static void
 say_where (struct breakpoint *b)
 {
-  struct ui_out *uiout = current_uiout;
   struct value_print_options opts;
 
   get_user_print_options (&opts);
@@ -12988,8 +12983,6 @@ bkpt_breakpoint_hit (const struct bp_location *bl,
                     struct address_space *aspace, CORE_ADDR bp_addr,
                     const struct target_waitstatus *ws)
 {
-  struct breakpoint *b = bl->owner;
-
   if (ws->kind != TARGET_WAITKIND_STOPPED
       || ws->value.sig != GDB_SIGNAL_TRAP)
     return 0;
@@ -13183,7 +13176,6 @@ internal_bkpt_check_status (bpstat bs)
 static enum print_stop_action
 internal_bkpt_print_it (bpstat bs)
 {
-  struct ui_out *uiout = current_uiout;
   struct breakpoint *b;
 
   b = bs->breakpoint_at;
index 4d861a5ccf178482dd2f0d895a9b8eca237392d2..823ad411198dd2c95c01266fcf8be543b1d3e804 100644 (file)
@@ -1367,7 +1367,6 @@ void
 augment_type_symtab (struct objfile *objfile, struct symtab *primary_symtab)
 {
   struct blockvector *blockvector = primary_symtab->blockvector;
-  int i;
 
   if (context_stack_depth > 0)
     {
This page took 0.033778 seconds and 4 git commands to generate.