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]

Re: -fdump-translation-unit-xml


On Mon, Sep 30, 2002 at 12:06:13PM -0700, Mike Stump wrote:
> I do as well.  I've been looking at the current format for a long 
> while, and for simple little questions, it is ok, however, for things 
> that take 2 or 3 levels, it seriously breaks down.  The output is time 
> comsuming to wade through.  

Yep, I'd like to have something more flexible to browse the tree...
Why not having a TreeBrowser on the same model as Open64 WHIRL Browser?

WB> h
The following commands are available:
  R: Go to the root of the program unit
  E: Go to the parent of the current node
  N: Go to the next node in the subtree chain
  P: Go to the previous node in the subtree chain
  =: Set the current node to the following address
  @: Set the current node to this numbered node
  >: Increase the fanciness level for printing
  <: Decrease the fanciness level for printing
  W: Print tree in whirl2[fc] format at current node
  K: Print the kids of this node
  S: Print the list of statements under this node
  T: Print the tree at the current node
  %: Print the addresses of nodes in this subtree
  U: Print the uses at the current node
  D: Print the definitions at the current node
  A: Print the access info at the current node
  G: Print the node dep graph info at current node
  g: Print the stmt dep graph info at current node
  V: Print the vertices of the dep graph
  r: Print the reduction manager
  a: Print the alias info for this node
  e: Print the ancestors of this node
  s: Print the symbol table entry for this node
  t: Print the type table entry for this node
  #: Print node of this type at this address
  L: Sketch the loop nests in the program unit
  l: Sketch the loop nests in Suresh Tool format
  y: Perform a transformation
  C: Check the program unit for consistency
  F: Find nodes with this symbol in the subtree
  $: Find symbols with this name
  o: Find nodes with this operator type
  f: Change WHIRL-TO-SOURCE language to FORTRAN
  c: Change WHIRL-TO-SOURCE language to C
  B: Print the scratch register with this number
  .: Execute the previous command
  Y: Print the reshaped-ref map for array nodes
  i: Print the PROMPF ids for tree at this node
  I: Print the PROMPF_INFO
  M: Set the current node to node with this map id
  m: Print the map-id at this node
  p: Print the privatization info at this node
  v: Go to the node with this vertex number
  d: Toggle Da Vinci mode
  H: Print this information
  h: Print this information
  Q: Exit the debugger
  q: Exit the debugger
WB> 


I think this would be of a great help for debugging as well as for
developing tree optimizations.

Sebastian


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