From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8797 invoked by alias); 27 Jul 2012 03:45:55 -0000 Received: (qmail 8788 invoked by uid 22791); 27 Jul 2012 03:45:53 -0000 X-SWARE-Spam-Status: No, hits=-6.1 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,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; Fri, 27 Jul 2012 03:45:21 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q6R3jLxG027892 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 26 Jul 2012 23:45:21 -0400 Received: from valrhona.uglyboxes.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q6R3jJ1V019940 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 26 Jul 2012 23:45:20 -0400 Message-ID: <50120ECF.4020709@redhat.com> Date: Fri, 27 Jul 2012 03:45:00 -0000 From: Keith Seitz User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 MIME-Version: 1.0 To: "gdb-patches@sourceware.org ml" Subject: [RFA 0/5] Explicit linespecs Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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-07/txt/msg00659.txt.bz2 Hi, For some time now, I've been toying with mi/13139, which is a feature request for "explicit linespecs" -- linespecs which bypass the linespec parser. This might provide some relief for very large applications where linespec can get egregiously slow. To cut to the chase, they may be used by either CLI or MI right now. For the CLI, the generic syntax is: -source XXX -function XXX -label XXX -offset XXX -address XXX The option names may be truncated, e.g., "break -s XX -func YY". One of the side effects of this patchset is that ALL linespecs (for breakpoints) are converted to explicit after parsing. I've chosen to implement this as an extension to the breakpoint API. That is, I've added (yet another) parameter to create_breakpoint and several internal breakpoint functions. This patch is split into five smaller patches: 1) els-refactor-linespec-parsing.patch : This patch may be applied independently of other patches. It refactors some code in linespec.c to facilitate sharing of code. 2) els-breakpoint-api.patch : This patch does all the mechanical work of adding the new explicit linespec parameter to the required breakpoint API functions and updates all callers. This patch is also a nop and may be applied independently of the others. 3) els-explicit-linespecs.patch : This is the patch where the real work of explicit linespecs is done, including CLI/MI lexing/parsing functions. 4) els-tests.patch : New test suite additions for the feature. 5) els-doc.patch : Documentation changes for the new feature. While patches 1 & 2 may be applied independently, I am not advocating that approach. I consider this patchset all-or-nothing. Patch #3 must be applied /after/ #2. While a bit inconvenient, I thought it nicer to separate the huge mechanical change in #2 from the real guts of the patch, which is #3. I apologize if this aggravates anyone. I have tested the patchset on x86_64-linux native and native-gdbserver, and all patches are regression-free with --enable-targets=all. Keith