Can I print the gdtr and gdt descriptor under gdb?

I want to use gdb to see my GDTR/LDTR/TTR and segment register

invisible part (x86) so in gdb I enter "p / x $ gdtr" .... etc. but the result is "$ 6 = The value cannot be converted to an integer" and in gdb I enter "p / x $ cs" the only result is CS, only the visible part

can anyone tell me how to view these value??

thanks for your reply

+4
source share
1 answer

If GDB had such a function, this function would only work if GDB was able to read the GDTR using the SGDT instruction. This would mean that GDB should have worked in ring 0.

Linux, Windows, Mac OS (, GDB) 0, .

( RS-232 TCP/IP): , , GDTR.

( ) "monitor". ​​, "monitor readspr gdtr".

+4

All Articles