Hacker News new | ask | show | jobs
by jhallenworld 2804 days ago
I want this capability for embedded ARM systems. I should be able to call a function to have the current stack trace printed:

https://communities.mentor.com/thread/16468

2 comments

The most widely distributed embedded ARM system software in the world, Android, offers this. They use mini debug info (normal debug info sections compressed, IIRC) and then you can signal a daemon in the background to do a stacktrace on your application.

Not on production images, though.

> The most widely distributed embedded ARM system software in the world, Android

[citation needed]

Also, when talking about embedded systems, people aren't normally talking about full Linux distros.

I've done it, but it increases binary size by a whole lot.

What worked better was a last chance hardware fault handler that wrote a partial core dump out to flash, and a tool to create an ELF core dump file from that that GDB can accept.