diff options
author | Hafiz Abid Qadeer <abidh@codesourcery.com> | 2018-09-18 11:23:30 +0100 |
---|---|---|
committer | Hafiz Abid Qadeer <abidh@codesourcery.com> | 2018-09-20 16:46:00 +0100 |
commit | a466edac5f9913e3373e59335607e9666a0ac8c7 (patch) | |
tree | 0e227e6b7a32909c54e1fcf0c28b6124e6be99ed /gdb/testsuite/gdb.base/reggroups.exp | |
parent | fa9d2bd6b819ce143c149cee83456fa9dfe729b4 (diff) | |
download | gdb-a466edac5f9913e3373e59335607e9666a0ac8c7.zip gdb-a466edac5f9913e3373e59335607e9666a0ac8c7.tar.gz gdb-a466edac5f9913e3373e59335607e9666a0ac8c7.tar.bz2 |
Add '_' in the match pattern.
I was looking at GDB testcase results for arm-eabi target with qemu and
noticed that register groups returned by the qemu can have '_' in the
name e.g. 'cp_regs'. The reggroups.exp fails to recognize that as group
name. Fixed by adding '_' in the pattern.
2018-09-20 Hafiz Abid Qadeer <abidh@codesourcery.com>
gdb.base/reggroups.exp (fetch_reggroups): Add '_' in match pattern.
Diffstat (limited to 'gdb/testsuite/gdb.base/reggroups.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/reggroups.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/reggroups.exp b/gdb/testsuite/gdb.base/reggroups.exp index 294f909..036c97b 100644 --- a/gdb/testsuite/gdb.base/reggroups.exp +++ b/gdb/testsuite/gdb.base/reggroups.exp @@ -43,7 +43,7 @@ proc fetch_reggroups {test} { -re "^ Group\[ \t\]+Type\[ \t\]+\r\n" { exp_continue } - -re "^ (\[0-9a-zA-Z-\]+)\[ \t\]+(user|internal)\[ \t\]+\r\n" { + -re "^ (\[_0-9a-zA-Z-\]+)\[ \t\]+(user|internal)\[ \t\]+\r\n" { lappend reggroups $expect_out(1,string) exp_continue } |