newlib with debuginfo

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

newlib with debuginfo

632 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcentric on Tue Sep 27 23:56:32 MST 2011
Is the newlib c runtime available with debuginfo and source (particularly the semihosted one), so one can step through with the debugger? I know the newlib source is available, but that doesn't get it into a debuggable state on the lpcxpresso.

Thanks!
0 项奖励
回复
1 回复

614 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Wed Sep 28 03:34:40 MST 2011
We don't provide source for the Redlib and Newlib C libraries with LPCXpresso, though, as you note, the sources for Newlib are freely available.

We also don't provide source for the "semihosting stubs" that sit underneath the C libraries when you configure the tools to use semihosting. However these stubs basically implement the semihosting specification as originally defined by ARM.  You can find this in the ARM Developer Suite (ADS) v1.2 Debug Target Guide, Chapter 5. Semihosting.

If you can explain what you are actually trying to achieve, then we might be able to advise more directly.  For example, if you simply want to retarget the C library to use, say, a uart as the target for printf rather than the semihosting console within the debugger then this FAQ should help:

http://support.code-red-tech.com/CodeRedWiki/UartPrintf

And more general information on the C library can be found in the other FAQs at:

http://support.code-red-tech.com/CodeRedWiki/CodeRedFAQ#CLibrary

Regards,
CodeRedSupport
0 项奖励
回复