From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17879 invoked by alias); 15 Mar 2014 17:32:18 -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 17867 invoked by uid 89); 15 Mar 2014 17:32:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mail-vc0-f177.google.com Received: from mail-vc0-f177.google.com (HELO mail-vc0-f177.google.com) (209.85.220.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 15 Mar 2014 17:32:15 +0000 Received: by mail-vc0-f177.google.com with SMTP id if17so4051812vcb.22 for ; Sat, 15 Mar 2014 10:32:12 -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=f3kGFv+n3tyqSLVizEfszvVTwG8Hs6lghWelApdnE0I=; b=Ty3XSBZUX/yPaU70BkB4zRAjNwkpOJihPJsfh5nxsdWqSLNOUn6vpq5IQd/jVAyeG6 4aCzAsTJ3NqEKFrJoUUuND1ePqSzlaE6DfNY0mJ8cwSIaM5ZRQrie4Zax2jLfakThNH5 dGsiuOK2KYdhSQdzzz+OM2LmDVZ9lSwHcMaNG0RKa3JJXU4+byq+FI+5BFq0L2vNBrlf Qe0kr+M1WDF5uoEEWBnS5at3htXSyYzz/Yhp6+RgZwgoEWS9Ok59uRSNpViagKHWDF/i 2OEm9uJum/dtNYAuuJXjOfEv5FqsdF93LeeJyeIwIGU+7wwVutj3uDvFp2KsLhE5miRQ jYjQ== X-Gm-Message-State: ALoCoQkbbDwE5DBU78j/dBzIKBUBn8/YYO2KjJ5L2jBWlT+xBE6xxfVwYl5N3pn+y9HlnqfNVTZsEtz+TJLwMVI6VJ2vSvfBFH+hAFVhRiRRlEKVDpjs0H/EShScxz6z6XFMAz5sSFsHAbig40261msUEEvKfNW2D2uuNhHnq/OcZO1TjqxCDvbuVA0tYJS94ODQ1Y1KXJl33rE1Os1iIggGZPpB7VViCA== MIME-Version: 1.0 X-Received: by 10.58.57.67 with SMTP id g3mr11918801veq.3.1394904732708; Sat, 15 Mar 2014 10:32:12 -0700 (PDT) Received: by 10.52.13.101 with HTTP; Sat, 15 Mar 2014 10:32:12 -0700 (PDT) In-Reply-To: <7365721.BnaR1nHazz@lt-gergap> References: <7365721.BnaR1nHazz@lt-gergap> Date: Sat, 15 Mar 2014 17:32:00 -0000 Message-ID: Subject: Re: New feature "source-id" From: Doug Evans To: Gerhard Gappmeier Cc: gdb-patches Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-03/txt/msg00341.txt.bz2 On Sat, Mar 15, 2014 at 3:49 AM, Gerhard Gappmeier wrote: > Hi all, > > I've implemented a new feature that I call "source-id" analogous to the > existing "build-id" functionality. Unlike fetching debug symbols automatically > using build-ids this feature can fetch the correct source code from a version > control system when debugging. > The idea is that when you need to debug an executable or opening a coredump of > an executable that was built with "source-id" and "build-id" enabled it just > works. You don't need to care about how and where to get debug symbols and the > correct sources. > > How does this works? The technical details are explained in the README.md > hosted in my test repository: https://github.com/gergap/source-id > (The content of README.md is shown on this site nicely formatted) > This repository contains an example that I used to test the new feature. > It also contains example "source-fetch-scripts" that are used by GDB to fetch > the source code. This should probably be bundled with GDB itself. Just give me > a hint where the best location would be to add these files in the GDB repo. > > The GDB patches you find here: https://github.com/gergap/binutils-gdb > on the branch gergap/source-id-feature > > What has been changed in GDB: > * add support for a new .note section ".note.gnu.source-id" to be able to > store and retrieve the VCS data from an ELF file. > * add new gdb commands: "set source-lookup