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] Restore original GDB prompt in define.exp


>>>>> "Richard" == Richard Bunt <Richard.Bunt@arm.com> writes:

Richard> 2019-06-08  Richard Bunt  <richard.bunt@arm.com>
Richard> 	Stephen Roberts  <stephen.roberts@arm.com>

Richard> 	* gdb.base/define.exp: Restore original prompt.

Thank you for the patch.

This is ok.

Richard> -gdb_test_multiple "set prompt \\(gdb\\) " "reset gdb_prompt" {
Richard> +gdb_test_multiple "set prompt $gdb_prompt " "reset gdb_prompt" {

This is peculiar because both the original code and the new code have
backslashes in the "set" command -- gdb_prompt is actually a regexp, not
just a plain string.  But, it works anyhow, I guess something along the
way is ignoring the "\".  So, although it is weird, your patch doesn't
make it any worse.

Tom


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