2007-07-31 Michael Snyder <msnyder@access-company.com>
authorMichael Snyder <msnyder@vmware.com>
Tue, 31 Jul 2007 21:36:13 +0000 (21:36 +0000)
committerMichael Snyder <msnyder@vmware.com>
Tue, 31 Jul 2007 21:36:13 +0000 (21:36 +0000)
* printcmd.c (build_address_symbolic): Remove dead code and dead
variable.

gdb/ChangeLog
gdb/printcmd.c

index 59bd2da36a263e63b79f83214481dcd4b8e276c9..52e10de19bfb1cfb0b24a0b61d52b41ce7e6d447 100644 (file)
@@ -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.
index 98d284898e2200942031021037fc98fb3803d71e..d5fbeba2aba67b14587037da5a66d0450c0ab9b2 100644 (file)
@@ -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;
 }