This is the mail archive of the gdb@sourceware.org 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: PR13901


Pedro Alves <palves@redhat.com> writes:

> On 04/02/2012 05:22 PM, Andreas Schwab wrote:
>
>> Pedro Alves <palves@redhat.com> writes:
>> 
>>> We can't make GDB fully compatible in all cases with what it can do today
>>> if we skip the shell completely.  E.g., with "set args $(foo)", "$(foo)" is
>>> expanded by the shell, and what that means is up to the user's shell.
>> 
>> You can handle that by calling the shell only for expanding the
>> arguments.
>
>
> True, but with that and redirection syntax being also shell
> specific, I'm not sure what would be the point compared to what
> we've always done.

You can do the expansion in a step that is completely separate from
starting the inferior.  But you cannot handle redirections this way.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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