mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-13 19:18:56 +00:00
Makefile GDB updates
This commit is contained in:
parent
08bca26841
commit
e85ce3aea4
12
Makefile
12
Makefile
@ -135,8 +135,16 @@ flash_erase: ## erase all sectors in flash bank 0
|
||||
openocd: ## start openocd which connects to the device
|
||||
$(OPENOCD)
|
||||
|
||||
gdb: ## start remote gdb session which connects to the openocd
|
||||
arm-none-eabi-gdb $(FIRMWARE_BUILD_DIR)/firmware.elf -ex 'target remote localhost:3333'
|
||||
GDB = arm-none-eabi-gdb --nx -ex 'set remotetimeout unlimited' -ex 'set confirm off' -ex 'target remote 127.0.0.1:3333' -ex 'monitor reset halt'
|
||||
|
||||
gdb_boardloader: $(BOARDLOADER_BUILD_DIR)/boardloader.elf ## start remote gdb session to openocd with boardloader symbols
|
||||
$(GDB) $<
|
||||
|
||||
gdb_bootloader: $(BOOTLOADER_BUILD_DIR)/bootloader.elf ## start remote gdb session to openocd with bootloader symbols
|
||||
$(GDB) $<
|
||||
|
||||
gdb_firmware: $(FIRMWARE_BUILD_DIR)/firmware.elf ## start remote gdb session to openocd with firmware symbols
|
||||
$(GDB) $<
|
||||
|
||||
## misc commands:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user