This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Can you display readable RTX from within gdb?


I'm sure I've seen some instructions about getting more context for ICEs by
using gdb on the c++ executables, but they don't appear to be in
info:/gccint.

Chasing down my just-reported bug, I find

stack_def* regstack;
rtx_def** src;
rtx_def* pat;

What commands do I have to use in gdb (presumably calling functions in
cc1plus) to display the RTL in a human-readable format?

print GET_CODE(pat)

fails because GET_CODE is a macro and not available at this level of
abstraction; similarly XEXP and other macros seen in the source of
reg-stack.c.

print pat[0]

gives reasonable pleasant output, with enums displayed by name rather than
by number, but I still can't follow in the slightest what's going on. Have
you any advice?

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]