aboutsummaryrefslogtreecommitdiffstats
path: root/os/various/gdb.mk
blob: aa636a844ab30c98cb0882a1af904a16393d100c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
GDB               ?= arm-none-eabi-gdb
GDB_PROGRAM       ?= $(BUILDDIR)/$(PROJECT).elf
GDB_PORT          ?= 2331
GDB_START_ADDRESS ?= 0
GDB_BREAK         ?= main

gdb-debug:
	printf "target remote localhost:$(GDB_PORT)\nmem $(GDB_START_ADDRESS) 0\nbreak $(GDB_BREAK)\nload\nmon reset\ncontinue" > .gdbinit
	$(GDB) --command=.gdbinit $(GDB_PROGRAM)



.PHONY: gdb-debug