Debug step into C library

Discussions concerning TrueSTUDIO for STM32 9.0.0 and later versions.

Moderators: Markus Girdland, Mattias Norlander

not-a-user
Posts: 1
Joined: Tue Mar 12, 2019 12:13 pm

Debug step into C library

Postby not-a-user » Fri Mar 15, 2019 2:57 pm

When I put a breakpoint at malloc, the source window tells me 'No source available for "malloc() at 0x80e7bc0"'. How can I debug step into the C library? I guess I will have to point gdb to the debugging symbols (are they included in the .so static libs?) and to the source code (ST is required to put it up for download somewhere, but where?)

Edit: If I do this with a native ubuntu eclipse project, I get a message that tells me which source file it is missing and I can `apt source glibc`, point eclipse to the source tree and step into malloc. So the problem seems to be that the debug symbols for the C library are not loaded in my true studio configuration at all.

Return to “TrueSTUDIO for STM32 discussions”

Who is online

Users browsing this forum: No registered users and 2 guests