From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.2 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 0D2561F4B4 for ; Thu, 17 Sep 2020 13:53:03 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D65783851C07; Thu, 17 Sep 2020 13:53:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D65783851C07 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1600350781; bh=xbjDJhxTATgBgSO17cB9Wme0Er9kJcaMxgeS8xLG2Bc=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=I4o8SjZeZQzqIlB9zdLC5lVhOBsTet5xKQ1dnBetJ9FwCnP+k+zbNPweBwjh24IBV XHOoVskj7ua9EIFaQTlclOT846bO84hQ/SFxrSCZsgt/cBFW8Io2Rr83f/Yuwl6CKd XY6EZc1bcTaPj6RAyeYro6BGftezT6x1SfgWF8dQ= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by sourceware.org (Postfix) with ESMTP id E5F2F3851C07 for ; Thu, 17 Sep 2020 13:52:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E5F2F3851C07 Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-113-lLVOc3vjNMGLWtoVRUQJ-w-1; Thu, 17 Sep 2020 09:52:55 -0400 X-MC-Unique: lLVOc3vjNMGLWtoVRUQJ-w-1 Received: by mail-qk1-f200.google.com with SMTP id 125so1553636qkh.4 for ; Thu, 17 Sep 2020 06:52:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=xbjDJhxTATgBgSO17cB9Wme0Er9kJcaMxgeS8xLG2Bc=; b=LU9y4n4YRZn0oGGtLA4BexwP5fvgVh7x8AA1MNyx9AEOnq/UAfIUu+4uHvfg5NJsZ2 Kl27svSX6PAleR1AM2wpj1U+1qV7IxWPo6+ex6hNxwDQV8aQ0QWSlHEaZoZpSNDPcefa oE0liWczFLAtRI0Na59kGPskqwAODdHfG2OgE7sgAyzUoSXhNWEEhLcysIGonjAvqYaD GToJnGjfOaXEU/IogniH25IfmvUUC1eUN8HxB7ii1aTl7g1sIQ8bLA0/UYaCeoMFA81n SAS9SAHx/Zebhpmi32m/8gylbxJgu02zTIxUBYoR51Un7nF0GOD0OPiG10uTnP8Kexoz wDtg== X-Gm-Message-State: AOAM5305Q4ZBH78MuPwsCI7k49pwEJcW82KeVdZUQeF3fKm0K/co63UZ XIxh2qvffCBbCBbxQ2acG98THtFEXouAguhyzUm5lahN5K6ei/rwja5QpQJSgdOy83TxPYqPLmI 7r3gOzCvc18gki58kys1Q X-Received: by 2002:ac8:4d05:: with SMTP id w5mr27832467qtv.339.1600350775227; Thu, 17 Sep 2020 06:52:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5IRKxQEhh5CKUxkxpQDZH7dhbRgFqr9ssfZXLKZv6KAqWB5zPIZASOhyDAmcVzMk+brTn+w== X-Received: by 2002:ac8:4d05:: with SMTP id w5mr27832445qtv.339.1600350774997; Thu, 17 Sep 2020 06:52:54 -0700 (PDT) Received: from [192.168.1.16] (198-84-214-74.cpe.teksavvy.com. [198.84.214.74]) by smtp.gmail.com with ESMTPSA id y7sm21057927qtn.11.2020.09.17.06.52.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Sep 2020 06:52:54 -0700 (PDT) Subject: Re: [RFC PATCH 0/3] implement dlmopen hooks for gdb To: "Daniel Walker (danielwa)" References: <20200626193228.1953-1-danielwa@cisco.com> <0f791d3a-20bc-4524-54eb-ce6df108fbff@redhat.com> <20200723184054.GD9875@zorba> <3ff42e45-b394-bf50-38c4-93baecc71497@redhat.com> <20200916161836.GW7261@zorba> <85ee3ea9-039b-a5db-a84e-224924822c79@redhat.com> Organization: Red Hat Message-ID: Date: Thu, 17 Sep 2020 09:52:53 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <85ee3ea9-039b-a5db-a84e-224924822c79@redhat.com> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Carlos O'Donell via Libc-alpha Reply-To: Carlos O'Donell Cc: Florian Weimer , Pedro Alves , "libc-alpha@sourceware.org" , "Jeremy Stenglein \(jstengle\)" , "xe-linux-external\(mailer list\)" Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" On 9/17/20 8:52 AM, Carlos O'Donell wrote: > However, looking at my i686/x86_64 system I don't see DT_DEBUG being > set so I don't know how this works with gdbserver? I could have sworn > we were using DT_DEBUG on x86... if we don't then we should fix that, > but that's another bug. I looked at the wrong thing. We *are* creating a DT_DEBUG entry. The loader fills DT_DEBUG with &_r_debug at runtime. Core files have DT_DEBUG with the runtime &_r_debug value. This means core file can avoid needing to look things up in ld.so. -- Cheers, Carlos.