I need to debug an application written in C that reads and writes to segment register FS. To debug this application I need to see the memory address where FS points to.
The application uses code like this:
mov rdx, fs:[rcx]
mov fs:[rcx], rsi
How do I get the linear virtual address of a read/write from/to segment registers? I can compile this application for either Linux or Winodws.