This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Can you display readable RTX from within gdb?
- From: "Tom Womack" <tom at womack dot net>
- To: <gcc at gcc dot gnu dot org>
- Date: Sun, 17 Mar 2002 15:10:06 -0000
- Subject: 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