Skip to content
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

Embedded works just a bit diffrently. #456

Open
duaneellissd opened this issue Mar 20, 2023 · 0 comments
Open

Embedded works just a bit diffrently. #456

duaneellissd opened this issue Mar 20, 2023 · 0 comments

Comments

@duaneellissd
Copy link

It seems that most of the GDBGUI use is with HOST=TARGET, or maybe HOST=X86 to TARGET=ARM_LINUX
and therefore you do not experience these problems.

When using an embedded target, such as via OpenOCD things are quite different.
ad this is where the tool does to work work. perhaps it would be a good idea to introduce an "--embedded-quirks" option.

Example:
The PAUSE (halt/break) feature does not work. Instead you must type: "interrupt" in the command window.

Example: The RESTART button does not work.
Reason, with an embedded target you must RELOAD the application (aka: Re-Flash the application) by typing the "load" command.

While 'reload' might seem strange to you (its already in the flash correct? So why are we reloading it).
Answer: Often you might run your application from RAM instead, and the application needs to be reloaded.

Its' not the job of the GDB SERVER to do this - because the server does not know the name of the ELF being loaded.
It is GDB that sends memory write commands to the GDSERVER which in turn become Flash Write operations.

Example: I dont' have a handle on the reason yet but often, I must power cycle my board, crash the GDB SERVER and restart it after a debug session Normally one does not need to do that. It's not a GDBSERVER (openocd) problem - because other front ends work just fine (ie: GUD mode in Emacs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant