-
Notifications
You must be signed in to change notification settings - Fork 6.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
arc gdb failed to load core dump file #26362
Comments
coredump.txt |
I found arc-linux-gdb has no this problem while arc-elf-gdb has. Seems it's caused by the different target option when gbd is built. Hope this can provide information for you |
Thanks @clear-zhang, this helps (and would be a workaround for now). The tools team told me earlier this was a feature they added specifically for Linux core dumps, so maybe indeed a matter of setting the right flags when building - will check with them. |
@clear-zhang thanks for all the detailed info. Indeed,
For now, please continue using Track the implementation of the feature is here. |
Need someone from the arc side to comment on if there are changes/patches that ARC is support for GDB for this. |
I cannot get the I know you have provided the coredump, but I rather use one that comes from the elf file I have. For now, I am actually using the provided coredump against an arbitrary To be complete, I used this Zephyr. |
I looked into other targets such as ARM. From the code, it looks like gdb should behave the same for them: Could someone tell me how the elf gdb behave for other targets? Or even better, tell me how to generate coredumps so I can do it for other targets and debug those GDBs myself. |
@ruuddw let me know and I can update the build configuration in the Zephyr SDK for ARC. |
@clear-zhang @galak let's first make it a bit more clear what is the problem here. For instance I don't quite understand how that core dump is supposed to be created? Which target is used for that, how do we interact with that target. In case of the Linux-based OS core dump is being created by the kernel itself and gets put on the filesystem. How that could be done in case of Zephyr is not clear to me. |
Lower priority as @abrodkin mentioned I don't see how a core dump could even be generated w/Zephyr. |
@clear-zhang Can you please explain how you generated the coredump? Did you dump it from gdb (generate-core-file) or so? |
I'm closing it now since we don't really understand what's the problem here and for more than a month there were no updates with clarification. Feel free to re-open it once more info is avaialble. |
Describe the bug
Wen we try to use gdb for arc cpu to load core dump file. Below error occurs:
"/home/clzhang/cxx_ww14/pxx/tmp/coredump.elf": no core file handler recognizes format
To Reproduce
Steps to reproduce the behavior:
Expected behavior
core dump file is recognized and loaded.
Impact
It's high since it is blocking core dump feature development.
Screenshots or console output
Environment (please complete the following information):
GNU gdb (crosstool-NG 1.24.0-rc2-dirty) 8.2.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: