Monday, December 11th 2017, 10:18am UTC+1

You are not logged in.

  • Login
  • Register

szoshi

Beginner

Date of registration: Nov 28th 2017

Posts: 5

1

Tuesday, November 28th 2017, 1:25pm

[SOLVED] Debugging library functions

Hello,

I am playing around with the Embedded Studio and have been very impressed with what i have seen so far. I am still only using the simulator instead of actual hardware and had one question about the simulator.

When i debug my application, I see that functions like malloc are directly linked to via pre compiled libraries. As a result, I cannot see where in source sode a problem occurs. I can step through the assembly code but that is not much help. Is there a way to force embedded studio to compile the libraries everytime so that the source code for such functions is also visible during debug?

Best regards,
szoshi

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 434

2

Tuesday, November 28th 2017, 2:26pm

Hello szoshi,

Thank you for your inquiry.
The libraries are proprietary and closed source so it is not possible to debug the source.
But generally malloc does what malloc is expected to do.

Best regards,
Nino

szoshi

Beginner

Date of registration: Nov 28th 2017

Posts: 5

3

Wednesday, November 29th 2017, 12:20pm

Thanks for the clarification. I was asking since I have had instances in the past (with other hardware/software) where faulty project settings were leading to malloc failing. Following the malloc code helped me to track my problem. I just wanted to check if there was something I was overlooking. Now that I know this I can try to debug my applications with a different approach.

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 434

4

Wednesday, November 29th 2017, 1:40pm

Hello szoshi,

Should you stumble across a problem that is 100% related to one of our library functions feel free to contact us about such an issue and we will fix the issue in a timely manner.

This question will now be considered as answered.

Best regards,
Nino