From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id RtlNA423lWBWUAAAWB0awg (envelope-from ) for ; Fri, 07 May 2021 17:56:29 -0400 Received: by simark.ca (Postfix, from userid 112) id F330A1F11C; Fri, 7 May 2021 17:56:28 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED 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 (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 56EA71E01F for ; Fri, 7 May 2021 17:56:28 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CC29F389367E; Fri, 7 May 2021 21:56:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CC29F389367E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620424587; bh=xt9mi46P+bsjaRlJ8RbYtpAgTlDEiWs6sox3mCeWhQc=; h=To:Subject:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=Z8lCMpbKr1Pkp++yAWpuyjp5zgF5o7SWiFJtrY9aL7GR19QKJYFAN2DPol/BzrSbn IDEFQt3BV4Uu9chjZYdFIjp3Yokq26S6brfmEZniRu4s5q9H2nbR0v4yk9ThrV7h7H 7rVi2tweEuxPbDh/DwNeQ5p+/3MxWm29GoyvlaRo= Received: from mail.sergiodj.net (mail.sergiodj.net [IPv6:2607:5300:60:3666::3]) by sourceware.org (Postfix) with ESMTPS id F38DC3844031; Fri, 7 May 2021 21:56:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org F38DC3844031 Received: from localhost (bras-base-toroon1016w-grc-33-76-64-54-140.dsl.bell.ca [76.64.54.140]) by mail.sergiodj.net (Postfix) with ESMTPSA id 668C0A013C; Fri, 7 May 2021 17:56:25 -0400 (EDT) To: Luis Machado via Gdb Subject: Re: GDB shared library tracking with stap probes x _dl_debug_state References: <878s4qb7fj.fsf@oldenburg.str.redhat.com> <07b03137-a083-dada-68da-965779cd41ff@linaro.org> X-URL: http://blog.sergiodj.net Date: Fri, 07 May 2021 17:56:25 -0400 In-Reply-To: <07b03137-a083-dada-68da-965779cd41ff@linaro.org> (Luis Machado via Gdb's message of "Fri, 7 May 2021 18:44:47 -0300") Message-ID: <87bl9mi4xi.fsf@paluero> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Sergio Durigan Junior via Gdb Reply-To: Sergio Durigan Junior Cc: Florian Weimer , doko@debian.org, Luis Machado via Libc-alpha Errors-To: gdb-bounces@sourceware.org Sender: "Gdb" On Friday, May 07 2021, Luis Machado via Gdb wrote: > On 5/7/21 5:44 PM, Florian Weimer wrote: >> * Luis Machado via Libc-alpha: >> >>> That's all fine, but there is one small detail that doesn't work for >>> armhf, and that is discovering if we're dealing with a PC that is arm >>> mode or thumb mode. >> Is it possible to recognize Arm mode vs thumb mode based on the NOP >> encoding at the probe address? >> > > If we know the instruction is a NOP, it might be possible. I think it's guaranteed that the instruction is always going to be a NOP. -- Sergio GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36 Please send encrypted e-mail if possible https://sergiodj.net/