Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@suse.de>
To: Tom Tromey <tom@tromey.com>
Cc: Richard Bunt <Richard.Bunt@arm.com>,
	 "gdb-patches\@sourceware.org" <gdb-patches@sourceware.org>,
	 nd <nd@arm.com>
Subject: Re: [PATCH] Restore original GDB prompt in define.exp
Date: Wed, 03 Jul 2019 14:49:00 -0000	[thread overview]
Message-ID: <mvmv9wjfa1y.fsf@suse.de> (raw)
In-Reply-To: <87lfxfjiz6.fsf@tromey.com> (Tom Tromey's message of "Wed, 03 Jul	2019 08:22:37 -0600")

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


  parent reply	other threads:[~2019-07-03 14:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-03 13:35 Richard Bunt
     [not found] ` <87lfxfjiz6.fsf@tromey.com>
2019-07-03 14:49   ` Andreas Schwab [this message]
2019-07-04 14:22     ` Richard Bunt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=mvmv9wjfa1y.fsf@suse.de \
    --to=schwab@suse.de \
    --cc=Richard.Bunt@arm.com \
    --cc=gdb-patches@sourceware.org \
    --cc=nd@arm.com \
    --cc=tom@tromey.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox