Tidy innerblock_complaint and blockvector_complaint.
authorJohn Gilmore <gnu@cygnus>
Sat, 4 Jul 1992 12:23:23 +0000 (12:23 +0000)
committerJohn Gilmore <gnu@cygnus>
Sat, 4 Jul 1992 12:23:23 +0000 (12:23 +0000)
gdb/buildsym.c

index 0c33a15a383a277bbf79718dbc7ac9dcf1cfa30c..7fb2c50b3750eceb67a61d00c6e1c63f09b706c2 100644 (file)
@@ -123,8 +123,11 @@ static int undef_types_allocated, undef_types_length;
 struct complaint innerblock_complaint =
   {"inner block not inside outer block in %s", 0, 0};
 
+struct complaint innerblock_anon_complaint =
+  {"inner block not inside outer block", 0, 0};
+
 struct complaint blockvector_complaint = 
-  {"block at %x out of order", 0, 0};
+  {"block at 0x%x out of order", 0, 0};
 
 #if 0
 struct complaint dbx_class_complaint =
@@ -447,8 +450,8 @@ finish_block (symbol, listhead, old_blocks, start, end, objfile)
           amount of time.  */
        if (BLOCK_START (pblock->block) < BLOCK_START (block)
         || BLOCK_END   (pblock->block) > BLOCK_END   (block)) {
-         complain(&innerblock_complaint, symbol? SYMBOL_NAME (symbol):
-                                                "(don't know)");
+         complain(symbol? &innerblock_complaint : &innerblock_anon_complaint,
+                  SYMBOL_NAME (symbol));
          BLOCK_START (pblock->block) = BLOCK_START (block);
          BLOCK_END   (pblock->block) = BLOCK_END   (block);
        }