diff options
author | Aleksandar Ristovski <aristovski@qnx.com> | 2013-01-31 18:31:48 +0000 |
---|---|---|
committer | Aleksandar Ristovski <aristovski@qnx.com> | 2013-01-31 18:31:48 +0000 |
commit | c656bca57874f367618b35767e5bfc35545c7b1d (patch) | |
tree | cd8234fd0485a7003560d60cc5830b5c8602f55c /gdb | |
parent | 7078baeb174ad00adf66ba9ec53056834dbaf7e3 (diff) | |
download | gdb-c656bca57874f367618b35767e5bfc35545c7b1d.zip gdb-c656bca57874f367618b35767e5bfc35545c7b1d.tar.gz gdb-c656bca57874f367618b35767e5bfc35545c7b1d.tar.bz2 |
2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
* dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
* symtab.c (iterate_over_symtabs): Remove unused s.
(find_pc_sect_symtab): Remove unused pspAce.
(find_pc_sect_line): Remove unused alt_symtab.
(find_pcs_for_symtab_line): Remove unused ix, previous_function.
(completion_list_add_name): Remove unused newsize.
Reference: http://sourceware.org/ml/gdb-patches/2013-01/msg00764.html
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 9 | ||||
-rw-r--r-- | gdb/dwarf2-frame.c | 2 | ||||
-rw-r--r-- | gdb/symtab.c | 15 |
3 files changed, 11 insertions, 15 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 23fa044..10da404 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2013-01-31 Aleksandar Ristovski <aristovski@qnx.com> + + * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs. + * symtab.c (iterate_over_symtabs): Remove unused s. + (find_pc_sect_symtab): Remove unused pspAce. + (find_pc_sect_line): Remove unused alt_symtab. + (find_pcs_for_symtab_line): Remove unused ix, previous_function. + (completion_list_add_name): Remove unused newsize. + 2013-01-31 Tom Tromey <tromey@redhat.com> PR c++/14998: diff --git a/gdb/dwarf2-frame.c b/gdb/dwarf2-frame.c index 179f0c2..ec4edfa 100644 --- a/gdb/dwarf2-frame.c +++ b/gdb/dwarf2-frame.c @@ -888,8 +888,6 @@ dwarf2_compile_cfa_to_ax (struct agent_expr *expr, struct axs_value *loc, CORE_ADDR pc, struct dwarf2_per_cu_data *data) { - const int num_regs = gdbarch_num_regs (gdbarch) - + gdbarch_num_pseudo_regs (gdbarch); struct dwarf2_fde *fde; CORE_ADDR text_offset; struct dwarf2_frame_state fs; diff --git a/gdb/symtab.c b/gdb/symtab.c index b200b36..a471fc3 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -285,7 +285,6 @@ iterate_over_symtabs (const char *name, void *data), void *data) { - struct symtab *s = NULL; struct objfile *objfile; char *real_path = NULL; char *full_path = NULL; @@ -2103,12 +2102,9 @@ find_pc_sect_symtab (CORE_ADDR pc, struct obj_section *section) struct symtab *s = NULL; struct symtab *best_s = NULL; struct objfile *objfile; - struct program_space *pspace; CORE_ADDR distance = 0; struct minimal_symbol *msymbol; - pspace = current_program_space; - /* If we know that this is not a text address, return failure. This is necessary because we loop based on the block's high and low code addresses, which do not include the data ranges, and because @@ -2261,7 +2257,6 @@ find_pc_sect_line (CORE_ADDR pc, struct obj_section *section, int notcurrent) we will use a line one less than this, with a range from the start of that file to the first line's pc. */ struct linetable_entry *alt = NULL; - struct symtab *alt_symtab = 0; /* Info on best line seen in this file. */ @@ -2406,10 +2401,7 @@ find_pc_sect_line (CORE_ADDR pc, struct obj_section *section, int notcurrent) /* Is this file's first line closer than the first lines of other files? If so, record this file, and its first line, as best alternate. */ if (item->pc > pc && (!alt || item->pc < alt->pc)) - { - alt = item; - alt_symtab = s; - } + alt = item; for (i = 0; i < len; i++, item++) { @@ -2600,8 +2592,7 @@ VEC (CORE_ADDR) * find_pcs_for_symtab_line (struct symtab *symtab, int line, struct linetable_entry **best_item) { - int start = 0, ix; - struct symbol *previous_function = NULL; + int start = 0; VEC (CORE_ADDR) *result = NULL; /* First, collect all the PCs that are at this line. */ @@ -4041,8 +4032,6 @@ completion_list_add_name (const char *symname, const char *sym_text, int sym_text_len, const char *text, const char *word) { - int newsize; - /* Clip symbols that cannot match. */ if (!compare_symbol_name (symname, sym_text, sym_text_len)) return; |