| Index: gdb/testsuite/gdb.trace/collection.exp
|
| diff --git a/gdb/testsuite/gdb.trace/collection.exp b/gdb/testsuite/gdb.trace/collection.exp
|
| index 25544b546397dda4f511149b026ddd83b9ce834b..ba0ada59babbfac18bb4319ed0c89ac8db2085bc 100644
|
| --- a/gdb/testsuite/gdb.trace/collection.exp
|
| +++ b/gdb/testsuite/gdb.trace/collection.exp
|
| @@ -1,4 +1,4 @@
|
| -# Copyright 1998, 2005, 2007-2012 Free Software Foundation, Inc.
|
| +# Copyright 1998-2013 Free Software Foundation, Inc.
|
|
|
| # This program is free software; you can redistribute it and/or modify
|
| # it under the terms of the GNU General Public License as published by
|
| @@ -128,6 +128,22 @@ proc gdb_collect_args_test { myargs msg } {
|
| # Begin the test.
|
| run_trace_experiment $msg args_test_func
|
|
|
| + # Frame arguments and their entry values are displayed correctly with
|
| + # various values of "print entry-values" when a trace frame is
|
| + # selected.
|
| +
|
| + gdb_test "tfind -1" ".*" ""
|
| + gdb_test_no_output "set print entry-values only" ""
|
| + gdb_test "tfind 0" \
|
| + " \\(argc@entry=\[^,\]*, argi@entry=\[^,\]*, argf@entry=\[^,\]*, argd@entry=\[^,\]*, argstruct@entry=\[^,\]*, argarray@entry=\[^,\]*\\) .*" \
|
| + "collect $msg: tfind 0 with entry-values only"
|
| +
|
| + gdb_test "tfind -1" ".*" ""
|
| + gdb_test_no_output "set print entry-values both" ""
|
| + gdb_test "tfind 0" \
|
| + " \\(argc=\[^,\]*, argc@entry=\[^,\]*, argi=\[^,\]*, argi@entry=\[^,\]*, argf=\[^,\]*, argf@entry=\[^,\]*, argd=\[^,\]*, argd@entry=\[^,\]*, argstruct=\[^,\]*, argstruct@entry=\[^,\]*, argarray=\[^,\]*, argarray@entry=\[^,\]*\\) .*" \
|
| + "collect $msg: tfind 0 with entry-values both"
|
| +
|
| gdb_test "print argc" \
|
| "\\$\[0-9\]+ = 1 '.001'$cr" \
|
| "collect $msg: collected arg char"
|
| @@ -776,7 +792,7 @@ runto_main
|
|
|
| if { ![gdb_target_supports_trace] } then {
|
| unsupported "Current target does not support trace"
|
| - return 1;
|
| + return 1
|
| }
|
|
|
| # Body of test encased in a proc so we can return prematurely.
|
|
|