This is the mail archive of the gcc-patches@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]

Re: [PATCH] Yet another tree dumper


Devang Patel <dpatel@apple.com> writes:

| On Oct 10, 2003, at 12:00 PM, Gabriel Dos Reis wrote:
| 
| > | > Also, have you tried the pretty-printer on the tree-ssa branch?
| > |
| > | No.  We should look at that.  (It does work on non-ssa form?  Won't
| > | help otherwise.)
| >
| > Yes, it does.
| 
| Is it a separate implementation ? Or Is it sharing code with
| debug_tree()? My understanding of pretty-printer was that it
| is used to pretty print source from TREEs in warnings and errors
| messages.

It is used in diagnostics.  But it can be used from any other place
that has connection to GCC.  For example, it is used on the tree-ssa
branch to dump trees. 

|  Can I use it from GDB to debug GCC trees? How ?

You can call any pretty printer function in the same way you can call
any function in GDB.

-- Gaby


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