]> sourceware.org Git - systemtap.git/commit
PR3672 cont'd: Change pretty-print "depth" to mean substructures
authorJosh Stone <jistone@redhat.com>
Thu, 3 Jun 2010 00:18:33 +0000 (17:18 -0700)
committerJosh Stone <jistone@redhat.com>
Thu, 3 Jun 2010 01:43:49 +0000 (18:43 -0700)
commit7d11d8c982dc14032485285b934e25114a0892cf
tree6349f923263af6cb18aa909c9db1d7c822b3ba0c
parent0940fad9d6f648a8021aa0b8fd5bd4cde0d87653
PR3672 cont'd: Change pretty-print "depth" to mean substructures

We don't follow pointers anymore within a structure.  Now a single '$'
suffix means we print a shallow view of the structure, with {...} and
[...] in place of nested arrays/structs.  A double suffix '$$' means we
print everything contained in the struct.  Longer suffixes no longer
have meaning, and for now act the same as '$$'.

* tapsets.cxx (dwarf_pretty_print): Lose the "print_depth" field, and
  instead just check if this is a "full" print job.  Pass a bool
  indicating whether we're currently traversing the top-level, so we
  know which structs to expand.  Also wrap it all in try/catch so bad
  pointers don't kill us.
tapsets.cxx
This page took 0.026068 seconds and 5 git commands to generate.