Skip to contentSkip to conversation

Function backtrace in uboot

U-Boot Gigin Jose 2 participants 2 messages Feb 26, 2011 – Feb 28, 2011

lore
Share & tools
lore

Gigin Jose

author
#0 lore raw

Hi,?
I would like to backtrace a function in uboot. The function "?int?backtrace?(void **buffer, int size)"??uses header file "execinfo.h".? The header file is present inside my toolchain include folder. How can I add the include folder in my Makefile path so that I can use the functionality in the code.? With RegardsGIGIN

#1 lore raw
Quoted 5 lines · On Saturday, February 26, 2011 05:12:25 Gigin Jose wrote:

I would like to backtrace a function in uboot. The function
" int backtrace (void **buffer, int size)" uses header file "execinfo.h". The header file is present inside my toolchain include folder. How can I add the include folder in my Makefile path so that I can use the functionality in the code. With RegardsGIGIN

there is no support in u-boot for this function. simply mucking with the header wont change the missing implementation of the func itself.

that said, i cant see this being terribly useful in u-boot. if you need a backtrace, then use gdb.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110228/fad5ccca/attachment.pgp