aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKung Hsu <kung@cygnus>1993-12-17 18:51:17 +0000
committerKung Hsu <kung@cygnus>1993-12-17 18:51:17 +0000
commit40f24469773f60be24cf9668ad5d290f2c0cc78f (patch)
treea6c4db6953ad7e36a504a916fe0d9480187e516b /gdb/c-valprint.c
parent * ldmain.c (lprefix): Change default from a char to a string (diff)
downloadbinutils-gdb-40f24469773f60be24cf9668ad5d290f2c0cc78f.tar.gz
binutils-gdb-40f24469773f60be24cf9668ad5d290f2c0cc78f.tar.bz2
binutils-gdb-40f24469773f60be24cf9668ad5d290f2c0cc78f.zip
Modified Files:
ChangeLog symtab.c c-valprint.c * symtab (decode_line_1): fix a bug when position char is not set correctly. * c-valprint (c_val_print): handle vtbl printing when vtbl is not set up yet.
Diffstat (limited to 'gdb/c-valprint.c')
-rw-r--r--gdb/c-valprint.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c
index be498dfff8a..b370db9f67b 100644
--- a/gdb/c-valprint.c
+++ b/gdb/c-valprint.c
@@ -197,7 +197,7 @@ c_val_print (type, valaddr, address, stream, format, deref_ref, recurse,
fputs_filtered (SYMBOL_SOURCE_NAME (msymbol), stream);
fputs_filtered (">", stream);
}
- if (vtblprint)
+ if (vt_address && vtblprint)
{
value vt_val;
struct symbol *wsym = (struct symbol *)NULL;
@@ -206,8 +206,8 @@ c_val_print (type, valaddr, address, stream, format, deref_ref, recurse,
struct block *block = (struct block *)NULL;
int is_this_fld;
-
- wsym = lookup_symbol (SYMBOL_NAME(msymbol), block,
+ if (msymbol != NULL)
+ wsym = lookup_symbol (SYMBOL_NAME(msymbol), block,
VAR_NAMESPACE, &is_this_fld, &s);
if (wsym)