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 3C52C1F4B4 for ; Thu, 17 Sep 2020 13:53:38 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6F109388C014; Thu, 17 Sep 2020 13:53:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6F109388C014 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1600350817; bh=V8PgFa1+f4yNwaT/OzRKrunId+wavlnrF0aU91mzbiE=; 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=YOeeunniXsZp8M6RoX30HOit46KNQszVfFHiV24BgzCU1Cz+YEveBOvQ7fZp4OLon /nfKE1r3//9F86pFKljwFzUtHRO7Q2bBKA6ONs4GqJA7FhY55kButqH0y3pIjrAPbb /nUkl9VhKQld6qOy9w6P0fzym9aPlbvi6Ic1Wn5g= Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by sourceware.org (Postfix) with ESMTP id 6351438708CB for ; Thu, 17 Sep 2020 13:53:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 6351438708CB Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-351-fLArUnVrPLS6lfRBJvWLqw-1; Thu, 17 Sep 2020 09:53:32 -0400 X-MC-Unique: fLArUnVrPLS6lfRBJvWLqw-1 Received: by mail-qk1-f198.google.com with SMTP id r128so1543360qkc.9 for ; Thu, 17 Sep 2020 06:53:32 -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:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=V8PgFa1+f4yNwaT/OzRKrunId+wavlnrF0aU91mzbiE=; b=S1TUql9MD5d2u1uKpFW39O5BFhtFhgSvY42PvC9NCAOSGqMAeoTvseproMM3qHl5ov WAcldwKz/23Gq9XreJZAQpXSym7vvwM2wizFn4dKgxMMLpg87L2GxJjxC7cb+ysbN8iu tWFGIR6hfw1XDEfPlmOdYnYPaKK69K3JwbFDqE78ng2VR5SgP+jpGcvXxiwaIKMPLSd/ fpa4c3lLnmK5oqLhYruXQmE3p5ceNjbllp+v9XEnd3QcCo+7G8RTGP750Ya3vD518/Gk H+wjxSeEb0eScJaO4UTCFF2aet0wG4tmeeXD701V5onRi+ttMTioMBNs1eEVqAKZa/62 drPA== X-Gm-Message-State: AOAM533lSlNP0Jg603fPybfJqI+RwC6QU5c3c3Y1cJxquHdqOSxp2DRc PnWoby7U/FZ1pzHRexP+D6V1evLO3YvGft2PDHeEyA68MuayerRXV+z1iFY/mw3BlsfG78BmVi0 ov0HezBo73X+/7fAjA4bf X-Received: by 2002:ac8:71cb:: with SMTP id i11mr28220402qtp.108.1600350811884; Thu, 17 Sep 2020 06:53:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweSyYG6Secwl3LTzBo3YpW3WjHWP3c1CmkgNAGIZt6kF1YehReB4TZG8qj2Ad9lZQP1Qar1A== X-Received: by 2002:ac8:71cb:: with SMTP id i11mr28220387qtp.108.1600350811678; Thu, 17 Sep 2020 06:53:31 -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 e13sm21009482qtr.85.2020.09.17.06.53.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Sep 2020 06:53:31 -0700 (PDT) Subject: Re: [RFC PATCH 0/3] implement dlmopen hooks for gdb To: Florian Weimer 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> <871rj0imo8.fsf@oldenburg2.str.redhat.com> Organization: Red Hat Message-ID: <5ce2d889-9eea-4c53-8bba-d8216f2bf513@redhat.com> Date: Thu, 17 Sep 2020 09:53:30 -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: <871rj0imo8.fsf@oldenburg2.str.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: Pedro Alves , "xe-linux-external\(mailer list\)" , "libc-alpha@sourceware.org" , "Jeremy Stenglein \(jstengle\)" Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" On 9/17/20 8:59 AM, Florian Weimer wrote: > * Carlos O'Donell: > >> You will always have .dynsym with a definition for _r_debug_dlmopen. > > Note that this doesn't work if you just have a core file. In order to > find _r_debug (or _r_debug_dlmopen), a debugger needs the exact same > copy of ld.so that was used by the executable, otherwise the symbol > cannot be found in the image. You are correct. I followed up on my own email regarding this. So in the end to get process and core file debugging we'll need: * _r_debug_dlmopen * DT_DEBUG_DLMOPEN -- Cheers, Carlos.