Re: printing "tree" type data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ranjith kumar <ranjit_kumar_b4u@xxxxxxxxxxx> writes:

>     I want to print the last statement(which is of
> "tree" type) in a given basic block. 
> 
> The last statement of a basic-block pointed by bb can
> be get by last_stmt(bb);
> I want to see that instruction.
> 
> I want to print that statement to a dump file or
> standard output. Ordinary data types can be printed by
> fprintf in source code. But how to print "tree" data
> type?

Look at the debug_tree and debug_generic_stmt functions.

Look at gcc/gdbinit.in for some useful gdb macros.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux