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