aboutsummaryrefslogtreecommitdiff
path: root/gdb/printcmd.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2007-07-31 21:36:13 +0000
committerMichael Snyder <msnyder@vmware.com>2007-07-31 21:36:13 +0000
commitabe34c358d7703ea0688ce39e7c7cbe4293fa5c8 (patch)
treef21e70dde582293ab695206e4ab5fc4386040fd7 /gdb/printcmd.c
parente48883f7911b90ba2b9af24705be25a0289db16a (diff)
downloadgdb-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/printcmd.c')
-rw-r--r--gdb/printcmd.c12
1 files changed, 0 insertions, 12 deletions
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;
}