* infcall.c (call_function_by_hand): Fix punctuation and capitalization
authorDoug Evans <dje@google.com>
Tue, 18 Nov 2008 00:13:04 +0000 (00:13 +0000)
committerDoug Evans <dje@google.com>
Tue, 18 Nov 2008 00:13:04 +0000 (00:13 +0000)
on error messages.

* gdb.mi/mi-syn-frame.exp: Update expected output.
* gdb.mi/mi2-syn-frame.exp: Update expected output.

gdb/ChangeLog
gdb/infcall.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.mi/mi-syn-frame.exp
gdb/testsuite/gdb.mi/mi2-syn-frame.exp

index e70bea18ccbc9233ce3a15cd2479e86c0abc7cb1..27eb67c266e94632d658e99ca0ad36e86c5d6785 100644 (file)
@@ -1,3 +1,8 @@
+2008-11-17  Doug Evans  <dje@google.com>
+
+       * infcall.c (call_function_by_hand): Fix punctuation and capitalization
+       on error messages.
+
 2008-11-17  Ulrich Weigand  <uweigand@de.ibm.com>
 
        PR gdb/2250
index aa3bee0999ad3e22f8d5ef841a07d8901341b8db..b2ca4855ccbd61bca589cefb4330fc057874edf7 100644 (file)
@@ -339,7 +339,7 @@ call_function_by_hand (struct value *function, int nargs, struct value **args)
   gdbarch = get_frame_arch (frame);
 
   if (!gdbarch_push_dummy_call_p (gdbarch))
-    error (_("This target does not support function calls"));
+    error (_("This target does not support function calls."));
 
   /* Create a cleanup chain that contains the retbuf (buffer
      containing the register values).  This chain is create BEFORE the
@@ -529,7 +529,7 @@ call_function_by_hand (struct value *function, int nargs, struct value **args)
     }
 
   if (nargs < TYPE_NFIELDS (ftype))
-    error (_("too few arguments in function call"));
+    error (_("Too few arguments in function call."));
 
   {
     int i;
@@ -754,7 +754,7 @@ The program being debugged exited while in a function called from GDB."));
              error (_("\
 The program being debugged was signaled while in a function called from GDB.\n\
 GDB has restored the context to what it was before the call.\n\
-To change this behavior use \"set unwindonsignal off\"\n\
+To change this behavior use \"set unwindonsignal off\".\n\
 Evaluation of the expression containing the function (%s) will be abandoned."),
                     name);
            }
@@ -774,7 +774,7 @@ Evaluation of the expression containing the function (%s) will be abandoned."),
              error (_("\
 The program being debugged was signaled while in a function called from GDB.\n\
 GDB remains in the frame where the signal was received.\n\
-To change this behavior use \"set unwindonsignal on\"\n\
+To change this behavior use \"set unwindonsignal on\".\n\
 Evaluation of the expression containing the function (%s) will be abandoned."),
                     name);
            }
index 58b2a2a176ed7892edce10a2179b6518fc1604e9..ba31a1d889e82d681ca3f794237f7a93b9099db4 100644 (file)
@@ -1,3 +1,8 @@
+2008-11-17  Doug Evans  <dje@google.com>
+
+       * gdb.mi/mi-syn-frame.exp: Update expected output.
+       * gdb.mi/mi2-syn-frame.exp: Update expected output.
+
 2008-11-17  Vladimir Prus  <vladimir@codesourcery.com>
 
        * gdb.mi/mi-pthreads.exp (check_mi_thread_command_set): Make sure
index ad0c439aa4785386c8722d2da208ddd269800e6d..4beb88cb255d3f0ce99d9d9655e10af4c6a74105 100644 (file)
@@ -92,7 +92,7 @@ mi_gdb_test "409-stack-list-frames 0 0" \
 # 
 
 mi_gdb_test "410-data-evaluate-expression bar()" \
-  ".*410\\^error,msg=\"The program being debugged was signaled while in a function called from GDB.\\\\nGDB remains in the frame where the signal was received.\\\\nTo change this behavior use \\\\\"set unwindonsignal on\\\\\"\\\\nEvaluation of the expression containing the function \\(bar\\) will be abandoned.\"" \
+  ".*410\\^error,msg=\"The program being debugged was signaled while in a function called from GDB.\\\\nGDB remains in the frame where the signal was received.\\\\nTo change this behavior use \\\\\"set unwindonsignal on\\\\\".\\\\nEvaluation of the expression containing the function \\(bar\\) will be abandoned.\"" \
   "call inferior function which raises exception"
 
 mi_gdb_test "411-stack-list-frames" "411\\^done,stack=\\\[frame=\{level=\"0\",addr=\"$hex\",func=\"bar\",file=\".*mi-syn-frame.c\",fullname=\"${fullname_syntax}${srcfile}\",line=\"$decimal\"},frame=\{level=\"1\",addr=\"$hex\",func=\"<function called from gdb>\"\},frame=\{level=\"2\",addr=\"$hex\",func=\"main\",file=\".*mi-syn-frame.c\",fullname=\"${fullname_syntax}${srcfile}\",line=\"$decimal\"}.*\\\]" "backtrace from inferior function at exception"
index 8345c6a43d7cfde854865e4320ab84509005b7db..934844675165651db07aab971ee31cc010dd30cf 100644 (file)
@@ -92,7 +92,7 @@ mi_gdb_test "409-stack-list-frames 0 0" \
 # Call bar() by hand, which should get an exception while running.
 # 
 
-mi_gdb_test "410-data-evaluate-expression bar()" ".*410\\^error,msg=\"The program being debugged was signaled while in a function called from GDB.\\\\nGDB remains in the frame where the signal was received.\\\\nTo change this behavior use \\\\\"set unwindonsignal on\\\\\"\\\\nEvaluation of the expression containing the function \\(bar\\) will be abandoned.\"" "call inferior function which raises exception"
+mi_gdb_test "410-data-evaluate-expression bar()" ".*410\\^error,msg=\"The program being debugged was signaled while in a function called from GDB.\\\\nGDB remains in the frame where the signal was received.\\\\nTo change this behavior use \\\\\"set unwindonsignal on\\\\\".\\\\nEvaluation of the expression containing the function \\(bar\\) will be abandoned.\"" "call inferior function which raises exception"
 
 mi_gdb_test "411-stack-list-frames" "411\\^done,stack=\\\[frame=\{level=\"0\",addr=\"$hex\",func=\"bar\",file=\".*mi-syn-frame.c\",fullname=\"${fullname_syntax}${srcfile}\",line=\"$decimal\"},frame=\{level=\"1\",addr=\"$hex\",func=\"<function called from gdb>\"\},frame=\{level=\"2\",addr=\"$hex\",func=\"main\",file=\".*mi-syn-frame.c\",fullname=\"${fullname_syntax}${srcfile}\",line=\"$decimal\"}.*\\\]" "backtrace from inferior function at exception"
 
This page took 0.038776 seconds and 4 git commands to generate.