For a reason I need to find, a C++ application looks being stuck in a docker container.
I did a docker exec -it a_template_cpp bash
and entered into it.
I know the top
and pmap
commands, and also that I can generate a map file at linkage time to help me.
But I don't know the Linux command(s) that can show me the address my program is currently executing at the moment I'm asking. What's the value of the program counter register at that moment.
What's the command I should execute to know it?