[gdb/testsuite] Fix gdb.base/trace-commands.exp with editing off
authorTom de Vries <tdevries@suse.de>
Fri, 31 Mar 2023 15:15:37 +0000 (17:15 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 31 Mar 2023 15:15:37 +0000 (17:15 +0200)
commit103409bb38502b95cb60475939a49c2b059673d5
treec0d406ccad71368d7fab2b3afc0959d54874857e
parent89447229c7961dd99d5167f2ebcc5d8973d5d5ae
[gdb/testsuite] Fix gdb.base/trace-commands.exp with editing off

With test-case gdb.base/trace-commands.exp and editing off, I run into fails
because multi-line commands are issued using gdb_test_sequence, which
doesn't handle them correctly.

Fix this by using gdb_test instead.

Tested on x86_64-linux.

PR testsuite/30288
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30288
gdb/testsuite/gdb.base/trace-commands.exp