This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
RE: run the ARI on gdbserver too?
- From: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- To: "'Pedro Alves'" <palves at redhat dot com>, "'Joel Brobecker'" <brobecker at adacore dot com>
- Cc: <gdb at sourceware dot org>
- Date: Tue, 13 Nov 2012 11:00:22 +0100
- Subject: RE: run the ARI on gdbserver too?
- References: <002701cdc0b9$542d2560$fc877020$@muller@ics-cnrs.unistra.fr> <20121112180707.GQ4847@adacore.com> <50A14202.4060403@redhat.com>
> -----Message d'origine-----
> De?: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] De la part
> de Pedro Alves
> Envoyé?: lundi 12 novembre 2012 19:38
> À?: Joel Brobecker
> Cc?: Pierre Muller; gdb@sourceware.org
> Objet?: run the ARI on gdbserver too?
>
> On 11/12/2012 06:07 PM, Joel Brobecker wrote:
> >> > Also, I would find as a logical consequence that also
> >> > gdbserver subdirectory should follow the ARI rules.
> >> > This is done quite easily by removing the
> >> > -name gdbserver -prune -o
> >> > line from gdb_find.sh script in gdb/contrib./ari
> >> > but is a rather important change that should be discussed fully.
> > Right. I think it would be a helpful, but I'll let Pedro comment
> > on that one.
>
> I agree that it's a logical step. I think we'll see a lot of
> hits that don't actually point at issues that are problems in
> practice (due to the fact lots of gdbserver code is host/native
> code that makes assumptions on the environment its being built
> for, like bits of native code in gdb does), but it sounds nevertheless
> a good idea, considering we'll want to share more and more between
> gdb and gdbserver.
This was one of the reasons
of my old proposition to distinguish between
native and general files.
http://sourceware.org/ml/gdb-patches/2011-03/msg01087.html
Using things like 'long long' type or '%ll' or '%p'
is not really a problem for native files, but
can become one for general files as the size of the
fields might not match was is expected.
Pierre Muller