Restore missing space lost when switching to UI_OUT.
authorAndrew Cagney <cagney@redhat.com>
Fri, 12 Jan 2001 09:45:57 +0000 (09:45 +0000)
committerAndrew Cagney <cagney@redhat.com>
Fri, 12 Jan 2001 09:45:57 +0000 (09:45 +0000)
gdb/ChangeLog
gdb/infcmd.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/callfuncs.exp

index 9f951e1..500b5b7 100644 (file)
@@ -1,3 +1,8 @@
+Fri Jan 12 18:29:46 2001  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * infcmd.c (print_return_value): Restore space lost by switch to
+       UIOUT. ``$NN='' should be ``$NN =''.
+       
 2001-01-08  Nicholas Duffek  <nsd@redhat.com>
 
        * regcache.c (set_register_cached, register_buffer,
index fb788f8..cd18676 100644 (file)
@@ -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");
index c598a07..ace1160 100644 (file)
@@ -1,3 +1,7 @@
+Fri Jan 12 18:29:01 2001  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * gdb.base/callfuncs.exp: Add space after ``Value returned is''.
+
 2000-12-21  Michael Snyder  <msnyder@mvstp600e.cygnus.com>
 
        * gdb.base/finish.exp: Accept '1' instead of \001 from char_func.
index eab99dd..fbd311f 100644 (file)
@@ -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.*" \