On 11/06/13 11:04, Tom Tromey wrote:
"Jakub" == Jakub Jelinek <ja...@redhat.com> writes:
Jakub> 1) p debug_tree (0x7ffff18b3690)
Jakub> not working anymore, typically one would use this when just
Jakub> cut'n'pasting addresses seen in backtrace, other debug_tree
Jakub> etc., one now has to add explicitly a cast p debug_tree
Jakub> ((tree)0x7ffff18b3690). Perhaps this can be cured just by
Jakub> adding extra overloads for a few most popular debug_* routines
Jakub> that weren't initially overloaded, add them an overload with
Jakub> uintptr_t type or similar that will just cast it to the right
Jakub> type and call the original routine
Last time this came up, we added the feature to gdb. You have to enable
it, though. Use "set check type off".
I'd been mildly annoyed by this behaviour, but not so much as to look
for a solution and I can certainly see why gdb is doing what it's doing.
I certainly don't consider this something that should stand in the way
of moving forward.
ISTM that one liner belongs in GCC's .gdbinit. Until then, I'm adding
it to my own :-)
jeff