From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4026 invoked by alias); 25 Aug 2014 16:30:31 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 4008 invoked by uid 89); 25 Aug 2014 16:30:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mailuogwhop.emc.com Received: from mailuogwhop.emc.com (HELO mailuogwhop.emc.com) (168.159.213.141) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 25 Aug 2014 16:30:28 +0000 Received: from maildlpprd05.lss.emc.com (maildlpprd05.lss.emc.com [10.253.24.37]) by mailuogwprd03.lss.emc.com (Sentrion-MTA-4.3.0/Sentrion-MTA-4.3.0) with ESMTP id s7PGUOLD021845 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 25 Aug 2014 12:30:24 -0400 X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd03.lss.emc.com s7PGUOLD021845 X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd03.lss.emc.com s7PGUOLD021845 Received: from mailhub.lss.emc.com (mailhubhoprd05.lss.emc.com [10.254.222.129]) by maildlpprd05.lss.emc.com (RSA Interceptor); Mon, 25 Aug 2014 12:30:04 -0400 Received: from usendtaylorx2l.lss.emc.com (usendtaylorx2l.lss.emc.com [10.243.10.188]) by mailhub.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id s7PGU4oO027176; Mon, 25 Aug 2014 12:30:04 -0400 Received: by usendtaylorx2l.lss.emc.com (Postfix, from userid 26043) id 854AD5D264E; Mon, 25 Aug 2014 12:30:02 -0400 (EDT) Received: from usendtaylorx2l (localhost [127.0.0.1]) by usendtaylorx2l.lss.emc.com (Postfix) with ESMTP id D23F45D1E82; Mon, 25 Aug 2014 12:30:02 -0400 (EDT) To: Eli Zaretskii cc: "gdb@sourceware.org" Subject: Re: possible gdb agent expression extension In-reply-to: <83lhqclibe.fsf@gnu.org> References: <20426.1406558341@usendtaylorx2l> <12648.1408745258@usendtaylorx2l> <83fvgnmzk7.fsf@gnu.org> <7594.1408975383@usendtaylorx2l> <83lhqclibe.fsf@gnu.org> Comments: In-reply-to Eli Zaretskii message dated "Mon, 25 Aug 2014 11:06:45 -0400." Date: Mon, 25 Aug 2014 16:30:00 -0000 Message-ID: <9155.1408984202@usendtaylorx2l> From: David Taylor X-EMM-MHVC: 1 X-RSA-Classifications: DLM_1, public X-Sentrion-Hostname: mailuogwprd03.lss.emc.com X-IsSubscribed: yes X-SW-Source: 2014-08/txt/msg00120.txt.bz2 Eli Zaretskii wrote: > > Date: Mon, 25 Aug 2014 10:03:03 -0400 > > From: David Taylor > > > > > That @result{} at the end, with nothing after it, does look strange: > > > what "result" does this give? > > > > I was largely copying snippets I found nearby in the agentexpr.texi > > file. They are of the form: > > > > : > > ==> > > > > Right, but in your case there's nothing after ==>, which is > unexpected. > > Thanks. Right. Like if_goto (0x20) offset : a ==> goto (0x21) offset : ==> trace (0x0c) : addr size ==> tracenz (0x2f) : addr size ==> printf (0x34) numargs string : ==> end (0x27) : ==> it means that inputs -- if any -- are consumed; nothing is pushed on the stack. [Aside: the documentation is missing the ':' on tracenz and printf. For that matter, documentation for printf is missing some other stuff, too.]