This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] i386 segment base support
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: teawater at gmail dot com
- Cc: gdb-patches at sourceware dot org, mark dot kettenis at xs4all dot nl, dje at google dot com, msnyder at vmware dot com, dan at codesourcery dot com, eliz at gnu dot org
- Date: Thu, 20 May 2010 10:19:54 +0200 (CEST)
- Subject: Re: [RFA] i386 segment base support
- References: <AANLkTilr0p65Ms8OwTVz2qVqAzylUIUiN6VzjRsoZPt6@mail.gmail.com>
> From: Hui Zhu <teawater@gmail.com>
> Date: Thu, 20 May 2010 15:34:17 +0800
>
> Hi guys,
>
> I update the old patch that I post to support segment base value.
Sorry, but we still need to discuss what programming model you intend
to support before I will consider looking at diffs.
Currently, on i386, GDB supports a fully flat 32-bit model, with one
small exception on platforms that support thread-local-storage. In
that model you can assume that all the segment bases are 0 except for
%gs. If that's all that people are interested in, I don't think we
should bother with segment bases for %cs, %ds, %es, %fs and %ss.
If people want to support fully segmented memory in GDB, then what you
propose is probably not enough, at least not for 32-bit mode.