2008-11-18 Paul Pluzhnikov <ppluzhnikov@google.com>
authorPaul Pluzhnikov <ppluzhnikov@google.com>
Tue, 18 Nov 2008 22:46:27 +0000 (22:46 +0000)
committerPaul Pluzhnikov <ppluzhnikov@google.com>
Tue, 18 Nov 2008 22:46:27 +0000 (22:46 +0000)
* maint.c (maintenance_translate_address): Fix a buglet.

gdb/ChangeLog
gdb/maint.c

index f67c7ac..90599b6 100644 (file)
@@ -1,3 +1,7 @@
+2008-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
+
+       * maint.c (maintenance_translate_address): Fix a buglet.
+       
 2008-11-18  Thiago Jung Bauermann  <bauerman@br.ibm.com>
 
        * features/Makefile (rs6000/powerpc-isa205-32l-expedite,
index c3a70c1..c46bdc0 100644 (file)
@@ -473,7 +473,7 @@ maintenance_translate_address (char *arg, int from_tty)
          break;
       }
 
-      if (!sect)
+      if (!objfile)
        error (_("Unknown section %s."), arg);
     }