Fix FAIL: gdb.ada/small_reg_param.exp: continue to call_me
authorJoel Brobecker <brobecker@gnat.com>
Wed, 10 Jul 2013 00:10:37 +0000 (00:10 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Wed, 10 Jul 2013 00:10:37 +0000 (00:10 +0000)
If enough information is provided by the compiler, the debugger
now prints the entry value of various parameters:

    (gdb) continue
    Continuing.

    Breakpoint 2, pck.call_me (w=w@entry=50) at [...]
    20            Last_Word := W;

This patch adjusts the expected output to allow an optional
"w@entry=" in the parameter value.

gdb/testsuite/ChangeLog:

        * gdb.ada/small_reg_param.exp: Accept optional entry value
        for parameter "w".

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.ada/small_reg_param.exp

index 4688b388f00e7400dbb5e0ab1796297f7ef48dde..a55b7e368fa65d1fa79b0c699534c3ab0e46cc4f 100644 (file)
@@ -1,3 +1,8 @@
+2013-07-09  Joel Brobecker  <brobecker@adacore.com>
+
+       * gdb.ada/small_reg_param.exp: Accept optional entry value
+       for parameter "w".
+
 2013-07-09  Joel Brobecker  <brobecker@adacore.com>
 
        * gdb.ada/small_reg_param.exp: Remove trailing space.
index 4a18a9a00a4ba7ee7a7c6982c1f1e0af2565d285..b3cf2d8d241f92d308beed244486773435b67624 100644 (file)
@@ -33,7 +33,7 @@ gdb_breakpoint "call_me"
 # Continue until we hit the breakpoint inside `Call_Me'.  We verify
 # that the parameter value is correct.
 gdb_test "continue" \
-    "Breakpoint .*, pck\\.call_me \\(w=50\\) at .*/pck.adb:.*" \
+    "Breakpoint .*, pck\\.call_me \\(w=(w@entry=)?50\\) at .*/pck.adb:.*" \
     "continue to call_me"
 
 # And just to make sure, we also verify that the parameter value
This page took 0.035994 seconds and 4 git commands to generate.