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

Reply via email to