2016-12-18 02:18:45 +08:00
|
|
|
ccflags-y +=-I$(srctree)/include/debug
|
debug: add target GDB server
The GDB server implements a set of GDB commands, such as read/write
memory, read/write registers, connect/detach, breakpoints, single-step,
continue. It is not OS-aware, and thus provides a 'system-level'
debugging environment, where the system stops when debugging (such as
handling a breakpoint or single-stepping).
It currently only works over a serial line, taking over the
uart_console. If target code prints over the console, the GDB server
intecepts them and does not send the characters directly over the serial
line, but rather wraps them in a packet handled by the GDB client.
Change-Id: Ic4b82e81b5a575831c01af7b476767234fbf74f7
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2016-04-12 05:51:39 +08:00
|
|
|
CFLAGS_gdb_server.o =-I$(srctree)/include/drivers
|
|
|
|
|
2015-09-19 03:13:17 +08:00
|
|
|
obj-y =
|
|
|
|
obj-$(CONFIG_MEM_SAFE_CHECK_BOUNDARIES) += mem_safe_check_boundaries.o
|
debug: add target GDB server
The GDB server implements a set of GDB commands, such as read/write
memory, read/write registers, connect/detach, breakpoints, single-step,
continue. It is not OS-aware, and thus provides a 'system-level'
debugging environment, where the system stops when debugging (such as
handling a breakpoint or single-stepping).
It currently only works over a serial line, taking over the
uart_console. If target code prints over the console, the GDB server
intecepts them and does not send the characters directly over the serial
line, but rather wraps them in a packet handled by the GDB client.
Change-Id: Ic4b82e81b5a575831c01af7b476767234fbf74f7
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2016-04-12 05:51:39 +08:00
|
|
|
obj-$(CONFIG_GDB_SERVER) += gdb_server.o
|
2017-02-02 02:21:21 +08:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_OPENOCD_SUPPORT),y)
|
|
|
|
lib-y += openocd.o
|
|
|
|
ldflags-y += --undefined=_kernel_openocd_size_t_size
|
|
|
|
ldflags-y += --undefined=_kernel_openocd_offsets
|
|
|
|
endif
|