Bug 9354 - display base and limit for %gs segment
Summary: display base and limit for %gs segment
Status: ASSIGNED
Alias: None
Product: gdb
Classification: Unclassified
Component: tdep (show other bugs)
Version: 6.6
: P3 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-08 21:38 UTC by John Reiser
Modified: 2010-05-24 04:57 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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