forked from Imagelibrary/binutils-gdb
* c-exp.y (block, variable, name_not_typename, lex_one_token,
classify_name): Update. * c-valprint.c (c_val_print): Update. * f-exp.y (yylex): Update. * go-exp.y (package_name_p, classify_packaged_name) (classify_name): Update. * jv-exp.y (push_variable): Update. * m2-exp.y (variable): Update. * mi/mi-cmd-stack.c (list_args_or_locals): Update. * p-exp.y (block, variable, yylex): Update. * p-valprint.c (pascal_val_print): Update. * parse.c (write_dollar_variable): Update. * printcmd.c (address_info): Update. * python/py-symbol.c (gdbpy_lookup_symbol): Update. * symtab.c (lookup_symbol_aux, lookup_symbol_in_language) (lookup_symbol): Change type of 'is_a_field_of_this'. (check_field): Add 'is_a_field_of_this' argument. * symtab.h (struct field_of_this_result): New. (lookup_symbol, lookup_symbol_in_language): Update.
This commit is contained in:
@@ -1199,8 +1199,7 @@ address_info (char *exp, int from_tty)
|
||||
long val;
|
||||
struct obj_section *section;
|
||||
CORE_ADDR load_addr, context_pc = 0;
|
||||
int is_a_field_of_this; /* C++: lookup_symbol sets this to nonzero
|
||||
if exp is a field of `this'. */
|
||||
struct field_of_this_result is_a_field_of_this;
|
||||
|
||||
if (exp == 0)
|
||||
error (_("Argument required."));
|
||||
@@ -1209,7 +1208,7 @@ address_info (char *exp, int from_tty)
|
||||
&is_a_field_of_this);
|
||||
if (sym == NULL)
|
||||
{
|
||||
if (is_a_field_of_this)
|
||||
if (is_a_field_of_this.type != NULL)
|
||||
{
|
||||
printf_filtered ("Symbol \"");
|
||||
fprintf_symbol_filtered (gdb_stdout, exp,
|
||||
|
||||
Reference in New Issue
Block a user