summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/mcf5235/gdb-init
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2007-12-03 02:16:25 +0000
committerChris Johns <chrisj@rtems.org>2007-12-03 02:16:25 +0000
commit7ace3828e58768a131ee494f80dc5b9465a62248 (patch)
treec0e3e44e6ac6277b9c8eb4cdfb14811ff71426b9 /c/src/lib/libbsp/m68k/mcf5235/gdb-init
parent2007-11-29 Chris Johns <chrisj@rtems.org> (diff)
downloadrtems-7ace3828e58768a131ee494f80dc5b9465a62248.tar.bz2
2007-12-03 Chris Johns <chrisj@rtems.org>
* console/console.c: Set the baud rate for stdin to 19200 when opening the console. This is the default rate for the dbug monitor. * gdb-init: New.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/m68k/mcf5235/gdb-init29
1 files changed, 29 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/m68k/mcf5235/gdb-init b/c/src/lib/libbsp/m68k/mcf5235/gdb-init
new file mode 100644
index 0000000000..bda3cccaaa
--- /dev/null
+++ b/c/src/lib/libbsp/m68k/mcf5235/gdb-init
@@ -0,0 +1,29 @@
+#
+# Connect to the target.
+#
+target remote | m68k-bdm-gdbserver pipe /dev/bdmcf0
+
+#
+# The console loop the Axman dbug monitor. Found by trial and error
+# with the debugger.
+#
+hb *0xffe254c0
+
+#
+# Run to initialise the RAM. The target will stop when the
+# breakpoint is hit. Load the program.
+#
+c
+load
+
+#
+# Break on an exception.
+#
+b _uhoh
+
+#
+# Travel to main then stop.
+#
+tb main
+c
+