-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
subsys/debug: relocate gdbstub stuff into its folder
Move the gdbstub files into the gdbstub folder, and relocated its Kconfig as well. Signed-off-by: Yong Cong Sin <[email protected]>
- Loading branch information
Showing
6 changed files
with
59 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Copyright (c) 2020 Intel Corporation. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
zephyr_sources( | ||
gdbstub.c | ||
) | ||
|
||
zephyr_sources_ifdef( | ||
CONFIG_GDBSTUB_SERIAL_BACKEND | ||
gdbstub/gdbstub_backend_serial.c | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Copyright (c) 2020 Intel Corporation. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
menuconfig GDBSTUB | ||
bool "GDB remote serial protocol support [EXPERIMENTAL]" | ||
depends on ARCH_HAS_GDBSTUB | ||
select UART_USE_RUNTIME_CONFIGURE | ||
select EXPERIMENTAL | ||
help | ||
This option enable support the target using GDB, or any other | ||
application that supports GDB protocol. | ||
|
||
if GDBSTUB | ||
|
||
choice | ||
prompt "GDB backend" | ||
|
||
config GDBSTUB_SERIAL_BACKEND | ||
bool "Use serial backend" | ||
depends on SERIAL | ||
help | ||
Use serial as backend for GDB | ||
|
||
config GDBSTUB_CUSTOM_BACKEND | ||
bool "Use a custom backend" | ||
help | ||
Use a custom backend for GDB | ||
|
||
endchoice | ||
|
||
config GDBSTUB_BUF_SZ | ||
int "GDB backend send/receive buffer size (in bytes)" | ||
default 256 | ||
help | ||
This specifies the size (in bytes) of the send/receive buffer | ||
for GDB backend. This needs to be big enough to hold one | ||
full GDB packet at a time. | ||
|
||
config GDBSTUB_TRACE | ||
bool "GDB backend extra logging" | ||
help | ||
Enable extra debug logging for the GDB backend, including | ||
breakpoint interrupts and remote commands it receives. | ||
|
||
endif # GDBSTUB |
File renamed without changes.
File renamed without changes.