title: How do I read the value of all registers with gdb?
body: <p>I am debugging a c program in assembly to understand how the gcc complier works. I want to read my $fs segment register so I use x/x $fs, however it tells me it can't access the memory. How can I get a read out on any register which includes segment, general purpose, and control registers on the i386:86_64?</p>