diff options
author | Jeff Law <law@redhat.com> | 1993-11-11 23:27:21 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1993-11-11 23:27:21 +0000 |
commit | 91f87016039cec17692114935282d7296223ec24 (patch) | |
tree | 09d2e4526f9705d30d638e62df5fa8ebc1065a2f /gdb/printcmd.c | |
parent | 3e80841e27fd46016d2529eac7eb4f9f7cf1fc05 (diff) | |
download | gdb-91f87016039cec17692114935282d7296223ec24.zip gdb-91f87016039cec17692114935282d7296223ec24.tar.gz gdb-91f87016039cec17692114935282d7296223ec24.tar.bz2 |
* printcmd.c (address_info): Use fprintf_symbol_filtered
to print the symbol name.
* stabsread.c (define_symbol): Handle cfront lossage for
struct/union/enums and typedefs.
* partial-stab.h (case N_BINCL): Update psymtab_language
as appropriate when changing subfiles.
(case N_SOL): Update psymtab_language as appropriate when
changing subfiles. Add typedef for structs, unions, and enums
when processing C++ files.
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c index ce6b966..87c20a2 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -883,22 +883,32 @@ address_info (exp, from_tty) { if (is_a_field_of_this) { - printf_unfiltered ("Symbol \"%s\" is a field of the local class variable `this'\n", exp); + printf_unfiltered ("Symbol \""); + fprintf_symbol_filtered (gdb_stdout, exp, + current_language->la_language, DMGL_ANSI); + printf_unfiltered ("\" is a field of the local class variable `this'\n"); return; } msymbol = lookup_minimal_symbol (exp, (struct objfile *) NULL); if (msymbol != NULL) - printf_unfiltered ("Symbol \"%s\" is at %s in a file compiled without debugging.\n", - exp, - local_hex_string((unsigned long) SYMBOL_VALUE_ADDRESS (msymbol))); + { + printf_unfiltered ("Symbol \""); + fprintf_symbol_filtered (gdb_stdout, exp, + current_language->la_language, DMGL_ANSI); + printf_unfiltered ("\" is at %s in a file compiled without debugging.\n", + local_hex_string((unsigned long) SYMBOL_VALUE_ADDRESS (msymbol))); + } else error ("No symbol \"%s\" in current context.", exp); return; } - printf_unfiltered ("Symbol \"%s\" is ", SYMBOL_NAME (sym)); + printf_unfiltered ("Symbol \""); + fprintf_symbol_filtered (gdb_stdout, SYMBOL_NAME (sym), + current_language->la_language, DMGL_ANSI); + printf_unfiltered ("\" is ", SYMBOL_NAME (sym)); val = SYMBOL_VALUE (sym); basereg = SYMBOL_BASEREG (sym); |