When I debug with GDB a Linux process I put a breakpoint in function
b 0xabcd
This function got an register r1 as argument and in the end of function it will store a value that I want to print
What is the right way to save the address of that register and print it on the end of function?