diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2015-09-07 08:53:24 +0100 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2015-10-12 23:29:43 +0200 |
commit | 9d622bda566a4980b045631f500c29717ede8186 (patch) | |
tree | 9b1b8514682d0cd400175bf4306ea99269530a08 /gdb/testsuite | |
parent | fc58fa65d454ce87cfa87a532f2c4f5d0b57d252 (diff) | |
download | gdb-9d622bda566a4980b045631f500c29717ede8186.zip gdb-9d622bda566a4980b045631f500c29717ede8186.tar.gz gdb-9d622bda566a4980b045631f500c29717ede8186.tar.bz2 |
gdb: Fix bug with dbx style func command.
The func command, available when starting gdb in dbx mode, is supposed
to take a function name and locate the frame for that function in the
stack. This has been broken for a while due to an invalid check of the
arguments within the worker function. Fixed in this commit.
gdb/ChangeLog:
* stack.c (func_command): Return early when there is no ARG
string.
gdb/testsuite/ChangeLog:
* gdb.base/dbx.exp (test_func): Remove xfails, update expected
results.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/dbx.exp | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 9aeefa8..74aa6ae 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com> + + * gdb.base/dbx.exp (test_func): Remove xfails, update expected + results. + 2015-10-12 Yao Qi <yao.qi@linaro.org> * gdb.arch/disp-step-insn-reloc.exp: New test case. diff --git a/gdb/testsuite/gdb.base/dbx.exp b/gdb/testsuite/gdb.base/dbx.exp index 19dba62..75cb0fd 100644 --- a/gdb/testsuite/gdb.base/dbx.exp +++ b/gdb/testsuite/gdb.base/dbx.exp @@ -293,15 +293,11 @@ proc test_func { } { global srcfile2 gdb_test "cont" ".*" "cont 1" gdb_test "step" ".*" - # This always fails, but it's not clear why. -sts 1999-08-17 - setup_xfail "*-*-*" gdb_test "func sum" "'sum' not within current stack frame\." set stop_line [gdb_get_line_number "stop-in-sum" $srcfile2] gdb_test "stop in sum" "Breakpoint.*at.*: file.*sum\.c, line $stop_line\." gdb_test "cont" ".*" "cont 2" - # This always fails, but it's not clear why. -sts 1999-08-17 - setup_xfail "*-*-*" - gdb_test "func print_average" ".*in print_average.*\\(list=.*, low=0, high=6\\).*at.*average\.c:${decimal}\r\n\${decimal}\[ \t\]+total = sum\\(list, low, high\\);" + gdb_test "func print_average" ".*in print_average.*\\(list=.*, low=0, high=6\\).*at.*average\.c:${decimal}\r\n${decimal}\[ \t\]+total = sum\\(list, low, high\\);" } # Start with a fresh gdb. |