diff options
| author | Roland McGrath <[email protected]> | 2009-03-29 17:36:22 -0700 |
|---|---|---|
| committer | Roland McGrath <[email protected]> | 2009-03-29 17:36:22 -0700 |
| commit | e6f99be332efe39d5a6a17a0118786d85b4d7217 (patch) | |
| tree | d7044a95a30f3fab5fbeea17330037037da5a084 /tests/dwarf-print.cc | |
| parent | da94ff4bb672e06e5ed1761f3ab5235dd8a5835e (diff) | |
Fix attrs that can be an expression block or a constant.
Diffstat (limited to 'tests/dwarf-print.cc')
| -rw-r--r-- | tests/dwarf-print.cc | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/tests/dwarf-print.cc b/tests/dwarf-print.cc index ece96757..8aa12ca9 100644 --- a/tests/dwarf-print.cc +++ b/tests/dwarf-print.cc @@ -71,7 +71,7 @@ print_die (const dwarf::debug_info_entry &die, if (die.has_children ()) { - if (indent >= limit) + if (limit != 0 && indent >= limit) { cout << ">...\n"; return; @@ -96,11 +96,10 @@ process_file (const char *file, unsigned int limit) cout << file << ":\n"; - if (limit > 0) - for (dwarf::compile_units::const_iterator i = dw.compile_units ().begin (); - i != dw.compile_units ().end (); - ++i) - print_die (*i, 1, limit); + for (dwarf::compile_units::const_iterator i = dw.compile_units ().begin (); + i != dw.compile_units ().end (); + ++i) + print_die (*i, 1, limit); } int @@ -117,7 +116,7 @@ main (int argc, char *argv[]) cout << hex << setiosflags (ios::showbase); - unsigned int depth = 1; + unsigned int depth = 0; if (argc > 1 && sscanf (argv[1], "--depth=%u", &depth) == 1) { --argc; |
