From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 104927 invoked by alias); 3 Jul 2019 14:49:02 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 104716 invoked by uid 89); 3 Jul 2019 14:49:01 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mx1.suse.de Received: from mx2.suse.de (HELO mx1.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 03 Jul 2019 14:49:00 +0000 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 47F6FAEB2; Wed, 3 Jul 2019 14:48:58 +0000 (UTC) From: Andreas Schwab To: Tom Tromey Cc: Richard Bunt , "gdb-patches\@sourceware.org" , nd Subject: Re: [PATCH] Restore original GDB prompt in define.exp References: <32795df0-3a46-2b7d-3db8-2902e0f55481@arm.com> <87lfxfjiz6.fsf@tromey.com> X-Yow: ..Hmmm...This thing is really VIBRATING! ..It's getting WARM, too! Date: Wed, 03 Jul 2019 14:49:00 -0000 In-Reply-To: <87lfxfjiz6.fsf@tromey.com> (Tom Tromey's message of "Wed, 03 Jul 2019 08:22:37 -0600") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2019-07/txt/msg00069.txt.bz2 On Jul 03 2019, Tom Tromey wrote: >>>>>> "Richard" == Richard Bunt 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."