From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13615 invoked by alias); 18 Mar 2014 17:57:43 -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 13601 invoked by uid 89); 18 Mar 2014 17:57:43 -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-f171.google.com Received: from mail-vc0-f171.google.com (HELO mail-vc0-f171.google.com) (209.85.220.171) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 18 Mar 2014 17:57:42 +0000 Received: by mail-vc0-f171.google.com with SMTP id lg15so7860501vcb.30 for ; Tue, 18 Mar 2014 10:57:40 -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=0tE2C0yQTCctClssCe/58vXQKjB1cgTqOUmSwY0fWLY=; b=Qj2ok3S9v9A9wrgLsQXsdZiAmI0sr09eveW5HVGSUsJGwLLdPOa/0ZFH/KB6WWulho jnHcs/BcW3B6YaTnb8+LhKBt9ioz640kRq/egT8JeRflXxqOBFPtyEGvk6GqJYaLLOe3 XIz1oM1u4UEw0KbOSnhI0HOSKRUw0e2yYW/xJHssO0C2VMFD+9x3FJEk1gc9b3CLWjzQ 00p2eCZx3KP6sAzCXmtHknjhmumYRM1HsOxAhTD5FZWOglFvqau2zPUlUKq+YWZsGeMo sixKyNYFkvnU4nHj/WCu02nVidJanZ8PktUzN9CRBtZtTNZXUR8SF0PtheQFZqSwqBiW NPtw== X-Gm-Message-State: ALoCoQm0IFUwInb+PgLrZgq/FSxI+ebkTxI++bngWtlkqW49KxfUcoyYe4uopoIZaNQJwldhg7k0Uz092+cmJmcw2vHDd8I9pxepItwcvFkbax5F5M102PQz5yGp9lH8oHypGAIsfkSQwApe28NflpJLohLIApXXV3BaheN1Y2lKa4LkNVtKPmFHy6EJkyUfPHiJsvwombP5WWTj0ENyIXTA30xbYyot/Q== MIME-Version: 1.0 X-Received: by 10.220.188.10 with SMTP id cy10mr2512802vcb.36.1395165459942; Tue, 18 Mar 2014 10:57:39 -0700 (PDT) Received: by 10.52.13.101 with HTTP; Tue, 18 Mar 2014 10:57:39 -0700 (PDT) In-Reply-To: <2AC155A009400B4C8B05D518E4819AEF1A347F4C@exchange10.valvesoftware.com> References: <7365721.BnaR1nHazz@lt-gergap> <10414444.6eOdp1cvY6@ws-gergap> <2739108.yJ4Vgng9gv@ws-gergap> <2AC155A009400B4C8B05D518E4819AEF1A347889@exchange10.valvesoftware.com> <2AC155A009400B4C8B05D518E4819AEF1A347F4C@exchange10.valvesoftware.com> Date: Tue, 18 Mar 2014 17:57:00 -0000 Message-ID: Subject: Re: New feature "source-id" From: Doug Evans To: Bruce Dawson Cc: Gerhard Gappmeier , gdb-patches Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-03/txt/msg00428.txt.bz2 On Tue, Mar 18, 2014 at 10:44 AM, Bruce Dawson wrote: > I better understand what you are doing now with the .c file now. Previously I had assumed that you would be compiling it and then linking the .o file along with all of the others. > > Now I am confused about *why* you are compiling it. If you have a text file that has the source information then why not just add it as a custom section directly? What is the value in compiling it into a .o file first? More control over how the data can appear in the resulting section. It's hardly an issue worth quibbling over. I will leave it to the app developer / whatever to decide how best to accomplish this. The high order bit for me for the task at hand is that gdb doesn't need to care.