Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Pierre Muller <muller@ics.u-strasbg.fr>
Cc: gdb-patches@sourceware.org, gdb@sourceware.org,
		'Eli Zaretskii' <eliz@gnu.org>
Subject: Re: GDB ARIndex cleanup
Date: Thu, 26 Mar 2009 23:18:00 -0000	[thread overview]
Message-ID: <20090326230959.GN9472@adacore.com> (raw)
In-Reply-To: <000001c9ae14$24fb7cd0$6ef27670$@u-strasbg.fr>

> 1) "inline"
> for inline, someone once said that the rule that we should not use
> "inline" keyword is old, and maybe not correct anymore.
> 
> If everyone agrees that this rule should stay, I will be happy to
> commit an obvious fix removing all of them as this seems quite
> mechanical, but I wanted to get some feedback first.

I don't know much about the effectiveness of using "inline".
I personally tend to avoid it, because I trust the compiler to determine
whether an inline will help or not. So I'm OK either way.

> This is more difficult for me to fix, as
> the difference between "Linux kernel" and "GNU/Linux system" 
> is still kind of fuzzy...

As a first guess, I think a lot of the references will be to the Linux
kernel. GDB interfaces mostly with the kernel.  GNU/Linux would refer
to the larger systems that runs on the Linux kernel.

However, I'm wondering if this rule is really all that helpful
for the GDB project or not. I suspect this comes from a request
from RMS to make sure that this distinction be made in GNU code.
But it might seem a bit awkward when you read it.

> /* Linux target descriptions.  */

I'm actually not 100% sure about this one. I think that target descriptions
can be used to describe other things than register availability and
numbering. So, generally speaking, the above might be ambiguous. But
in practice, the target_desc below are describing registers, so
Linux Kernel. Again, not 100% sure.

>   /* The list of issues to contend with here is taken from
>      resume_execution in arch/x86/kernel/kprobes.c, Linux 2.6.28.
>      Yay for Free Software!  */

Kernel.

> When waiting for an event in all threads, waitpid is not quite good. Prior
> to
> version 2.4, Linux can either wait for event in main thread, or in secondary

Kernel.

> /* The length of the longest i386 instruction (according to
>    include/asm-i386/kprobes.h in Linux 2.6.  */

Kernel (he's talking about the kernel sources)

> /* Wrappers to handle Linux-only registers.  */

Kernel.

>   /* Initialize the Linux target descriptions.  */

Kernel.  Again, sounds pretty awkward to use "Linux Kernel target
descriptions".

-- 
Joel


  parent reply	other threads:[~2009-03-26 23:10 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-26 15:29 Pierre Muller
2009-03-26 20:53 ` Eli Zaretskii
2009-03-27  8:23   ` Pierre Muller
2009-03-27  8:47     ` Eli Zaretskii
2009-03-27 14:12       ` Eli Zaretskii
2009-03-27 15:35         ` Eli Zaretskii
2009-04-02 15:12         ` Thiago Jung Bauermann
2009-04-02 19:40           ` Eli Zaretskii
2009-04-02 20:34             ` Joel Brobecker
2009-03-26 23:18 ` Joel Brobecker [this message]
2009-03-27  2:22   ` Daniel Jacobowitz
2009-03-27  8:43   ` Pierre Muller
2009-03-27 16:04     ` Joel Brobecker
2009-03-27 16:46       ` Daniel Jacobowitz
2009-04-14 23:06   ` [RFC] GDB ARIndex Linux rule cleanup Pierre Muller
2009-04-14 23:23     ` Mark Kettenis
2009-04-14 23:38       ` Pedro Alves
2009-04-14 23:41         ` Joel Brobecker
2009-04-15  7:06           ` Pierre Muller
2009-04-15  7:33           ` Eli Zaretskii
2009-04-15 14:00     ` Ulrich Weigand
2009-04-15 14:21       ` Pedro Alves
2009-04-15 15:32         ` Ulrich Weigand
2009-04-15 15:54           ` Pedro Alves
2009-04-15 14:25       ` Eli Zaretskii
2009-04-15 15:15         ` Daniel Jacobowitz
2009-04-15 15:23         ` Ulrich Weigand
2009-04-15 15:34           ` Mark Kettenis
2009-04-15 16:00             ` Eli Zaretskii
2009-04-15 16:04           ` Eli Zaretskii
2009-04-15 17:34             ` Ulrich Weigand
2009-04-15 18:07               ` Eli Zaretskii
2009-04-15 18:55                 ` Ulrich Weigand

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=20090326230959.GN9472@adacore.com \
    --to=brobecker@adacore.com \
    --cc=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=gdb@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