1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

gdb: Do not automatically reset target in gdb init file

The gdb init files would previously reset the target immediately
when gdb started up.  This is sometimes an unpleasant side-effect
of running gdb.

In order to connect to the target, use the new "connect" function.
To reset the target use "mon reset".

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1236 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
stac 2010-08-08 04:14:52 +00:00 committed by stac
parent a688b95eb6
commit d7856b3d0a
2 changed files with 12 additions and 8 deletions

View File

@ -1,7 +1,9 @@
target remote localhost:3334
monitor reset halt
monitor cortex_m3 vector_catch all
file ./build/ahrs/AHRS.elf
define connect
target remote localhost:3334
monitor cortex_m3 vector_catch all
file ./build/ahrs/AHRS.elf
end
#monitor reset halt
define hook-step
monitor cortex_m3 maskisr on

View File

@ -1,7 +1,9 @@
target remote localhost:3333
monitor reset halt
monitor cortex_m3 vector_catch all
file ./build/openpilot/OpenPilot.elf
define connect
target remote localhost:3333
monitor cortex_m3 vector_catch all
file ./build/openpilot/OpenPilot.elf
end
#monitor reset halt
define hook-step
monitor cortex_m3 maskisr on