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]
Other format: [Raw text]

Re: RFA: patch to fix gdb/1680


Try "{}" instead of {""}. In these sorts of situtations that works a
lot better.


which is the missing bit of my suggestion.  { and \{ are the same thing
when written in double quotes.  So (since we can't use {} here, because
there is a variable substitution inside gdb_test's argument), use two
backslashes.  That way one will reach the regex engine.

(two many quote characters). Use ``{ ... }'' instead of ``" ... "'' when wrapping things up, it avoids the entire quoting et.al. problem.


Andrew



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