I'm currently implementing a watchdog functionality in a multithreaded program where one thread observes the others and checks if they are stuck. If a thread is stuck for a long time, the watchdog thread prints an error.
I would like to add the program counter of the hanging thread to the error message which can be in kernel land. How would I achieve this info from command line or c++?
System is yocto/poky for arm.
Regards