From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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) From: Sergio Durigan Junior To: Luis Machado via Gdb Cc: Florian Weimer , Luis Machado via Libc-alpha , Luis Machado , doko@debian.org 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-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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: , X-List-Received-Date: Fri, 07 May 2021 21:56:27 -0000 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/