diff options
author | Michael Snyder <msnyder@vmware.com> | 2007-07-31 21:36:13 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2007-07-31 21:36:13 +0000 |
commit | abe34c358d7703ea0688ce39e7c7cbe4293fa5c8 (patch) | |
tree | f21e70dde582293ab695206e4ab5fc4386040fd7 /gdb | |
parent | e48883f7911b90ba2b9af24705be25a0289db16a (diff) | |
download | gdb-abe34c358d7703ea0688ce39e7c7cbe4293fa5c8.zip gdb-abe34c358d7703ea0688ce39e7c7cbe4293fa5c8.tar.gz gdb-abe34c358d7703ea0688ce39e7c7cbe4293fa5c8.tar.bz2 |
2007-07-31 Michael Snyder <msnyder@access-company.com>
* printcmd.c (build_address_symbolic): Remove dead code and dead
variable.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/printcmd.c | 12 |
2 files changed, 5 insertions, 12 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 59bd2da..52e10de 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-07-31 Michael Snyder <msnyder@access-company.com> + + * printcmd.c (build_address_symbolic): Remove dead code and dead + variable. + 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com> * linespec.c (minsym_found): Advance to the next line if possible. diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 98d2848..d5fbeba 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; } |