public inbox for
help / color / mirror / Atom feed
* [binutils-gdb] [gdb/testsuite] Fix gdb.mi/mi-sym-info.exp on openSUSE Tumbleweed
@ 2022-09-30  4:04 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2022-09-30  4:04 UTC (permalink / raw)
  To: gdb-cvs;h=1d4c108cec2b50bde92d269c34b79d0d19949630

commit 1d4c108cec2b50bde92d269c34b79d0d19949630
Author: Tom de Vries <>
Date:   Fri Sep 30 06:04:56 2022 +0200

    [gdb/testsuite] Fix gdb.mi/mi-sym-info.exp on openSUSE Tumbleweed
    On openSUSE Tumbleweed, I run into:
    FAIL: gdb.mi/mi-sym-info.exp: List all functions from debug information only
    The problem is in matching this string:
    {name="_start",type="void (void)",description="void _start(void);"}
    using regexp fun_re, which requires a line field:
    set fun_re \
    Fix this by making the line field optional in fun_re.
    Tested on x86_64-linux.

 gdb/testsuite/gdb.mi/mi-sym-info.exp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gdb/testsuite/gdb.mi/mi-sym-info.exp b/gdb/testsuite/gdb.mi/mi-sym-info.exp
index 7b936061759..2f723ece882 100644
--- a/gdb/testsuite/gdb.mi/mi-sym-info.exp
+++ b/gdb/testsuite/gdb.mi/mi-sym-info.exp
@@ -38,7 +38,8 @@ mi_clean_restart $binfile
 set qstr "\"\[^\"\]+\""
-set fun_re "\{line=\"$decimal\",name=${qstr},type=${qstr},description=${qstr}\}"
+set fun_re \
+    "\{(?:line=\"$decimal\",)?name=${qstr},type=${qstr},description=${qstr}\}"
 set type_re "\{(?:line=\"$decimal\",)*name=${qstr}\}"
 set sym_list "\\\[${fun_re}(?:,$fun_re)*\\\]"
 set type_sym_list "\\\[${type_re}(?:,$type_re)*\\\]"

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-30  4:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-30  4:04 [binutils-gdb] [gdb/testsuite] Fix gdb.mi/mi-sym-info.exp on openSUSE Tumbleweed Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).