In looking at some assembly, I have come across a few instructions using segment prefixes. For example
<address>: .... mov eax,DWORD PTR gs:0x20
I understand the basics of memory segments, but how could I get the 'absolute' memory address (particularly in GDB) of the data being accessed here? For example, I may want to break on further access, or examine the memory in that area.
Edit: I know how to get the value of $gs, but not sure how to use that information with the given instruction to get the actual address of memory. And yes, this is under Linux.