diff options
author | Tom Tromey <tromey@redhat.com> | 2012-05-18 15:29:11 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-05-18 15:29:11 +0000 |
commit | 6d07a30f94f9dbc34aab6fcbb4f8895ef019249b (patch) | |
tree | df74382e62c7349ce231b2559ee01d886fbe5b52 /gdb/valprint.c | |
parent | 266ba1ac775fcc840534050597328fdac996677b (diff) | |
download | gdb-6d07a30f94f9dbc34aab6fcbb4f8895ef019249b.tar.gz |
* valprint.c (val_print_string): Don't print leading space.
* p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
print space before string or vtbl.
* m2-valprint.c (print_unpacked_pointer): Optionally print space
before string.
* jv-valprint.c (java_value_print): Print space before string.
* go-valprint.c (print_go_string): Print space before string.
* f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
space before string.
* c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
space before string or vtbl.
* auxv.c (fprint_target_auxv): Print space after address.
Diffstat (limited to 'gdb/valprint.c')
-rw-r--r-- | gdb/valprint.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c index 507aeb587b8..6742fc16eca 100644 --- a/gdb/valprint.c +++ b/gdb/valprint.c @@ -2351,10 +2351,6 @@ val_print_string (struct type *elttype, const char *encoding, and then the error message. */ if (errcode == 0 || bytes_read > 0) { - if (options->addressprint) - { - fputs_filtered (" ", stream); - } LA_PRINT_STRING (stream, elttype, buffer, bytes_read / width, encoding, force_ellipsis, options); } @@ -2363,13 +2359,13 @@ val_print_string (struct type *elttype, const char *encoding, { if (errcode == EIO) { - fprintf_filtered (stream, " <Address "); + fprintf_filtered (stream, "<Address "); fputs_filtered (paddress (gdbarch, addr), stream); fprintf_filtered (stream, " out of bounds>"); } else { - fprintf_filtered (stream, " <Error reading address "); + fprintf_filtered (stream, "<Error reading address "); fputs_filtered (paddress (gdbarch, addr), stream); fprintf_filtered (stream, ": %s>", safe_strerror (errcode)); } |