summaryrefslogtreecommitdiff
path: root/.gdbinit.tmpl-x64
diff options
context:
space:
mode:
Diffstat (limited to '.gdbinit.tmpl-x64')
-rw-r--r--.gdbinit.tmpl-x6418
1 files changed, 18 insertions, 0 deletions
diff --git a/.gdbinit.tmpl-x64 b/.gdbinit.tmpl-x64
new file mode 100644
index 0000000..9c120ff
--- /dev/null
+++ b/.gdbinit.tmpl-x64
@@ -0,0 +1,18 @@
+#if you would like to use gdb in 32bit mode, comment out lines 8 and 15, then uncomment
+#the lines after. Note this will only work properly until 64bit mode is enabled in entry.S
+
+python
+gdb.execute("set architecture i386:x86-64:intel")
+gdb.execute("target remote localhost:26000")
+gdb.execute("symbol-file kernel")
+gdb.execute("break start64")
+#gdb.execute("break *0x7c00")
+try:
+ gdb.execute("continue")
+except:
+ pass
+gdb.execute("disconnect")
+gdb.execute("set architecture i386:x86-64")
+#gdb.execute("set architecture i386")
+gdb.execute("target remote localhost:26000")
+gdb.execute("delete break 1")