-
Notifications
You must be signed in to change notification settings - Fork 7k
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
xtensa: GDB: Unable to debug #4309
Comments
which gdb did you use? |
re #1510, what exactly are you getting? |
I've tried with 3 GDB clients. Ubuntu's gdb.
Ubuntu's gdb-multiarch
SDK 0.9.1's xtensa gdb client
I get the same result with all of them. |
I get the same error with qemu_cortex_m3, qemu_nios2, qemu_x86 |
IMHO this issue is critical. Not being able to debug a platform makes it impossible to make changes to the This issue blocks #4296 |
@SebastianBoe Is this still an issue? |
Yes. Reproduced again with 43bc304
|
@rgundi @SavinayDharmappa Any update on this issue? |
@jcmvbkbc any idea what is going on here? This sounds like an issue with the toolchain itself. |
@nashif I agree, that sounds like discrepancy between qemu view of registers (it provides both privileged and unprivileged registers through its gdb server) and gdb view of registers (by default it only expects unprivileged registers). So far I used to modify xtensa configuration overlay applied to gdb source to mark all registers as unprivileged. But probably a better solution is to fix xtensa gdb and make it accept both privileged and unprivileged registers when it's configured for xtensa*-*-elf. |
I've added the following patch to the top of the zephyr SDK: jcmvbkbc/meta-zephyr-sdk@42be8b4 and rebuilt SDK. |
thanks @jcmvbkbc , lowering priority since this is an SDK issue. |
I think this still needs to be high priority, this issue wastes a tremendous amount of expensive developer time |
@rgundi please verify the fix above: see https://github.com/zephyrproject-rtos/meta-zephyr-sdk/releases/tag/0.9.3-rc3 |
fixed in latest SDK |
Hi,
I am trying to debug an xtensa application, but when running gdb I get the below error message.
Affects: qemu_xtensa
Does not affect: qemu_cortex_m3, qemu_x86, qemu_riscv32, qemu_nios2
Some system information:
The text was updated successfully, but these errors were encountered: