Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Eli Zaretskii" <eliz@is.elta.co.il>
To: muller@cerbere.u-strasbg.fr
Cc: autophile@starband.net, gdb@sources.redhat.com, cgf@redhat.com
Subject: Re: [Q] Accessing fs:0 on x86 Linux?
Date: Sat, 15 Dec 2001 09:33:00 -0000	[thread overview]
Message-ID: <1438-Sat15Dec2001193204+0200-eliz@is.elta.co.il> (raw)
In-Reply-To: <4.2.0.58.20011214092106.00aca8d8@ics.u-strasbg.fr> (message from Pierre Muller on Fri, 14 Dec 2001 09:36:27 +0100)

> Date: Fri, 14 Dec 2001 09:36:27 +0100
> From: Pierre Muller <muller@cerbere.u-strasbg.fr>
> 
>   But I once announced that I had a tool that is able to do this on
> the go32v2 target.
> See
> http://sources.redhat.com/ml/gdb/2000-q1/msg00515.html
> and related thread.
> 
>   This was never really considered for insertion into GDB CVS...
> Eli, there was no followup to your answer
> http://sources.redhat.com/ml/gdb/2000-q1/msg00535.html
> ????

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

The problem with your patches was that they only worked for a single
command, an analog of the `x' command.  What I'm looking for is a
general feature which would allow memory references using a
selector:offset pair to be used in _any_ expression you submit to GDB.
GDB cannot do that currently, and I don't think it would be right for
me to hack every GDB command out there with "#ifdef __DJGPP__" type of
code.

So I have no alternative but to reject your patches.  Sorry.

A work-around would be to write a simple function that would do the
fetching of data via a selector other than DS, and then call that
function from GDB.  Depending on your needs, you could get away with
the _farpeek* family that is already available in the DJGPP library.


  parent reply	other threads:[~2001-12-15 17:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-13 16:55 Robert Baruch
2001-12-14  0:38 ` Pierre Muller
2001-12-14  7:53   ` Robert Baruch
2001-12-15  9:33   ` Eli Zaretskii [this message]
2001-12-15 10:04     ` Andrew Cagney
2001-12-16  0:15       ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1438-Sat15Dec2001193204+0200-eliz@is.elta.co.il \
    --to=eliz@is.elta.co.il \
    --cc=autophile@starband.net \
    --cc=cgf@redhat.com \
    --cc=gdb@sources.redhat.com \
    --cc=muller@cerbere.u-strasbg.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox