How to set / option ( perspective ?) to debug C code [message #1846960] |
Sun, 10 October 2021 16:33 |
Anne Ranch Messages: 85 Registered: October 2020 |
Member |
|
|
I set a break point and "Run configuration -=>TCF -> Debug .
My "Run" stops at the breakpoints and opens "assembly "(perspective ?) ...
How do I option for C code display ?
I do not want to step thru assembly , I want to step thru C code lines.
I can stop and step thru C code when running local NOT crosscompiled application - without any extra / specific setting.
[Updated on: Sun, 10 October 2021 16:37] Report message to a moderator
|
|
|
|
|
Re: How to set / option ( perspective ?) to debug C code [message #1846998 is a reply to message #1846995] |
Mon, 11 October 2021 18:16 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
Quote:The problem is with "Run as -> Run configuration " when code is executed on the remote / target system.
It stops on breakpoint but the perspective displays assembly code , not the source code .
Yes because it's not finding the source code.
A perspective is just a set of windows and views.
A "remote /target source code perspective" would just be a different arrangement of the same
windows and views found in the "Debug perspective".
Try setting the Source tab in the Debug Configuration.
I don't know where your sources are and I don't know what the remote configuration is
so I can't tell you much more. A lot depends on how the source locations are specified
in the code to be debugged.
This may help
https://www.eclipse.org/forums/index.php/t/165884/
There are quite a few pages on Google about setting up Eclipse for remote
debugging and linking in the source. Most are using Java but it's unlikely to
be much different that with C/C++.
UPDATE:
You have stopped at the beginning of ld-2.28.so
That's a dynamic linker used to load shared libraries.
https://man7.org/linux/man-pages/man8/ld.so.8.html
Do you have its source?
Was it compiled with debug info?
I'm guessing it wasn't otherwise you would have been asked for the source
or at the least told it couldn't be found.
[Updated on: Mon, 11 October 2021 22:14] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03427 seconds