Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Mark Kettenis <mark.kettenis@xs4all.nl>
Cc: gdb-patches@sourceware.org
Subject: Re: RFC: Unify the GNU/Linux native targets
Date: Mon, 27 Feb 2006 20:51:00 -0000	[thread overview]
Message-ID: <20060227204037.GA28320@nevyn.them.org> (raw)
In-Reply-To: <200602272036.k1RKaPiX030330@elgar.sibelius.xs4all.nl>

On Mon, Feb 27, 2006 at 09:36:25PM +0100, Mark Kettenis wrote:
> What does this mean for running GDB on older Linux kernels?  (Dropping
> support for older kernels isn't necessarily bad, as long as we still
> support Linux 2.4, but we should document it somehow).

Nothing at all.  There should be no functionality change with this
patch, nor does it imply removing anything.

It would make it simpler to add support for clone debugging without
libthread_db, if someone wanted to work on that, though - and that will
require 2.6.

> That isn't necessarily a bad thing; inf_ttrace() is also inherently
> multi-threaded.  I think the single-threaded/multi-threaded dichotomy
> really isn't the right way to view this.  It's more a
> kernel-threads/user-level-threads dichotomy.

Yes, I agree.

> Of course Linux is
> somewhere halfway between this, since it is (still) impossible to ask
> the kernel what LWP's belong to a particular process.

Eh?  No, that's not true with NPTL.

drow@caradoc:~% pidof firefox-bin    
8984
drow@caradoc:~% ls /proc/8984/task
18696/  6171/  6172/  6173/  8984/  8989/  8990/
drow@caradoc:~% grep Tgid /proc/6171/status
Tgid:   8984

> > Tested on x86_64-pc-linux-gnu.  Any comments?  Seems like progress?
> 
> I have one request; could you rename set_linux_target() to
> linux_nat_add_target().  I think that better expresses the fact that
> this function actually is the Linux native specific version of
> add_target.

Sure, I'll rename it.

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2006-02-27 20:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-27 19:44 Daniel Jacobowitz
2006-02-27 20:40 ` Mark Kettenis
2006-02-27 20:51   ` Daniel Jacobowitz [this message]
2006-03-11  1:44 ` Michael Snyder
2006-03-25  0:06   ` Daniel Jacobowitz

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=20060227204037.GA28320@nevyn.them.org \
    --to=drow@false.org \
    --cc=gdb-patches@sourceware.org \
    --cc=mark.kettenis@xs4all.nl \
    /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