Initial commit
This commit is contained in:
commit
ef80f65fbf
136 changed files with 13728 additions and 0 deletions
18
autodebug.sh
Executable file
18
autodebug.sh
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
# how it works:
|
||||
# Args are fed to QEMU, then GDB and everything else does shit automagically
|
||||
# 1st arg: terminal name to spawn GDB
|
||||
# 2nd arg: place to breakpoint in
|
||||
# 3rd+ arguments all get passed to QEMU
|
||||
termname=$1
|
||||
breakpoint=$2
|
||||
shift 2
|
||||
|
||||
qemu-system-x86_64 -s -S "$@" &
|
||||
|
||||
sleep 1
|
||||
|
||||
"$termname" -e gdb -ex 'target remote localhost:1234' -ex 'break _start' build/Neobbo.elf
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue