aboutsummaryrefslogtreecommitdiff
path: root/gdb/valprint.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-05-03 01:07:12 +0000
committerJohn Gilmore <gnu@cygnus>1991-05-03 01:07:12 +0000
commit8ffd75c8a93075fb4a23bda7ae66e3b579038c6b (patch)
tree49685682ddada743c17ff32ee585d5c03b1054d7 /gdb/valprint.c
parent2bff8e38bcfa1cbc460bd605e6907bc99158a096 (diff)
downloadgdb-8ffd75c8a93075fb4a23bda7ae66e3b579038c6b.zip
gdb-8ffd75c8a93075fb4a23bda7ae66e3b579038c6b.tar.gz
gdb-8ffd75c8a93075fb4a23bda7ae66e3b579038c6b.tar.bz2
Mips bringup and general cleanup
* cplus-dem.c: Move CPLUS_MARKER define to after defs.h. * infptrace.c (PT_WRITE_D, PT_READ_D): Use correct values. (This still doesn't seem to make MIPS bkpts work.) * mipsread.c: Remove dup "Reading symbol data..." msg. (symbol_file_command, add_file_command): Remove, obsol. * printcmd.c (ptype_command): Say "an enum" rather than "a enum". Wrap output appropriately. * stack.c (locals_info, catch_info, args_info): Check selected_frame rather than target_has_stack or coredumping. * valprint.c (type_print_varspec_suffix): Wrap "ptype" output of enums appropriately.
Diffstat (limited to 'gdb/valprint.c')
-rw-r--r--gdb/valprint.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c
index fc64139..d91bada 100644
--- a/gdb/valprint.c
+++ b/gdb/valprint.c
@@ -1488,8 +1488,10 @@ type_print_varspec_suffix (type, stream, show, passed_a_ptr)
type_print_1 (args[i], "", stream, -1, 0);
if (args[i+1] == 0)
fprintf_filtered (stream, "...");
- else if (args[i+1]->code != TYPE_CODE_VOID)
+ else if (args[i+1]->code != TYPE_CODE_VOID) {
fprintf_filtered (stream, ",");
+ wrap_here (" ");
+ }
}
fprintf_filtered (stream, ")");
}
@@ -1549,6 +1551,7 @@ type_print_base (type, stream, show, level)
QUIT;
+ wrap_here (" ");
if (type == 0)
{
fprintf_filtered (stream, "type unknown");
@@ -1583,6 +1586,7 @@ type_print_base (type, stream, show, level)
{
fputs_filtered (name, stream);
fputs_filtered (" ", stream);
+ wrap_here (" ");
}
if (show < 0)
fprintf_filtered (stream, "{...}");
@@ -1714,6 +1718,7 @@ type_print_base (type, stream, show, level)
fputs_filtered (name, stream);
fputs_filtered (" ", stream);
}
+ wrap_here (" ");
if (show < 0)
fprintf_filtered (stream, "{...}");
else
@@ -1725,6 +1730,7 @@ type_print_base (type, stream, show, level)
{
QUIT;
if (i) fprintf_filtered (stream, ", ");
+ wrap_here (" ");
fputs_filtered (TYPE_FIELD_NAME (type, i), stream);
if (lastval != TYPE_FIELD_BITPOS (type, i))
{