diff options
author | Aleksandar Ristovski <aristovski@qnx.com> | 2013-01-31 16:27:50 +0000 |
---|---|---|
committer | Aleksandar Ristovski <aristovski@qnx.com> | 2013-01-31 16:27:50 +0000 |
commit | 0e43993ae8c905d679db8a48b8d2448b54b4f326 (patch) | |
tree | e56d1e4accb9206fc697fed11a9d378ca28f1707 | |
parent | c495790256d052740423f03f837bb6e9ae1fa27a (diff) | |
download | gdb-0e43993ae8c905d679db8a48b8d2448b54b4f326.zip gdb-0e43993ae8c905d679db8a48b8d2448b54b4f326.tar.gz gdb-0e43993ae8c905d679db8a48b8d2448b54b4f326.tar.bz2 |
2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
* auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
* ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
* ax-general.c (ax_print): Remove unused is_float.
* blockframe.c (block_innermost_frame): Remove unused start, end.
* break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
Reference: http://sourceware.org/ml/gdb-patches/2013-01/msg00752.html
-rw-r--r-- | gdb/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/auto-load.c | 1 | ||||
-rw-r--r-- | gdb/ax-gdb.c | 4 | ||||
-rw-r--r-- | gdb/ax-general.c | 3 | ||||
-rw-r--r-- | gdb/blockframe.c | 5 | ||||
-rw-r--r-- | gdb/break-catch-sig.c | 1 |
6 files changed, 9 insertions, 13 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1524b60..742f8e5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,13 @@ 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com> + * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec. + * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt. + * ax-general.c (ax_print): Remove unused is_float. + * blockframe.c (block_innermost_frame): Remove unused start, end. + * break-catch-sig.c (catch_signal_command): Remove unused gdbarch. + +2013-01-31 Aleksandar Ristovski <aristovski@qnx.com> + * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo. (svr4_read_so_list): Remove unused lmo. * solib-target.c (solib_target_relocate_section_addresses): Remove diff --git a/gdb/auto-load.c b/gdb/auto-load.c index 850c704..b12995b 100644 --- a/gdb/auto-load.c +++ b/gdb/auto-load.c @@ -178,7 +178,6 @@ auto_load_expand_dir_vars (const char *string) static void auto_load_safe_path_vec_update (void) { - VEC (char_ptr) *dir_vec = NULL; unsigned len; int ix; diff --git a/gdb/ax-gdb.c b/gdb/ax-gdb.c index f0e33cb..2029882 100644 --- a/gdb/ax-gdb.c +++ b/gdb/ax-gdb.c @@ -2562,13 +2562,11 @@ gen_printf (CORE_ADDR scope, struct gdbarch *gdbarch, struct format_piece *frags, int nargs, struct expression **exprs) { - struct expression *expr; struct cleanup *old_chain = 0; struct agent_expr *ax = new_agent_expr (gdbarch, scope); union exp_element *pc; struct axs_value value; - int i, tem, bot, fr, flen; - char *fmt; + int tem; old_chain = make_cleanup_free_agent_expr (ax); diff --git a/gdb/ax-general.c b/gdb/ax-general.c index bf70824..32a47a7 100644 --- a/gdb/ax-general.c +++ b/gdb/ax-general.c @@ -375,7 +375,6 @@ void ax_print (struct ui_file *f, struct agent_expr *x) { int i; - int is_float = 0; fprintf_filtered (f, _("Scope: %s\n"), paddress (x->gdbarch, x->scope)); fprintf_filtered (f, _("Reg mask:")); @@ -430,8 +429,6 @@ ax_print (struct ui_file *f, struct agent_expr *x) } fprintf_filtered (f, "\n"); i += 1 + aop_map[op].op_size; - - is_float = (op == aop_float); } } diff --git a/gdb/blockframe.c b/gdb/blockframe.c index 1f3bbf0..d5787f1 100644 --- a/gdb/blockframe.c +++ b/gdb/blockframe.c @@ -360,15 +360,10 @@ struct frame_info * block_innermost_frame (const struct block *block) { struct frame_info *frame; - CORE_ADDR start; - CORE_ADDR end; if (block == NULL) return NULL; - start = BLOCK_START (block); - end = BLOCK_END (block); - frame = get_selected_frame_if_set (); if (frame == NULL) frame = get_current_frame (); diff --git a/gdb/break-catch-sig.c b/gdb/break-catch-sig.c index 89783b0..4bb07f0 100644 --- a/gdb/break-catch-sig.c +++ b/gdb/break-catch-sig.c @@ -444,7 +444,6 @@ catch_signal_command (char *arg, int from_tty, { int tempflag, catch_all = 0; VEC (gdb_signal_type) *filter; - struct gdbarch *gdbarch = get_current_arch (); tempflag = get_cmd_context (command) == CATCH_TEMPORARY; |