This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFC: Fix to double parsing of filenames in GDB command line
- To: Fernando Nasser <fnasser at redhat dot com>
- Subject: Re: RFC: Fix to double parsing of filenames in GDB command line
- From: fche at redhat dot com (Frank Ch. Eigler)
- Date: 25 Jan 2001 07:19:37 -0500
- Cc: gdb-patches at sources dot redhat dot com, cgf at cygnus dot com
- References: <3A6FA46E.1955116E@redhat.com>
Fernando Nasser <fnasser@redhat.com> writes:
: For those who asked, this is the CLI fix to the double parsing of
: filenames when supplied as command line arguments to gdb. [...]
Wow, that's a big patch. Did you consider a simpler approach, where
main.c's getopt parsing loop escapes each string that's intended to be
used as a file / directory name? It could replace cdarg, dirarg[],
execarg, symarg with double-size versions that backslash-escape every
character, in anticipation of the existing catch_command_errors()
parsing.
- FChE