public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/30720] New: [gdb/symtab, gdb-index] FAIL: gdb.python/py-symbol.exp: print (len (gdb.lookup_static_symbols ('rr')))
@ 2023-08-04 14:26 vries at gcc dot gnu.org
  2023-08-04 17:36 ` [Bug symtab/30720] " vries at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: vries at gcc dot gnu.org @ 2023-08-04 14:26 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 30720
           Summary: [gdb/symtab, gdb-index] FAIL:
                    gdb.python/py-symbol.exp: print (len
                    (gdb.lookup_static_symbols ('rr')))
           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 test-case gdb.python/py-symbol.exp and target board cc-with-gdb-index, I
run into:
...
(gdb) python print (len (gdb.lookup_static_symbols ('rr')))^M
1^M
(gdb) FAIL: gdb.python/py-symbol.exp: print (len (gdb.lookup_static_symbols
('rr')))
...

This is especially confusing when you're using the index-cache.

$ rm -Rf ~/.cache/gdb/*
$ gdb -q -batch -iex "set index-cache enabled on" py-symbol \
    -ex "python print (len (gdb.lookup_static_symbols ('rr')))"
2
$ gdb -q -batch -iex "set index-cache enabled on" py-symbol \
    -ex "python print (len (gdb.lookup_static_symbols ('rr')))"
1
...

This is a regression, this passes in gdb-12-branch.

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

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

end of thread, other threads:[~2023-08-13 12:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-04 14:26 [Bug symtab/30720] New: [gdb/symtab, gdb-index] FAIL: gdb.python/py-symbol.exp: print (len (gdb.lookup_static_symbols ('rr'))) vries at gcc dot gnu.org
2023-08-04 17:36 ` [Bug symtab/30720] " vries at gcc dot gnu.org
2023-08-13 12:08 ` cvs-commit at gcc dot gnu.org
2023-08-13 12:08 ` 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).