diff --git a/.gitignore b/.gitignore index 1e1ae3e..df91ee2 100755 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ -out/* -build/* +build/output/* +build/*.bin +build/*.img *.img *.img.gz *.img.gz diff --git a/build/.keep_dir b/build/.keep_dir new file mode 100644 index 0000000..e69de29 diff --git a/build/output/.keep_dir b/build/output/.keep_dir new file mode 100644 index 0000000..e69de29 diff --git a/docs/debug/8086_gdb/.gdbinit b/docs/debug/8086_gdb/.gdbinit new file mode 100755 index 0000000..199648e --- /dev/null +++ b/docs/debug/8086_gdb/.gdbinit @@ -0,0 +1,10 @@ +set tdesc filename target.xml +set arch i8086 +set disassembly-flavor intel +target remote localhost:1234 + +display/i $cs*16+$pc +b *0x7c00 +set $cs = 0xf000 +set $pc = 0xfff0 +c diff --git a/docs/debug/8086_gdb/target.xml b/docs/debug/8086_gdb/target.xml new file mode 100755 index 0000000..1ef0b40 --- /dev/null +++ b/docs/debug/8086_gdb/target.xml @@ -0,0 +1,112 @@ + + + + + i8086 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/debug/x86_ddd/.gdbinit b/docs/debug/x86_ddd/.gdbinit new file mode 100755 index 0000000..9622bd7 --- /dev/null +++ b/docs/debug/x86_ddd/.gdbinit @@ -0,0 +1,9 @@ +target remote localhost:1234 +set architecture i386 +set disassembly-flavor intel + +display/x $eip +display/x $esp +display/x $ebp + +graph display `x /16xw ($ebp - (16*4))` diff --git a/docs/debug/x86_gdb/.gdbinit b/docs/debug/x86_gdb/.gdbinit new file mode 100755 index 0000000..6907826 --- /dev/null +++ b/docs/debug/x86_gdb/.gdbinit @@ -0,0 +1,8 @@ +target remote localhost:1234 +set architecture i386 +set disassembly-flavor intel +layout asm + +display/x $eip +display/x $esp +display/x $ebp