This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Restore original GDB prompt in define.exp
- From: Andreas Schwab <schwab at suse dot de>
- To: Tom Tromey <tom at tromey dot com>
- Cc: Richard Bunt <Richard dot Bunt at arm dot com>, "gdb-patches\@sourceware.org" <gdb-patches at sourceware dot org>, nd <nd at arm dot com>
- Date: Wed, 03 Jul 2019 16:48:57 +0200
- Subject: Re: [PATCH] Restore original GDB prompt in define.exp
- References: <32795df0-3a46-2b7d-3db8-2902e0f55481@arm.com> <87lfxfjiz6.fsf@tromey.com>
On Jul 03 2019, Tom Tromey <tom@tromey.com> wrote:
>>>>>> "Richard" == Richard Bunt <Richard.Bunt@arm.com> writes:
>
> 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 "\".
That's because it's a var_string, not a var_string_noescape.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."