aboutsummaryrefslogtreecommitdiff
path: root/gdb/printcmd.c
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1994-04-27 19:31:08 +0000
committerSteve Chamberlain <sac@cygnus>1994-04-27 19:31:08 +0000
commitc0c9b9232fc9351765573182506a617d632d40c5 (patch)
tree15d2ce0fff71cf14db0bf414e4e61c78a3137d57 /gdb/printcmd.c
parent835578f34d7ea43a36cb3c32afa8203dd335bd17 (diff)
downloadgdb-c0c9b9232fc9351765573182506a617d632d40c5.zip
gdb-c0c9b9232fc9351765573182506a617d632d40c5.tar.gz
gdb-c0c9b9232fc9351765573182506a617d632d40c5.tar.bz2
* printcmd.c (print_address_symbolic): Initialize name to empty
string to avoid core dump if lookup fails. * remote-e7000.c (printf_e7000debug): Error if target not open.
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r--gdb/printcmd.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index 981cf59..0052b31 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -537,7 +537,7 @@ print_address_symbolic (addr, stream, do_demangle, leadin)
struct symbol *symbol;
struct symtab *symtab = 0;
CORE_ADDR name_location = 0;
- char *name;
+ char *name = "";
/* First try to find the address in the symbol table, then
in the minsyms. Take the closest one. */
@@ -1627,7 +1627,7 @@ print_frame_args (func, fi, num, stream)
Additional note: It might be nice if "info args" displayed
both values.
- One more note: There is a case with sparc sturcture passing
+ One more note: There is a case with sparc structure passing
where we need to use the LOC_REGISTER, but this is dealt with
by creating a single LOC_REGPARM in symbol reading. */
@@ -1644,7 +1644,8 @@ print_frame_args (func, fi, num, stream)
wrap_here (" ");
if (annotation_level > 1)
- printf_filtered ("\n\032\032arg-name-begin\n");
+ printf_filtered ("\n\032\032arg-begin\n");
+
fprintf_symbol_filtered (stream, SYMBOL_SOURCE_NAME (sym),
SYMBOL_LANGUAGE (sym), DMGL_PARAMS | DMGL_ANSI);
if (annotation_level > 1)
@@ -1660,7 +1661,7 @@ print_frame_args (func, fi, num, stream)
if (annotation_level > 1)
{
- printf_filtered ("\n\032\032arg-begin ");
+ printf_filtered ("\n\032\032arg-value ");
print_value_flags (val == NULL ? NULL : VALUE_TYPE (val));
printf_filtered ("\n");
}