synkro
0xdeadbeef
Hi!
I need a simple way to store the register content somewhere. Squidge gave me a single ARM ASM instruction but I have no fucking clue to use that. I think libc must provide something like that.
my question is: if I declare the jump buffer context inside foo it will be on the stack, wif I declare conext outside as global var it will reside in the data segment. Is that correct?
	
	
	
		
				
			I need a simple way to store the register content somewhere. Squidge gave me a single ARM ASM instruction but I have no fucking clue to use that. I think libc must provide something like that.
my question is: if I declare the jump buffer context inside foo it will be on the stack, wif I declare conext outside as global var it will reside in the data segment. Is that correct?
		Code:
	
	foo()
{
  jmp_buf context;
  if(setjmp(conext))
    return;
  else
  {
    // do what ever I want with the stack content
  }
}
	
	