diff options
author | Michael Snyder <msnyder@specifix.com> | 2007-07-31 21:36:13 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@specifix.com> | 2007-07-31 21:36:13 +0000 |
commit | a5d05f37748f88cdad137e7698c0e47941dbbe6c (patch) | |
tree | dc35cda19884b4dc05ea1727ddb35e76d62e5e30 /gdb/printcmd.c | |
parent | 3c4fa2074489281d0256c3286049344f2c99127b (diff) | |
download | gdb-a5d05f37748f88cdad137e7698c0e47941dbbe6c.tar.gz |
2007-07-31 Michael Snyder <msnyder@access-company.com>
* printcmd.c (build_address_symbolic): Remove dead code and dead
variable.
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 12 |
1 files changed, 0 insertions, 12 deletions
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; } |