Bug 9354

Summary: display base and limit for %gs segment
Product: gdb Reporter: John Reiser <jreiser>
Component: tdepAssignee: Not yet assigned to anyone <unassigned>
Status: ASSIGNED ---    
Severity: enhancement CC: gdb-prs, jan, ppluzhnikov
Priority: P3    
Version: 6.6   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

Description John Reiser 2007-04-09 03:38:01 UTC
[Converted from Gnats 2249]

"info registers" should display the base and limit for segment %gs, to aid in debugging thread implementation (or other code which uses %gs as an additional segment.)  The base and limit values are specified in the most recent __NR_modify_ldt or __NR_clone system call.  Track them as such system calls are made, or query the operating system for their current values.

Currently only the selector values are displayed:
-----
(gdb) info registers
   . . .
cs             0x73     115
ss             0x7b     123
ds             0x7b     123
es             0x7b     123
fs             0x0      0
gs             0x33     51
-----

Release:
6.6-7

Environment:
i386 Linux (Fedora Core 7)

How-To-Repeat:
(gdb) info registers