aboutsummaryrefslogtreecommitdiff
path: root/code/temperature/.gdbinit
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2018-08-23 17:08:59 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2018-08-23 17:12:21 +0200
commit3061ecca3d0fdfb87dabbf5f63c9e06c2a30f53a (patch)
treeab49cc16ed0b853452c5c2ed2d3042416d628986 /code/temperature/.gdbinit
downloadiot-sensors-master.tar.gz
iot-sensors-master.tar.bz2
iot-sensors-master.tar.xz
iot-sensors-master.zip
o Initial import.HEADmaster
Diffstat (limited to 'code/temperature/.gdbinit')
-rw-r--r--code/temperature/.gdbinit37
1 files changed, 37 insertions, 0 deletions
diff --git a/code/temperature/.gdbinit b/code/temperature/.gdbinit
new file mode 100644
index 0000000..b56184d
--- /dev/null
+++ b/code/temperature/.gdbinit
@@ -0,0 +1,37 @@
+define target hookpost-remote
+ monitor reset
+ set remotetimeout 20
+end
+
+define target hookpost-extended-remote
+ monitor reset
+ set remotetimeout 20
+end
+
+define run_temp
+ monitor halt
+
+ shell cd ../build; make -j4 temp
+
+ set confirm off
+ file ../build/temp/temp
+ set confirm on
+
+# load
+ shell cd ../build; make -j4 temp-flash
+ continue
+end
+
+set print array on
+set print array-indexes
+
+
+set confirm off
+file ../build/temp/temp
+set confirm on
+
+target extended-remote :3333
+
+hb HardFault_Handler
+hb main
+disable 2