Created
June 5, 2017 20:04
-
-
Save ricarkol/3e9768639c1e52b86c195d579d818279 to your computer and use it in GitHub Desktop.
Test for GDB server in ukvm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./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