aboutsummaryrefslogtreecommitdiff
path: root/development/gdb-dashboard/README
blob: 702c676e3f2fde8d6f73fcb9aa86021c3e1712a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
GDB dashboard is a standalone .gdbinit file written using the Python API
that enables a modular interface showing relevant information about the
program being debugged. Its main goal is to reduce the number of GDB
commands needed to inspect the status of current program thus allowing
the developer to primarily focus on the control flow.

There are a few ways to enable the dashboard:

* Add the following line to the end of ~/.gdbinit:

  source /etc/gdbinit.d/dashboard

* Enable in the GDB command using the -x flag:

  gdb -q -x /etc/gdbinit.d/dashboard ...

or if using cgdb too:

  cgdb -- -q -x /etc/gdbinit.d/dashboard ...

You may find that using cgdb and dashboard together works best with a
vertical split.

  Press:

  <Esc>     to enter cgdb CLI.
  <Ctrl-W>  to toggle split orientation.
  i         to return to GDB insert mode.

Or add to ~/.cgdb/cdgbrc:

  set wso=vertical