From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26349 invoked by alias); 16 Mar 2014 16:22:22 -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 26334 invoked by uid 89); 16 Mar 2014 16:22:21 -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-ve0-f181.google.com Received: from mail-ve0-f181.google.com (HELO mail-ve0-f181.google.com) (209.85.128.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sun, 16 Mar 2014 16:22:20 +0000 Received: by mail-ve0-f181.google.com with SMTP id oy12so4812790veb.12 for ; Sun, 16 Mar 2014 09:22:18 -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=fE7zDyLzXBNsPradQ08Y5jhiwM1Wdl2qoaKlfx1TB+U=; b=gS+cxSWUKCCo1zTq315NxODDOmEEPTMzOoqi3Z3rkIpmEVdMkYzldtpbAnCfd6izl3 E7lVILULp1qpT20wRhiYhsy2+nSSvGszbybzKzVvrQAnovENJuwYhHNr89de91/PZ9dj foUUt+UuOyriZAjDxzYyt7GTEB90YAwfNoe3Zws1aSBSRUOdufIYyq+J+H5uk17wi6Sg dysWgFYxGXd6iIryQfbDt/EYLH0NcPB3jAG7FHbPxxFlSadIyhlmDPw8D1uvsfVdtJUj nKMetn7Q5rlXEeUJoIV2+dL3+4PSk5rnrShs5TpSo9VOn1EcfIU5AW2fkntg4oBWHP1Y atdg== X-Gm-Message-State: ALoCoQmBrWtjJBl7aqDltms/9MF7wlnjHFv4fSGuqjtDQwdYJdSrhq3OHDSwjhYj1uT5XDXhBJdGSkcreKVQ8Kgot2J1dHY4BS3lcdGqsaWqJyOCHTx4TSGRBvq/x+6DBMgWsx8LR090BoabSQozW54X804sy3ydo8aUlvlj3eVEdhjd9CqhTrTmRU3siMwvinkQ5QEhtQvClaOslM8ui03hVJ09t3jdgw== MIME-Version: 1.0 X-Received: by 10.53.11.37 with SMTP id ef5mr29920vdd.62.1394986938067; Sun, 16 Mar 2014 09:22:18 -0700 (PDT) Received: by 10.52.13.101 with HTTP; Sun, 16 Mar 2014 09:22:17 -0700 (PDT) In-Reply-To: References: <7365721.BnaR1nHazz@lt-gergap> <83siqjb50u.fsf@gnu.org> Date: Sun, 16 Mar 2014 16:22:00 -0000 Message-ID: Subject: Re: New feature "source-id" From: Doug Evans To: Eli Zaretskii Cc: Gerhard Gappmeier , gdb-patches Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-03/txt/msg00353.txt.bz2 On Sat, Mar 15, 2014 at 7:34 PM, Doug Evans wrote: > > Note that one concern I have is that it may be that some sites will > want to have some of gdb's state updated when source files are > automagically fetched. E.g., maybe one would want to update the > source search path. Maybe not, but at any rate I don't want this > feature to preclude doing things like that, and one can't do that if > the feature works by running an external program via popen. As a data point, another way to go is to just have a convention for some global variables in the binary. With the debug info gdb can access them, and they could contain everything that would be in the .note section. I don't have a preference, per se. I just mention it as a possibility, and if one went that route then doing this in Python/Guile would be while perhaps not required certainly easy.