Re: [PATCH] gdbhooks: Handle references to vec* in VecPrinter

2024-11-26 Thread Alex Coplan
On 29/09/2024 09:35, Jeff Law wrote: > > > On 9/23/24 4:33 AM, Alex Coplan wrote: > > On 30/08/2024 18:11, Alex Coplan wrote: > > > Hi, > > > > > > vec.h has this method: > > > > > >template > > >inline T * > > >vec_safe_push (vec *&v, const T &obj CXX_MEM_STAT_INFO) > > > > > > wh

Re: [PATCH] gdbhooks: Handle references to vec* in VecPrinter

2024-09-29 Thread Jeff Law
On 9/23/24 4:33 AM, Alex Coplan wrote: On 30/08/2024 18:11, Alex Coplan wrote: Hi, vec.h has this method: template inline T * vec_safe_push (vec *&v, const T &obj CXX_MEM_STAT_INFO) where v is a reference to a pointer to vec. This matches the regex for VecPrinter, so gdbhooks.py

Re: [PATCH] gdbhooks: Handle references to vec* in VecPrinter

2024-09-23 Thread Alex Coplan
On 30/08/2024 18:11, Alex Coplan wrote: > Hi, > > vec.h has this method: > > template > inline T * > vec_safe_push (vec *&v, const T &obj CXX_MEM_STAT_INFO) > > where v is a reference to a pointer to vec. This matches the regex for > VecPrinter, so gdbhooks.py attempts to print it but cho

[PATCH] gdbhooks: Handle references to vec* in VecPrinter

2024-08-30 Thread Alex Coplan
Hi, vec.h has this method: template inline T * vec_safe_push (vec *&v, const T &obj CXX_MEM_STAT_INFO) where v is a reference to a pointer to vec. This matches the regex for VecPrinter, so gdbhooks.py attempts to print it but chokes on the reference. I see the following: #1 0x