aboutsummaryrefslogtreecommitdiff
path: root/driver_fw/.gdbinit
diff options
context:
space:
mode:
Diffstat (limited to 'driver_fw/.gdbinit')
-rw-r--r--driver_fw/.gdbinit7
1 files changed, 6 insertions, 1 deletions
diff --git a/driver_fw/.gdbinit b/driver_fw/.gdbinit
index d29f9a6..a8b0d69 100644
--- a/driver_fw/.gdbinit
+++ b/driver_fw/.gdbinit
@@ -8,7 +8,7 @@ set print elements 512
# Convert GDB to interpret in Python
python
-import os,subprocess,sys
+import os, subprocess, sys
# Execute a Python using the user's shell and pull out the sys.path (for site-packages)
paths = subprocess.check_output('python -c "import os,sys;print(os.linesep.join(sys.path).strip())"',shell=True).decode("utf-8").split()
# Extend GDB's Python's search path
@@ -18,3 +18,8 @@ end
source ~/ref/PyCortexMDebug/cmdebug/svd_gdb.py
svd_load ~/ref/stm32square/svd/STM32G070.svd
+define reconnect
+ disconnect
+ target extended-remote 192.168.1.95:2022
+end
+