This is the mail archive of the gdb-patches@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]

Re: RFC: Fix to double parsing of filenames in GDB command line



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

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