-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
buildsystem: add target debug-client #19725
buildsystem: add target debug-client #19725
Conversation
@@ -50,6 +50,11 @@ | |||
# TELNET_PORT: port opened for telnet connections | |||
# DBG: debugger client command, default: 'gdb -q' | |||
# TUI: if TUI!=null, the -tui option will be used | |||
# debug-client: debug-client <elffile> | |||
# connects to a running debug-server | |||
# GDB_PORT: port opened for GDB connections |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How can the server be specified to which this connects?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OPENOCD_SERVER_ADDRESS
becomes part of DBG_FLAGS
in openocd.sh
.
: ${DBG_DEFAULT_FLAGS:=-q -ex \"tar ext ${OPENOCD_SERVER_ADDRESS}:$(( GDB_PORT + GDB_PORT_CORE_OFFSET ))\"}
: ${DBG_FLAGS:=${DBG_DEFAULT_FLAGS} ${DBG_EXTRA_FLAGS}}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want a GDB_ADDRESS
which is set to OPENOCD_SERVER_ADDRESS
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah no, I see that OPENOCD_SERVER_ADDRESS
is now documented further up in this file.
bors merge |
Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
Contribution description
We have a test setup with some boards connected to a Raspberry Pi. We want to debug remotely, not from the Pi.
The Pi can start the debug server and the host can use the newly added
debug-client
target.Integration is only added for OpenOCD.
Testing procedure
RROGRAMMER=openocd BOARD=same54-xpro make debug-server
BOARD=same54-xpro make debug-client
Issues/PRs references