Re: Automatic cast off "union tree" in gdb

2007-09-30 Thread Tom Tromey
> "Konrad" == k e <[EMAIL PROTECTED]> writes: Konrad> Hi, When stepping through gcc with gdb: is there a way Konrad> to be able to make gdb automatically cast a "union tree" to the Konrad> correct struct depending on the union tree's type? Not that I know of. Konrad> A "p " Konrad> will

Automatic cast off "union tree" in gdb

2007-09-30 Thread k e
Hi, When stepping through gcc with gdb: is there a way to be able to make gdb automatically cast a "union tree" to the correct struct depending on the union tree's type? A "p " will print out all unions. I'd not want to do a cast all the time. -- Konrad