diff options
author | Tom de Vries <tdevries@suse.de> | 2022-11-14 12:12:19 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2022-11-14 12:12:19 +0100 |
commit | 7f21d259bcefda58b701af01cc6a749c8133fb2b (patch) | |
tree | 02b98b4e1c93a031383a8ba41b30762f0517a4b7 /gdbsupport/common-utils.cc | |
parent | 8d45c3a82a0eb5ecfc9049bed5569f9e27e3be8c (diff) | |
download | binutils-7f21d259bcefda58b701af01cc6a749c8133fb2b.zip binutils-7f21d259bcefda58b701af01cc6a749c8133fb2b.tar.gz binutils-7f21d259bcefda58b701af01cc6a749c8133fb2b.tar.bz2 |
[gdb/testsuite] Handle with_set arch
I realized that the more irregular output of show arch:
...
(gdb) show arch^M
The target architecture is set to "auto" (currently "i386").^M
...
would be a problem for something like:
...
with_set arch powerpc:common64 {}
...
and indeed:
...
(gdb) set arch powerpc:common64^M
The target architecture is set to "powerpc:common64".^M
(gdb) FAIL: gdb.base/foo.exp: set arch powerpc:common64
...
and:
...
(gdb) set arch set to "auto" (currently "i386")^M
Undefined item: "set".^M
...
Fix this in with_set by handling this type of output.
Tested on x86_64-linux.
Diffstat (limited to 'gdbsupport/common-utils.cc')
0 files changed, 0 insertions, 0 deletions