From: Michael Snyder Date: Tue, 31 Jul 2007 21:36:13 +0000 (+0000) Subject: 2007-07-31 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=abe34c358d7703ea0688ce39e7c7cbe4293fa5c8;p=binutils-gdb.git 2007-07-31 Michael Snyder * printcmd.c (build_address_symbolic): Remove dead code and dead variable. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 59bd2da36a2..52e10de19bf 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-07-31 Michael Snyder + + * printcmd.c (build_address_symbolic): Remove dead code and dead + variable. + 2007-07-31 Daniel Jacobowitz * linespec.c (minsym_found): Advance to the next line if possible. diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 98d284898e2..d5fbeba2aba 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -565,7 +565,6 @@ build_address_symbolic (CORE_ADDR addr, /* IN */ { struct minimal_symbol *msymbol; struct symbol *symbol; - struct symtab *symtab = 0; CORE_ADDR name_location = 0; asection *section = 0; char *name_temp = ""; @@ -613,7 +612,6 @@ build_address_symbolic (CORE_ADDR addr, /* IN */ /* The msymbol is closer to the address than the symbol; use the msymbol instead. */ symbol = 0; - symtab = 0; name_location = SYMBOL_VALUE_ADDRESS (msymbol); if (do_demangle || asm_demangle) name_temp = SYMBOL_PRINT_NAME (msymbol); @@ -650,16 +648,6 @@ build_address_symbolic (CORE_ADDR addr, /* IN */ *filename = xstrdup (sal.symtab->filename); *line = sal.line; } - else if (symtab && symbol && symbol->line) - { - *filename = xstrdup (symtab->filename); - *line = symbol->line; - } - else if (symtab) - { - *filename = xstrdup (symtab->filename); - *line = -1; - } } return 0; }