blob: 707cf1da300b40405bb1d1fc5d8ee40a2f1e83e0 [file] [log] [blame] [view]
Tom Andersonf06ac382019-04-10 03:49:381# Usage of tools/gdb/gdbinit
2
3Usage of Chromium's [gdbinit](../tools/gdb/gdbinit) is recommended when
4debugging with gdb on any platform. This is necessary for source-level debugging
5when `strip_absolute_paths_from_debug_symbols` or `use_custom_libcxx` are
6enabled (they're enabled by default), and also adds extra features like
7pretty-printing of custom Chromium types.
8
9To use, add the following to your `~/.gdbinit`
10
11```
12source /path/to/chromium/src/tools/gdb/gdbinit
13```
Henrique Ferreiro3c3fa8a82020-01-23 13:44:4314
15*** promo
16Notice that in components builds, the debug files will be loaded lazily. Because of this, the program needs to run at least once before breakpoints can be set. Alternatively, gdb will ask for confirmation as follows:
17> Make breakpoint pending on future shared library load? (y or [n])
18***