Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: gdb-patches@sourceware.org
Cc: "Pierre Muller" <muller@ics.u-strasbg.fr>
Subject: Re: [PATCH/Obvious] Fix error in last ARI fix for gnu-nat.h
Date: Wed, 22 Apr 2009 18:45:00 -0000	[thread overview]
Message-ID: <200904221944.40713.pedro@codesourcery.com> (raw)
In-Reply-To: <002f01c9c274$10a69fc0$31f3df40$@u-strasbg.fr>

On Tuesday 21 April 2009 12:26:50, Pierre Muller wrote:
> I missed to add a continuation line in the proc_debug macro in gnu-nat.h
> 
> Committed as obvious fix.
> 
> I discovered this while looking at the
> THREAD_STATE_* macros (listed in ARI).
> 

>   These macros are all defined only once in
> config/i386/nm-i386gnu.h
> and used only in gnu-nat.c source
> unconditionally. This probably means that gnu hurd can only
> be compiled for i386 processor anyhow... 

Right, but the way the code is layed out, it should be easy to
add support for other processors, in case the Hurd is ported
(I'm not sure what archs the Hurd runs on).

> Which in turn, means that we could probably move the stuff 
> from gnu-nat.c to i386gnu-nat.c

I'm not exactly sure what you're proposing here.  It looks
like you'd have to move pieces of generic gnu/Hurd code
over to i386gnu-nat.c as well.  Keep in mind that macros
afecting the native target only in nm.h files aren't a
big a deal.  GDB can't be compiled for more than one
native target anyway.

>  I can send a patch for this, but 
> I will not be able to test compilation,
> as this would require access to gnu HURD.

I can do that for you, no problem.  I've got a debian/Hurd
vmware image here.

If you want to set one up yourself, it's easy --- you'll find
prebuilt debian/Hurd vmware images on the web ready to go.
Being debian, it doesn't feel *that* much different.

-- 
Pedro Alves


      reply	other threads:[~2009-04-22 18:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-17  6:32 [RFA] ARI fix: %p rule Pierre Muller
2009-04-17 13:59 ` Pedro Alves
2009-04-17 15:37   ` Joel Brobecker
2009-04-17 15:54     ` Pierre Muller
2009-04-17 16:00       ` Joel Brobecker
2009-04-17 16:05         ` Pedro Alves
2009-04-21 11:26 ` [PATCH/Obvious] Fix error in last ARI fix for gnu-nat.h Pierre Muller
2009-04-22 18:45   ` Pedro Alves [this message]

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=200904221944.40713.pedro@codesourcery.com \
    --to=pedro@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    --cc=muller@ics.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