Test user-defined gdb commands and arguments stack
authorPedro Alves <palves@redhat.com>
Fri, 2 Dec 2016 19:17:13 +0000 (19:17 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 2 Dec 2016 19:22:23 +0000 (19:22 +0000)
commitec835369f121c11d6e9484ed8c6c11097ad545c5
tree5ebc63d7cf058de100d74a8d55d62d26d934860d
parent01770bbde902e075e524b518ac6c1087a4cc1cfb
Test user-defined gdb commands and arguments stack

We're missing a test that makes sure that arguments to user-defined
commands are handled correctly when a user-defined command calls
another user-defined command / recurses.

The following patch changes that code, so add such a test first so we
can be confident won't be breaking this use case.

gdb/testsuite/ChangeLog:
2016-12-02  Pedro Alves  <palves@redhat.com>

* gdb.base/commands.exp (user_defined_command_args_stack_test):
New procedure.
(top level): Call it.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/commands.exp