forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -197,7 +197,7 @@ c_val_print (type, valaddr, address, stream, format, deref_ref, recurse,
|
|||||||
fputs_filtered (SYMBOL_SOURCE_NAME (msymbol), stream);
|
fputs_filtered (SYMBOL_SOURCE_NAME (msymbol), stream);
|
||||||
fputs_filtered (">", stream);
|
fputs_filtered (">", stream);
|
||||||
}
|
}
|
||||||
if (vtblprint)
|
if (vt_address && vtblprint)
|
||||||
{
|
{
|
||||||
value vt_val;
|
value vt_val;
|
||||||
struct symbol *wsym = (struct symbol *)NULL;
|
struct symbol *wsym = (struct symbol *)NULL;
|
||||||
@@ -206,7 +206,7 @@ c_val_print (type, valaddr, address, stream, format, deref_ref, recurse,
|
|||||||
struct block *block = (struct block *)NULL;
|
struct block *block = (struct block *)NULL;
|
||||||
int is_this_fld;
|
int is_this_fld;
|
||||||
|
|
||||||
|
if (msymbol != NULL)
|
||||||
wsym = lookup_symbol (SYMBOL_NAME(msymbol), block,
|
wsym = lookup_symbol (SYMBOL_NAME(msymbol), block,
|
||||||
VAR_NAMESPACE, &is_this_fld, &s);
|
VAR_NAMESPACE, &is_this_fld, &s);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user