@@ -24,7 +24,7 @@ See [GDB manual](https://www.sourceware.org/gdb/current/onlinedocs/gdb.html/Auto
2424
2525### Custom pretty-printers
2626
27- The simplest extentions for GDB, that userver provides, are pretty-printers for certain data stuctures . Below is an
27+ The simplest extensions for GDB, that userver provides, are pretty-printers for certain data structures . Below is an
2828example comparing the output for a ` formats::json::Value ` with and without pretty-printers:
2929
3030```
@@ -34,11 +34,11 @@ $1 = {["a"] = {1, 2, 3, 4}, ["c"] = 123, ["d"] = false, ["e"] = "", ["f"] = {["k
3434181 printers disabled
35350 of 181 printers enabled
3636(gdb) print value
37- $2 = {holder_ = {static kInvalidVersion = 18446744073709551615, data_ = {__ptr_ = 0x10f27fe04118, __cntrl_ = 0x10f27fe04100}},
38- root_ptr_for_path_ = 0x10f27fe04118, value_ptr_ = 0x10f27fe04118, depth_ = 0, lazy_detached_path_ = {parent_value_ptr_ = 0x0,
39- parent_depth_ = 0, virtual_path_ = {static __endian_factor = 2, __rep_ = {__s = {{__is_long_ = 0 '\000', __size_ = 0 '\000'},
40- __padding_ = {<No data fields>}, __data_ = '\000' <repeats 22 times>}, __l = {{__is_long_ = 0, __cap_ = 0}, __size_ = 0,
41- __data_ = 0x0}}, __padding1_933_ = {__padding_ = 0x7fffffffd7c0 ""},
37+ $2 = {holder_ = {static kInvalidVersion = 18446744073709551615, data_ = {__ptr_ = 0x10f27fe04118, __cntrl_ = 0x10f27fe04100}},
38+ root_ptr_for_path_ = 0x10f27fe04118, value_ptr_ = 0x10f27fe04118, depth_ = 0, lazy_detached_path_ = {parent_value_ptr_ = 0x0,
39+ parent_depth_ = 0, virtual_path_ = {static __endian_factor = 2, __rep_ = {__s = {{__is_long_ = 0 '\000', __size_ = 0 '\000'},
40+ __padding_ = {<No data fields>}, __data_ = '\000' <repeats 22 times>}, __l = {{__is_long_ = 0, __cap_ = 0}, __size_ = 0,
41+ __data_ = 0x0}}, __padding1_933_ = {__padding_ = 0x7fffffffd7c0 ""},
4242 __alloc_ = {<std::__y1::__non_trivial_if<true, std::__y1::allocator<char> >> = {<No data fields>}, <No data fields>}, __padding2_933_ = {
4343 __padding_ = 0x7fffffffd7c0 ""}, static npos = 18446744073709551615}}}
4444```
@@ -56,7 +56,7 @@ In addition, the output has a hierarchical structure that is displayed correctly
5656
5757* ` utask list ` : Lists all tasks with their names (corresponding span names) and statuses. Example:
5858```
59- (gdb) utask list
59+ (gdb) utask list
6060Task State Span
61610x10f27fc40800 Suspended task_3
62620x10f27fc3f000 Suspended task_2
@@ -66,13 +66,13 @@ Task State Span
66660x10f27fc42000 Running task_4
6767```
6868
69- * ` utask apply <task> <cmd...> ` : Executes ` <cmd...> ` in the context of selected ` <task> ` . The ` <task> ` may be
69+ * ` utask apply <task> <cmd...> ` : Executes ` <cmd...> ` in the context of selected ` <task> ` . The ` <task> ` may be
7070specified by its ID ("Task") or name ("Span") (as shown in ` utask list ` ), or set to "all" to apply the command to all
7171 tasks. ` <cmd...> ` can be any GDB command, including Python scripts.
7272
7373
7474#### Examples:
75-
75+
76761 . Print "Hello world!" for all tasks
7777```
7878(gdb) utask apply all print "Hello world!"
@@ -121,9 +121,9 @@ For now `utask` commands are implemented for only linux x86 platforms, but can b
121121In addition, all of the above functionality works for debugging both a live process and coredumps.
122122
123123
124- ## GDB complains: received signal ?, Unknown signal
124+ ## GDB complains: received signal ?, Unknown signal
125125
126- This is a side effect of stack usage monitor interferring with GDB. In unit tests you can set the environment variable
126+ This is a side effect of stack usage monitor interfering with GDB. In unit tests you can set the environment variable
127127` USERVER_GTEST_ENABLE_STACK_USAGE_MONITOR=0 ` to disable the monitor, in other binaries you can either disable it
128128via static config option ` coro_pool.stack_usage_monitor_enabled ` in components::ManagerControllerComponent or by
129129disabling it at all at build time of the framework via ` USERVER_FEATURE_STACK_USAGE_MONITOR `
0 commit comments