diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-03-03 16:41:29 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-03-03 16:53:32 +0000 |
commit | ce1c99f1ccd7b1229a4f8531d6b6de6cf571a9ef (patch) | |
tree | 1e1209b99bb6cbda444f9fb7e53bf6c5f1574229 | |
parent | 341e6cd8d603a334fd34657a6b454176be1c6437 (diff) | |
download | gcc-ce1c99f1ccd7b1229a4f8531d6b6de6cf571a9ef.zip gcc-ce1c99f1ccd7b1229a4f8531d6b6de6cf571a9ef.tar.gz gcc-ce1c99f1ccd7b1229a4f8531d6b6de6cf571a9ef.tar.bz2 |
gcc: Adjust gdbhooks.py VecPrinter for vec layout changes [PR109006]
gcc/ChangeLog:
PR middle-end/109006
* gdbhooks.py (VecPrinter): Adjust for new vec layout.
-rw-r--r-- | gcc/gdbhooks.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/gdbhooks.py b/gcc/gdbhooks.py index c9dea9b..78e6c97 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]) |