Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

Breackpoints on the newlib source code

I have a small problem using NIOS II IDE.

Suppose to create a Hello world application.

Open the instruction set simulator, and start debugging the application.

I would like to put some breackpoints in the newlib source code (like in "printf"), but it seems I can't. In fact, I can put breakpoints only on the source code contained in the "hello_world_0" Project.

The thing it happens to me is that when I step into a newlib function (e.g., printf), the left side bar where I can add breackpoints disappear :-)

What I'm doing wrong?

Thanks for all,

Paolo

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You need to create and Advanced project in the IDE which points at the newlib source code and then you're in business.

    To do this from the IDE go File->New->Project Select Altera Nios II Advanced C/C++ Project and then the location for this is underneath your install in the directory altera\kits\nios2\bin\nios2-gnutools\src\newlib