Ming-Hung Tsai
a81cef4467
[dbg] Pull out common code into dbg-lib
...
- Modularize common routines
- Extract the block_dumper interface for displaying blocks
- Remove inheritance from show_traits
2021-02-21 01:04:35 +08:00
Ming-Hung Tsai
e3a646e4d2
[dbg] Improve error resilience of debugging tools
...
Do not open the metadata. The tool interprets user specified blocks one-by-one.
Thus, there's no need to preload the metadata structures.
Also remove the unused --ignore-metadata-space-map option. It was designed
to control the loading of space maps with the old metadata constructors.
2021-02-18 00:00:55 +08:00
Ming-Hung Tsai
a05ac553b6
[dbg] Hide implementations of shared components
2021-02-04 14:28:17 +08:00
Ming-Hung Tsai
b9b04dc872
[thin_debug] Factor out reusable componments
2021-02-04 14:19:28 +08:00
Ming-Hung Tsai
e046bbf5c4
[thin_debug] Simplify the output format
...
Turn nested fields into attributes. Also replace spaces in field names
by underscores.
2021-02-03 15:51:52 +08:00
Ming-Hung Tsai
0816430ba0
[thin_debug] Remove the using boost directive to avoid namespace pollution
...
boost::uint32_t might conflict with the toolchain defined uint32_t.
which causes template argument deduction failed.
2021-02-03 15:51:52 +08:00
Ming-Hung Tsai
ab3b2cbda2
[thin_debug] Refine the outputs
...
- Show the blocknr from node header
- Display the index of node entries
2021-02-03 15:51:52 +08:00
Ming-Hung Tsai
6dc5086643
[thin_debug] Add commands to show space maps
2021-02-03 15:51:52 +08:00
Ming-Hung Tsai
3bfa775887
[thin_debug] Show space map roots in superblock
2021-02-03 15:51:52 +08:00
Ming-Hung Tsai
127f44c66b
[thin_debug] Enhance error handling
...
- Handle exception thrown by commands
- Add help and exit commands
2021-02-03 15:51:52 +08:00
Ming-Hung Tsai
62d09c6752
[thin_debug] Reduce code size by eliminating duplicated types
...
This patch doesn't have a significant effect - only a few KBs of code
is reduced. However, it's still a nice have.
2021-02-03 15:51:52 +08:00
Ming-Hung Tsai
0ce026caf5
[thin_debug] Integrate thin_debug into the main program
2021-02-03 15:51:52 +08:00
Joe Thornber
4313469475
[all] Switch from boost::shared_ptr -> std::shared_ptr.
...
Shared_ptr has moved into the standard library since these tools were
first written.
2020-04-30 15:02:43 +01:00
Joe Thornber
aacca8d963
Introduce persistent-data/data-structures/
2013-01-11 19:26:51 +00:00
Joe Thornber
282e98a6b1
Move source into separate sub directories.
2013-01-02 12:55:41 +00:00