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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The GDB printers just give you a string representation of the object's value, I
don't think that's what you want here.

Maybe don't descend into any member functions of types in namespace std if
those member functions are named _M_xxx or _S_xxx, since those are non-public
internals.

Aside: I don't like the use of "NULL" in those diagnostics. That is a macro
with the value 0 (or maybe 0L or 0LL or similar), not a pointer. You can't
dereference NULL because it's not a pointer. It's just a macro that expands to
a constant which *can be used to initialize a pointer_, but it's not a pointer
itself. The bug here is a dereference of "a null pointer", not of the macro
NULL. Or alternatively "null dereference", which is shorter and probably just
as clear. But "dereference of NULL" is a category error.

Reply via email to