gdbgui/examples
2017-03-18 21:54:14 -07:00
..
.gitignore improve examples; add go/rust examples 2017-02-28 17:24:47 -08:00
hello.c add alias -n argument for no browser; update screenshot; update readme 2017-03-01 10:21:49 -08:00
hello.cpp add syntax highlighting; update license; use splitjs instead of w2ui 2017-03-18 21:54:14 -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
makefile update documentation; increment version; update placeholder text #39 2017-03-07 13:20:54 -08:00
README.md update documentation; increment version; update placeholder text #39 2017-03-07 13:20:54 -08:00

Examples

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

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.