]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/testsuite: issue "no repeat" command before "no previous command to relaunch... master
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 6 Nov 2025 21:04:29 +0000 (16:04 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Fri, 7 Nov 2025 16:13:02 +0000 (11:13 -0500)
commitb94d8189ae75d81e8bcff74e71d76d354de8882c
tree175ab23a22dc33f59de820097e61c397c26db78e
parent3d649e28ebbf48e6b8b6ea4f1be914427bab83ee
gdb/testsuite: issue "no repeat" command before "no previous command to relaunch" test

I see this failure:

    $ make check TESTS="gdb.base/with.exp" RUNTESTFLAGS="--target_board=native-extended-gdbserver"
    FAIL: gdb.base/with.exp: repeat: reinvoke with no previous command to relaunch

It seems like that failure has always been there and I didn't notice?

I'm not sure what is the intent of the test exactly.  It sounds like it
is meant to test what happens when you use command "with language ada"
as the very first command of a GDB session?  However, clean_restart and
gdb_load issue some commands before that test.  The different between
the native-extended-gdbserver board and the other boards is: for other
boards, the previous command is a "file" command, which is a "no repeat"
command, which gives the expected error message.  With the
native-extended-gdbserver board, the previous command is "set remote
exec-file", which is a repeatable command.

"Fix" it by making a "no repeat" command just before the test, so that
it works the same regardless of the target board.

Change-Id: I254faf196f49e9efd492fc9dd5f6ce7b96f72af7
Approved-By: Tom Tromey <tom@tromey.com>
gdb/testsuite/gdb.base/with.exp