Re: Bug in i386_process_record?

Daniel Jacobowitz
2009-08-23T23:53:30Z

On Mon, Aug 24, 2009 at 07:42:41AM +0800, Hui Zhu wrote:
> On Mon, Aug 24, 2009 at 02:24, Eli Zaretskii <eliz@gnu.org> wrote:
> >
> > > From: Hui Zhu <teawater@gmail.com>
> > > Date: Sun, 23 Aug 2009 12:29:33 +0800
> > > Cc: gdb-patches ml <gdb-patches@sourceware.org>
> > >
> > > read_register (I386_ES_REGNUM)
> > > This value is not the value of ES. Â This is number of TLB.
> >
> > On what OS?

If I remember correctly, the %es that GDB sees is the selector rather
than the base address. I think any halfway recent Linux kernel
exposes both values, but GDB doesn't display the bases - this probably
bears fixing!

--
Daniel Jacobowitz
CodeSourcery