public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/30797] New: [gdb/symtab, cc-with-dwz] FAIL: gdb.base/setshow.exp: test_setshow_annotate: annotation_level 1
@ 2023-08-25 13:46 vries at gcc dot gnu.org
  2023-08-29  9:27 ` [Bug symtab/30797] " vries at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: vries at gcc dot gnu.org @ 2023-08-25 13:46 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 30797
           Summary: [gdb/symtab, cc-with-dwz] FAIL: gdb.base/setshow.exp:
                    test_setshow_annotate: annotation_level 1
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: symtab
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

With target board cc-with-dwz I run into:
...
FAIL: gdb.base/setshow.exp: test_setshow_annotate: annotation_level 2 (timeout)
FAIL: gdb.base/setshow.exp: test_setshow_annotate: annotation_level 1
...

The second one in more detail:
...
(gdb) PASS: gdb.base/setshow.exp: test_setshow_annotate: show annotate (1)
info line 1^M
Line 1 of "/data/vries/gdb/src/gdb/testsuite/gdb.base/setshow.c" is at address
0x400527 <main> but contains no code.^M
Line 1 of "/data/vries/gdb/src/gdb/testsuite/gdb.base/setshow.c" is at address
0x400527 <main> but contains no code.^M
(gdb) FAIL: gdb.base/setshow.exp: test_setshow_annotate: annotation_level 1
...

Let's try this with system gdb, based on 12.1:
...
$ gcc ./src/gdb/testsuite/gdb.base/setshow.c -g
$ gdb -q -batch a.out -ex "set annotate 1" -ex "info line 1"
Line 1 of "./src/gdb/testsuite/gdb.base/setshow.c" is at address 0x400517
<main> but contains no code.
��/data/vries/gdb/binutils-gdb.git/gdb/testsuite/gdb.base/setshow.c:1:0:beg:0x400517
$ dwz a.out
$ gdb -q -batch a.out -ex "set annotate 1" -ex "info line 1"
Line 1 of "./src/gdb/testsuite/gdb.base/setshow.c" is at address 0x400517
<main> but contains no code.
��/data/vries/gdb/binutils-gdb.git/gdb/testsuite/gdb.base/setshow.c:1:0:beg:0x400517
$
...

OK, so far so good, now with master:
...
$ gcc ./src/gdb/testsuite/gdb.base/setshow.c -g
$ gdb -q -batch a.out -ex "set annotate 1" -ex "info line 1"
Line 1 of "./src/gdb/testsuite/gdb.base/setshow.c" is at address 0x400517
<main> but contains no code.
��/data/vries/gdb/binutils-gdb.git/gdb/testsuite/gdb.base/setshow.c:1:0:beg:0x400517
$ dwz a.out
$ gdb -q -batch a.out -ex "set annotate 1" -ex "info line 1"
Line 1 of "./src/gdb/testsuite/gdb.base/setshow.c" is at address 0x400517
<main> but contains no code.
Line 1 of "./src/gdb/testsuite/gdb.base/setshow.c" is at address 0x400517
<main> but contains no code.
...

So this is a gdb 12 -> gdb 13 regression.

-- 
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:[~2023-09-07 21:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-25 13:46 [Bug symtab/30797] New: [gdb/symtab, cc-with-dwz] FAIL: gdb.base/setshow.exp: test_setshow_annotate: annotation_level 1 vries at gcc dot gnu.org
2023-08-29  9:27 ` [Bug symtab/30797] " vries at gcc dot gnu.org
2023-08-29  9:30 ` vries at gcc dot gnu.org
2023-08-29 10:10 ` vries at gcc dot gnu.org
2023-08-29 11:02 ` vries at gcc dot gnu.org
2023-08-29 11:50 ` vries at gcc dot gnu.org
2023-08-31 10:38 ` vries at gcc dot gnu.org
2023-09-06  8:15 ` cvs-commit at gcc dot gnu.org
2023-09-07 21:27 ` 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).