[PATCH] Restore original GDB prompt in define.exp

Tom Tromey tom@tromey.com
Wed Jul 3 14:22:00 GMT 2019


>>>>> "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



More information about the Gdb-patches mailing list