From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18719 invoked by alias); 23 Jun 2015 16:48:26 -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 18705 invoked by uid 89); 23 Jun 2015 16:48:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-oi0-f46.google.com Received: from mail-oi0-f46.google.com (HELO mail-oi0-f46.google.com) (209.85.218.46) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 23 Jun 2015 16:48:22 +0000 Received: by oigx81 with SMTP id x81so11342945oig.1 for ; Tue, 23 Jun 2015 09:48:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=bmCoCtmaXorwK+2wvcAad1H9eM1Ci+sf5kJFsRYMd+E=; b=D6ix4KI8oY9VZ24B3/tqrxXZZpJfG/dA3ladtDOL0bHuTGAbURKgmRBozvxlo+R6I9 2yvBe3EfHe+gh+s/GzMcuvzObVGuxVJv8e2MVPv6iEY2rpIq4oz/il0UU5lvErGPUo/s H+8cai7SODPdR3mmqVDAoF7Ynnyffvy3N5HIObm9yEpKAsUVoUaaKd8mPl6MrHpjry0L /BDOTbncYIED8f/FIjEEd5vm1wrLfMjeNKl1ED/PVlqRF6hmEh7IEHvsnD5XrcgHIOTp KnvqndhMqz8E2/CFPqTH99hQYsA71SAU5NVa6tucAKzCzkeqHCh3wCoePtS9Q2OZ2N27 2ZUw== X-Gm-Message-State: ALoCoQmKGNToF7h4xVc/Ici4C7AX48ORMYkIuttrrW1kLqRxyf5zvQ7HFJkVf9rB6He/n3PQ58/A MIME-Version: 1.0 X-Received: by 10.60.101.195 with SMTP id fi3mr30680528oeb.65.1435078100431; Tue, 23 Jun 2015 09:48:20 -0700 (PDT) Received: by 10.182.89.99 with HTTP; Tue, 23 Jun 2015 09:48:20 -0700 (PDT) In-Reply-To: References: <1434572241-16019-1-git-send-email-patrick@parcs.ath.cx> <55828A13.8030703@redhat.com> Date: Tue, 23 Jun 2015 16:48:00 -0000 Message-ID: Subject: Re: [PATCH] Test the interaction between GDBHISTSIZE and .gdbinit From: Doug Evans To: Patrick Palka Cc: Pedro Alves , "gdb-patches@sourceware.org" Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-06/txt/msg00486.txt.bz2 On Thu, Jun 18, 2015 at 9:47 AM, Patrick Palka wrote: > Here is an implementation of save_vars (bad name I know) which can > successfully replace the manual saving/restoring of globals done in > gdbinit-history.exp, gdbhistsize-history.exp and readline.exp. (TCL > sure is cool.) Emacs has save-excursion so there is some precedent for the naming choice. LGTM