-
Notifications
You must be signed in to change notification settings - Fork 328
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
Using the info reg all
command within gdb returns an remote failure reply 'E0E'
#1070
Comments
As far as I know, the
For some related discussion see also here:
What exactly are you referring to here? What "IDE register component"? |
If these registers are not available, why not automatically hide it, or just return a fixed value just like before. If return a ERROR value like what is handled now, in Eclipse embedded CDT register window the register value will be |
It's explained in the links that I posted previously. There's no obvious/reliable way to determine that certain CSRs are not available - e.g. during OpenOCD's "target examine" process using the
When before? That's not a good idea as it makes it look like such CSRs exist when they do not. And arbitrarily masking errors arising from back-end debugging interactions with the target isn't a good idea on my opinion. What happens if the debugger tries to access a CSR that does exist, the operation fails, but OpenOCD masks the error and pretends that it succeeded? Nothing good I would imagine.
Even if you use the In my opinion it's at least as confusing/misleading, if not more so, to pretend to the user that some CSRs exist and have some default value when they do not. |
For this, if this CPU is a chip, it will be ok, but if it is a soft-cpu run in FPGA, it will be hard to maintain different configuration files for different soft-cpu configs which may have different csrs exposed, I will prefer just one configuration file for all soft-cpu cores. This will cause eclipse cdt debug register windows show like this: Previous version of openocd, will not show so many errors. |
In that case it should be possible to arrange for the generation the
What specific version? |
For our case, it is not possible, this bit generation don't generate openocd configuration files, the openocd config file is just one file stay in the sdk distributed to others.
Our port is based on this commit 5217759 |
I meant that with some work the bitstream generation flow could be extended to extract the necessary info from the HDL implementation from which the
Maybe create a PR that implements the functionality for unimplemented/missing CSRs that you think should be used and it can then be considered/reviewed as normal? |
@fanghuaqi, are you using This functionality was broken by https://review.openocd.org/c/openocd/+/7876. However, this does not change the fact that Please, consider implementing the approach suggested by @TommyMurphyTM1234. If you wish for OpenOCD config to stay constant, you can use Jim TCL's json extension and parse a JSON file that would specify the list of CSRs to hide in the OpenOCD script. |
Just to note that |
Yes, I am using this option's default feature. |
These error messages cause the IDE register component to not display properly.
236c54c
This is part of the gdb output:
The text was updated successfully, but these errors were encountered: