From 9549d9c176b98ec8566c8cea02e281ae81efa078 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Fri, 12 Jan 2001 09:45:57 +0000 Subject: [PATCH] Restore missing space lost when switching to UI_OUT. --- gdb/ChangeLog | 5 +++++ gdb/infcmd.c | 2 +- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.base/callfuncs.exp | 2 +- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9f951e139bb..500b5b72731 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Fri Jan 12 18:29:46 2001 Andrew Cagney + + * infcmd.c (print_return_value): Restore space lost by switch to + UIOUT. ``$NN='' should be ``$NN =''. + 2001-01-08 Nicholas Duffek * regcache.c (set_register_cached, register_buffer, diff --git a/gdb/infcmd.c b/gdb/infcmd.c index fb788f86e0a..cd18676a11a 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -1017,7 +1017,7 @@ print_return_value (int structure_return, struct type *value_type) stb = ui_out_stream_new (uiout); ui_out_text (uiout, "Value returned is "); ui_out_field_fmt (uiout, "gdb-result-var", "$%d", record_latest_value (value)); - ui_out_text (uiout, "= "); + ui_out_text (uiout, " = "); value_print (value, stb->stream, 0, Val_no_prettyprint); ui_out_field_stream (uiout, "return-value", stb); ui_out_text (uiout, "\n"); diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index c598a072a84..ace11607dbc 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +Fri Jan 12 18:29:01 2001 Andrew Cagney + + * gdb.base/callfuncs.exp: Add space after ``Value returned is''. + 2000-12-21 Michael Snyder * gdb.base/finish.exp: Accept '1' instead of \001 from char_func. diff --git a/gdb/testsuite/gdb.base/callfuncs.exp b/gdb/testsuite/gdb.base/callfuncs.exp index eab99dd6dc6..fbd311f8af4 100644 --- a/gdb/testsuite/gdb.base/callfuncs.exp +++ b/gdb/testsuite/gdb.base/callfuncs.exp @@ -334,7 +334,7 @@ if ![gdb_test "bt 2" \ # make sure we are back at main and still have the same register contents. gdb_test "print add(4,5)" "The program being debugged stopped while.*" "" gdb_test "finish" \ - "Value returned is.* = 9" \ + "Value returned is .* = 9" \ "finish from call dummy breakpoint returns correct value" if ![gdb_test "bt 2" \ "#0 main.*" \ -- 2.30.2