run the ARI on gdbserver too?

Pierre Muller pierre.muller@ics-cnrs.unistra.fr
Tue Nov 13 10:01:00 GMT 2012



> -----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



More information about the Gdb mailing list