aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1991-10-24 10:29:07 +0000
committerFred Fish <fnf@specifix.com>1991-10-24 10:29:07 +0000
commiteaa1ef1df185459a3bacf9cb5b2cd2cfc10cd8ac (patch)
tree59c7d7bd6f37ce3a42259845b45daaf7f02ac466 /gdb/symtab.c
parente0796d22131863dc0738fc2d5b130d6bdcc220e5 (diff)
downloadgdb-eaa1ef1df185459a3bacf9cb5b2cd2cfc10cd8ac.zip
gdb-eaa1ef1df185459a3bacf9cb5b2cd2cfc10cd8ac.tar.gz
gdb-eaa1ef1df185459a3bacf9cb5b2cd2cfc10cd8ac.tar.bz2
Make internal errors produce more useful messages.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index 2d6cd05..0a53dcc 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -83,7 +83,7 @@ lookup_symtab_1 (name)
if (!strcmp (name, ps->filename))
{
if (ps->readin)
- fatal ("Internal: readin pst found when no symtab found.");
+ error ("Internal: readin pst for `%s' found when no symtab found.", name);
return PSYMTAB_TO_SYMTAB (ps);
}
@@ -106,7 +106,7 @@ lookup_symtab_1 (name)
&& !strcmp (ps->filename + l - len, name))
{
if (ps->readin)
- fatal ("Internal: readin pst found when no symtab found.");
+ error ("Internal: readin pst for `%s' found when no symtab found.", name);
return PSYMTAB_TO_SYMTAB (ps);
}
}
@@ -1039,7 +1039,7 @@ lookup_symbol (name, block, namespace, is_a_field_of_this, symtab)
block = BLOCKVECTOR_BLOCK (bv, GLOBAL_BLOCK);
sym = lookup_block_symbol (block, name, namespace);
if (!sym)
- fatal ("Internal: global symbol found in psymtab but not in symtab");
+ error ("Internal: global symbol `%s' found in psymtab but not in symtab", name);
if (symtab != NULL)
*symtab = s;
return sym;
@@ -1071,7 +1071,7 @@ lookup_symbol (name, block, namespace, is_a_field_of_this, symtab)
block = BLOCKVECTOR_BLOCK (bv, STATIC_BLOCK);
sym = lookup_block_symbol (block, name, namespace);
if (!sym)
- fatal ("Internal: static symbol found in psymtab but not in symtab");
+ error ("Internal: static symbol `%s' found in psymtab but not in symtab", name);
if (symtab != NULL)
*symtab = s;
return sym;
@@ -1104,7 +1104,7 @@ lookup_symbol (name, block, namespace, is_a_field_of_this, symtab)
block = BLOCKVECTOR_BLOCK (bv, STATIC_BLOCK);
sym = lookup_demangled_block_symbol (block, name);
if (!sym)
- fatal ("Internal: static symbol found in psymtab but not in symtab");
+ error ("Internal: mangled static symbol `%s' found in psymtab but not in symtab", name);
if (symtab != NULL)
*symtab = s;
return sym;
@@ -1383,7 +1383,7 @@ find_pc_symtab (pc)
ps = find_pc_psymtab (pc);
if (ps && ps->readin)
printf_filtered (
- "(Internal error: pc in read in psymtab, but not in symtab.)\n");
+ "(Internal error: pc 0x%x in read in psymtab, but not in symtab.)\n", pc);
if (ps)
s = PSYMTAB_TO_SYMTAB (ps);