gdb: Fix bug with dbx style func command.
authorAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 7 Sep 2015 07:53:24 +0000 (08:53 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 12 Oct 2015 21:29:43 +0000 (23:29 +0200)
commit9d622bda566a4980b045631f500c29717ede8186
tree9b1b8514682d0cd400175bf4306ea99269530a08
parentfc58fa65d454ce87cfa87a532f2c4f5d0b57d252
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.
gdb/ChangeLog
gdb/stack.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/dbx.exp