aboutsummaryrefslogtreecommitdiff
path: root/gdb/printcmd.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-05-30 08:52:52 +0000
committerJohn Gilmore <gnu@cygnus>1991-05-30 08:52:52 +0000
commitd11c44f1ee9650339d5c874d3227611f82e3f104 (patch)
tree23487e3405f8e4c1202d95d6c3e3fa4fe67ac2fb /gdb/printcmd.c
parent924bbb3815705cba6e369cbea2dff86884e9265a (diff)
downloadgdb-d11c44f1ee9650339d5c874d3227611f82e3f104.zip
gdb-d11c44f1ee9650339d5c874d3227611f82e3f104.tar.gz
gdb-d11c44f1ee9650339d5c874d3227611f82e3f104.tar.bz2
Roll in Tiemann changes for gcc -ansi. Fix assorted bugs. See ChangeLog.
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r--gdb/printcmd.c21
1 files changed, 13 insertions, 8 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index 149239e..a5251eb 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -993,27 +993,30 @@ ptype_command (typename, from_tty)
whatis_exp (typename, 1);
return;
}
- printf_filtered ("No type named %s, but there is a ",
- typename);
+ printf_filtered ("No type named %s, ", typename);
+ wrap_here ("");
+ printf_filtered ("but there is ");
switch (TYPE_CODE (SYMBOL_TYPE (sym)))
{
case TYPE_CODE_STRUCT:
- printf_filtered ("struct");
+ printf_filtered ("a struct");
break;
case TYPE_CODE_UNION:
- printf_filtered ("union");
+ printf_filtered ("a union");
break;
case TYPE_CODE_ENUM:
- printf_filtered ("enum");
+ printf_filtered ("an enum");
break;
default:
printf_filtered ("(Internal error in gdb)");
break;
}
- printf_filtered (" %s. Type \"help ptype\".\n", typename);
+ printf_filtered (" %s. ", typename);
+ wrap_here ("");
+ printf_filtered ("(Type \"help ptype\".)\n");
type = SYMBOL_TYPE (sym);
}
}
@@ -1531,11 +1534,13 @@ print_frame_args (func, fi, num, stream)
/* Avoid value_print because it will deref ref parameters. We just
want to print their addresses. Print ??? for args whose address
- we do not know. */
+ we do not know. We pass 2 as "recurse" to val_print because our
+ standard indentation here is 4 spaces, and val_print indents
+ 2 for each recurse. */
val = read_var_value (sym, FRAME_INFO_ID (fi));
if (val)
val_print (VALUE_TYPE (val), VALUE_CONTENTS (val), VALUE_ADDRESS (val),
- stream, 0, 0, 0, Val_no_prettyprint);
+ stream, 0, 0, 2, Val_no_prettyprint);
else
fputs_filtered ("???", stream);
first = 0;