Reputation: 1600
I am trying to understand the sigsetjmp()
and siglongjmp()
functions. The man pages state that sigsetjmp()
saves the context and siglongjmp()
restores the context. My question is, will they take care of stack pointer and program counter values as well?
Any links to extra resources are welcome.
Upvotes: 1
Views: 1056
Reputation: 231213
The stack pointer and program counter are both parts of the context (which you can think of as being, essentially, the state of the CPU registers).
Upvotes: 2