diff options
author | Tom Tromey <tromey@redhat.com> | 2012-12-14 17:47:40 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-12-14 17:47:40 +0000 |
commit | 1993b71979c5e9cb66b067abfcb003b5d5cdab03 (patch) | |
tree | c8b48b6de6e818a6875b2765e1f0e0c9b0391f86 /gdb/printcmd.c | |
parent | 2dc3df72a7ffca9a893ae41db8c3788c0019d59c (diff) | |
download | gdb-1993b71979c5e9cb66b067abfcb003b5d5cdab03.zip gdb-1993b71979c5e9cb66b067abfcb003b5d5cdab03.tar.gz gdb-1993b71979c5e9cb66b067abfcb003b5d5cdab03.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 25b14e1..805d1ff 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -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, |