This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question about args.exp test


On Apr 21 14:44, Daniel Jacobowitz wrote:
> On Wed, Apr 21, 2004 at 06:40:40PM +0200, Corinna Vinschen wrote:
> > Why is args.exp expecting two apostrophes and who's supposed to add them?
> > The args testapplication apparently isn't.
> 
> IIRC, the comments are wrong.  The tests can not be fixed for the ARM
> simulator, though - I spent several days trying.  Trace the path that
> argv takes through from the GDB prompt to the inferior main(), if you
> want some gruesome entertainment:
>   - it is word split by GDB before invoking the sim
>   - it is reconstructed into a string by the sim/RDI interface
>   - it is word split again in either newlib or libgloss, in handwritten
>     assembly
> 
> The interface simply does not permit properly quoted arguments.

Uh, that explains it.

Thanks for the description,
Corinna


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]