Skip to content

Instantly share code, notes, and snippets.

@ricarkol
Created June 5, 2017 20:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ricarkol/3e9768639c1e52b86c195d579d818279 to your computer and use it in GitHub Desktop.
Save ricarkol/3e9768639c1e52b86c195d579d818279 to your computer and use it in GitHub Desktop.
Test for GDB server in ukvm
./tests/test_hello/ukvm-bin --gdb ./tests/test_hello/test_hello.ukvm &
gdb \
--eval-command="set confirm off" \
--eval-command="shell sleep 1" \
--eval-command="target remote localhost:1234" \
--eval-command="set {int} 0x00040000 = 12345" \
--eval-command="p {int} 0x00040000" \
--eval-command="b solo5_console_write" \
--eval-command="c" \
--eval-command="c" \
--eval-command="d 1" \
--eval-command="hb solo5_console_write" \
--eval-command="c" \
--eval-command="c" \
--eval-command="bt" \
--eval-command="l" \
--eval-command="d 2" \
--eval-command="set \$gs=0x1234" \
--eval-command="info registers" \
--eval-command="c" \
--eval-command="quit" \
tests/test_hello/test_hello.ukvm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment