On Fri, Mar 03, 2023 at 04:44:39PM +0000, Jonathan Wakely via Gcc-patches wrote: > OK for trunk? > > gcc/ChangeLog: >
Please add PR middle-end/109006 here > * gdbhooks.py (VecPrinter): Adjust for new vec layout. Ok with that, thanks. > gcc/gdbhooks.py | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/gcc/gdbhooks.py b/gcc/gdbhooks.py > index c9dea9bf828..78e6c97c30d 100644 > --- a/gcc/gdbhooks.py > +++ b/gcc/gdbhooks.py > @@ -461,7 +461,11 @@ class VecPrinter: > return > m_vecpfx = self.gdbval['m_vecpfx'] > m_num = m_vecpfx['m_num'] > - m_vecdata = self.gdbval['m_vecdata'] > + typ = self.gdbval.type > + if typ.code == gdb.TYPE_CODE_PTR: > + typ = typ.target() > + typ = typ.template_argument(0) # the type T > + m_vecdata = (self.gdbval.address + 1).cast(typ.pointer()) > for i in range(m_num): > yield ('[%d]' % i, m_vecdata[i]) > > -- > 2.39.2 Jakub