public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/31573] New: [gdb/testsuite] FAIL: gdb.base/ctf-ptype.exp: ptype linked list structure
@ 2024-03-29  7:00 vries at gcc dot gnu.org
  2024-03-29  7:24 ` [Bug testsuite/31573] " vries at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: vries at gcc dot gnu.org @ 2024-03-29  7:00 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=31573

            Bug ID: 31573
           Summary: [gdb/testsuite] FAIL: gdb.base/ctf-ptype.exp: ptype
                    linked list structure
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: testsuite
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

On opensuse leap 15.4, when using gcc 12 or 13 rather than the system gcc
7.5.0, the ctf test-cases are no longer unsupported, and I run into:
...
(gdb) PASS: gdb.base/ctf-ptype.exp: ptype v_t_struct_p->v_float_member
ptype struct link^M
type = struct link {^M
    link *next;^M
    link *(*linkfunc)(link *, int);^M
    t_struct stuff[3];^M
}^M
(gdb) FAIL: gdb.base/ctf-ptype.exp: ptype linked list structure
...

The failing test is:
...
gdb_test "ptype struct link" "type = struct link \{\[\r\n\]+\[ \t\]+struct link
\\*next;\[\r\n\]+\[ \t\]+struct link \
\\*\\(\\*linkfunc\\)\\((struct link \\*, int|void|)\\);\[\r\n\]+\[ \t\]+struct
t_struct stuff.3.;\[\r\n\]+\}.*" "ptyp\
e linked list structure"
...

So it looks like gdb is printing for instance "link * next;", while "struct
link* next" is expected.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-03-30 12:16 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-29  7:00 [Bug testsuite/31573] New: [gdb/testsuite] FAIL: gdb.base/ctf-ptype.exp: ptype linked list structure vries at gcc dot gnu.org
2024-03-29  7:24 ` [Bug testsuite/31573] " vries at gcc dot gnu.org
2024-03-29  8:21 ` vries at gcc dot gnu.org
2024-03-29  8:31 ` vries at gcc dot gnu.org
2024-03-29  9:00 ` vries at gcc dot gnu.org
2024-03-29 11:52 ` vries at gcc dot gnu.org
2024-03-29 15:34 ` vries at gcc dot gnu.org
2024-03-30  8:41 ` vries at gcc dot gnu.org
2024-03-30 12:16 ` vries at gcc dot gnu.org

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).