From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25624 invoked by alias); 15 Dec 2001 18:04:11 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 25598 invoked from network); 15 Dec 2001 18:04:10 -0000 Received: from unknown (HELO localhost.cygnus.com) (24.114.42.213) by sources.redhat.com with SMTP; 15 Dec 2001 18:04:10 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.cygnus.com (Postfix) with ESMTP id D14AC3D60; Sat, 15 Dec 2001 13:04:09 -0500 (EST) Message-ID: <3C1B9099.5020306@cygnus.com> Date: Sat, 15 Dec 2001 10:04:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.6) Gecko/20011207 X-Accept-Language: en-us MIME-Version: 1.0 To: Eli Zaretskii , muller@cerbere.u-strasbg.fr, autophile@starband.net Cc: gdb@sources.redhat.com, cgf@redhat.com Subject: Re: [Q] Accessing fs:0 on x86 Linux? References: <4.2.0.58.20011214092106.00aca8d8@ics.u-strasbg.fr> <1438-Sat15Dec2001193204+0200-eliz@is.elta.co.il> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2001-12/txt/msg00138.txt.bz2 > I looked into this issue when GDB 5.1 was in the last stages of > development, but eventually decided that GDB lacked some > infrastructure to add such a functionality. You could find the > traces of that in a thread "Re: 8 bit read"; start reading here: > > http://sources.redhat.com/ml/gdb/2001-07/msg00338.html Can I suggest playing with the @ prefix operator that Michael Snyder recently added. It added a framework for specifying something like ``(int @code *)0''. This indicates a pointer in the code space. The intent is for the mechanism to be extended to support more than just code and data spaces. An initial pass at this would have: (@fs*)0 One possible follow-on would be to change $fs's type to ``(uint8 @fs *)'' so that ``x/b $fs + 5'' did the right thing. I should note that the current implementation is restricted to just @code and @data so some ground work would be needed. Andrew