From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11059 invoked by alias); 1 Aug 2012 10:14:09 -0000 Received: (qmail 11015 invoked by uid 22791); 1 Aug 2012 10:14:08 -0000 X-SWARE-Spam-Status: No, hits=-7.5 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 01 Aug 2012 10:13:50 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q71ADnA6001392 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 1 Aug 2012 06:13:49 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q71ADlLl028069; Wed, 1 Aug 2012 06:13:48 -0400 Message-ID: <5019015B.7070700@redhat.com> Date: Wed, 01 Aug 2012 10:14:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: Keith Seitz CC: Eli Zaretskii , gdb-patches@sourceware.org Subject: Re: [RFA 0/5] Explicit linespecs References: <50120ECF.4020709@redhat.com> <834notjwk1.fsf@gnu.org> <50158603.60503@redhat.com> In-Reply-To: <50158603.60503@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 X-SW-Source: 2012-08/txt/msg00011.txt.bz2 On 07/29/2012 07:50 PM, Keith Seitz wrote: > On 07/27/2012 04:03 AM, Eli Zaretskii wrote: > >> What exactly does the "offset" option do? Is it a line offset, or is >> it measured in other units? If it's a line offset, then why not call >> it "-line"? If "offset" means it's a relative line offset, then what >> is it relative to? > > It is completely analogous to the linespec parser. It could be an absolute line number (if -source given) or relative (if -function/-label). [Note that function/label relative offsets have not been implemented yet -- right now they are simply ignored (per maintainers request).] ENOEXAMPLES :-) It might be good to check what other debuggers spell these options. > > I can certainly rename the option to be more user-friendly. I just used the same terminology that is used inside the parser. > >> Also, the above doesn't seem to cover the magical '*function' location >> spec. > > That's the -address option. > > Keith -- Pedro Alves