From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2952 invoked by alias); 25 May 2019 10:37:04 -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 2936 invoked by uid 89); 25 May 2019 10:37:04 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:697, H*M:home, H*MI:home X-HELO: mail-out.m-online.net Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 25 May 2019 10:37:02 +0000 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 45B06N2vYkz1rXvC; Sat, 25 May 2019 12:36:59 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 45B06M61fKz1qqkD; Sat, 25 May 2019 12:36:59 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id WU56SymhfzfN; Sat, 25 May 2019 12:36:59 +0200 (CEST) Received: from igel.home (ppp-46-244-160-177.dynamic.mnet-online.de [46.244.160.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sat, 25 May 2019 12:36:59 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 63D8D2C1194; Sat, 25 May 2019 12:36:58 +0200 (CEST) From: Andreas Schwab To: Pedro Alves Cc: Sergio Durigan Junior , gdb-patches@sourceware.org Subject: Re: [PATCH 13/24] Make "print" and "compile print" support -OPT options References: <20190522205327.2568-1-palves@redhat.com> <20190522205327.2568-14-palves@redhat.com> <87pno7ocpk.fsf@redhat.com> <8564ae6d-7e46-7317-8636-eefe97db7814@redhat.com> X-Yow: I'm not available for comment.. Date: Sat, 25 May 2019 10:37:00 -0000 In-Reply-To: <8564ae6d-7e46-7317-8636-eefe97db7814@redhat.com> (Pedro Alves's message of "Sat, 25 May 2019 11:10:18 +0100") Message-ID: <875zpy4y7p.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2019-05/txt/msg00577.txt.bz2 On Mai 25 2019, Pedro Alves wrote: > BTW, one command that currently accepts "-" options _and_ works with > arbitrary expressions is the watch command: > > (gdb) help watch > Set a watchpoint for an expression. > Usage: watch [-l|-location] EXPRESSION > > Note how it's impossible to watch an expression named "-l". > We could solve that by supporting "--" in the watch command, so > you'd type: > > (gdb) watch -- -l Or watch (-l) Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."