This is the mail archive of the gdb-patches@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: [PATCH] Fix PR 15692 -dprintf-insert does not accept double quotes


>>>>> "Hui" == Hui Zhu <teawater@gmail.com> writes:

Hui> +	if { $args == "call" || $args == "fprintf" } {
Hui> +	    set foobarbazqux "\"foobarbazqux\""
Hui> +	} else {
Hui> +	    set foobarbazqux "\\\\\"foobarbazqux\\\\\""
Hui> +	}

Why are different regexps needed for these cases?
I thought the output was supposed to be the same in all situations.

Other than this issue the patch is ok.

Tom


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