gdbgui/examples
2017-07-22 16:57:50 -07:00
..
.gitignore improve examples; add go/rust examples 2017-02-28 17:24:47 -08:00
debug_segfault.c add tree data explorer; update examples and readme (#91) 2017-07-22 16:57:50 -07:00
hello.c add alias -n argument for no browser; update screenshot; update readme 2017-03-01 10:21:49 -08:00
hello.cpp jump to line of source code more reliably 2017-06-27 21:39:38 -07:00
hello.go improve examples; add go/rust examples 2017-02-28 17:24:47 -08:00
hello.rs improve examples; add go/rust examples 2017-02-28 17:24:47 -08:00
linked_list.cpp add tree data explorer; update examples and readme (#91) 2017-07-22 16:57:50 -07:00
makefile add tree data explorer; update examples and readme (#91) 2017-07-22 16:57:50 -07:00
README.md update version 2017-06-27 22:26:50 -07:00
tree.c add tree data explorer; update examples and readme (#91) 2017-07-22 16:57:50 -07:00

Examples

git clone https://github.com/cs01/gdbgui.git
cd gdbgui/examples
make [ c | cpp | go | rust ]

Running make in the above commands will

  • build the binary (assuming you have the right compilers and libraries installed)
  • open a new tab in your browser
  • load the inferior binary
  • insert a breakpoint at main (Rust and Go users, see note)

Note: go and rust programs will show an error trying to load file "main" because gdb does not know how to determine source files from function names for go/rust. Choose a file from the dropdown, then add a breakpoint and hit run. It will then hit the "main" breakpoint, so you must press the continue button to hit your breakpoint. To avoid this, turn off the Auto add breakpoint to main option in Settings.

Note: Although the program has loaded, you still must click the run icon to actually begin running the program.