public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/109006] New: [13 Regression] Python Exception <class 'gdb.error'>: There is no member or method named m_vecdata. since r13-6332
@ 2023-03-03 11:52 jakub at gcc dot gnu.org
  2023-03-03 11:52 ` [Bug middle-end/109006] " jakub at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-03-03 11:52 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109006

            Bug ID: 109006
           Summary: [13 Regression] Python Exception <class 'gdb.error'>:
                    There is no member or method named m_vecdata. since
                    r13-6332
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

r13-6332-g2dd68cddbc745d removed m_vecdata array from vec.h, but gdbhooks.py
still relies on it:
gdbhooks.py:Instead (for now) you must access m_vecdata:
gdbhooks.py:  (gdb) p bb->preds->m_vecdata[0]
gdbhooks.py:  (gdb) p bb->preds->m_vecdata[1]
gdbhooks.py:        m_vecdata = self.gdbval['m_vecdata']
gdbhooks.py:            yield ('[%d]' % i, m_vecdata[i])
read-rtl-function.cc:     We reconstruct
cfun->cfg->x_basic_block_info->m_vecdata with NULL
vec.cc:/* Verify accesses to m_vecdata are done indirectly.  */
vec.h:# pragma GCC poison m_vec m_vecpfx m_vecdata

(the last one can stay although not needed).

So, when trying to print some vector, one can get error like
(gdb) p cfun->local_decls
Python Exception <class 'gdb.error'>: There is no member or method named
m_vecdata.
$2 = 0x7fffea2eb1b8

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

end of thread, other threads:[~2023-03-04 10:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-03 11:52 [Bug middle-end/109006] New: [13 Regression] Python Exception <class 'gdb.error'>: There is no member or method named m_vecdata. since r13-6332 jakub at gcc dot gnu.org
2023-03-03 11:52 ` [Bug middle-end/109006] " jakub at gcc dot gnu.org
2023-03-03 12:01 ` jakub at gcc dot gnu.org
2023-03-03 16:53 ` cvs-commit at gcc dot gnu.org
2023-03-03 18:15 ` cvs-commit at gcc dot gnu.org
2023-03-04 10:24 ` cvs-commit at gcc dot gnu.org
2023-03-04 10:27 ` jakub 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).