This question might sound very naive, however, I got stuck when one of my friends asked me where can I find the address of an initialized register in the stack.
For e.g., info registers
in gdb gives us a list of registers and their corresponding values which are basically stored into it.
Is there any command or way in which I could find the addresses where the registers are actually located? If yes could someone please direct me towards it.
I am glad my friend asked me this question since it was something which I didn't notice earlier because there had not been a time where there was any need of the address where the registers are located.
push
-ed register values (not registers). You really need to edit your question to make clear what you want.