[PD] backtrace() for MinGW (and Android)

Hans-Christoph Steiner hans at at.or.at
Sun Feb 12 16:41:30 CET 2012


On Feb 12, 2012, at 12:43 AM, Mathieu Bouchard wrote:

> Le 2012-02-12 à 06:06:00, Patrice Colet a écrit :
> 
>> Thanks a lot!
>> Ivica, what about using this for backtrace?
>> http://code.google.com/p/backtrace-mingw/
> 
> Does anyone have such a thing for Android ?
> 
> I found something similar, except it doesn't work inside a signal handler, so, unlike any other Linux OS, I can't get backtrace() to give me the stack of a segfault.

That's probably because backtrace() is not Linux but GNU, and Android is Linux but not GNU.  It uses its own "Bionic" libc, for example.  I'll bet backtrace() works fine on Debian GNU/kFreeBSD, which is also not Linux but is GNU.  So those who think "GNU/Linux" is just marketing aren't paying attention to the details :)

http://www.gnu.org/software/libc/manual/html_node/Backtraces.html

.hc

----------------------------------------------------------------------------

I hate it when they say, "He gave his life for his country."  Nobody gives their life for anything.  We steal the lives of these kids.  -Admiral Gene LeRocque




More information about the Pd-list mailing list