From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id +oAzGQEy+F9yKAAAWB0awg (envelope-from ) for ; Fri, 08 Jan 2021 05:20:49 -0500 Received: by simark.ca (Postfix, from userid 112) id 567631E99A; Fri, 8 Jan 2021 05:20:49 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=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 5956D1E4F4; Fri, 8 Jan 2021 05:20:48 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2C406397282A; Fri, 8 Jan 2021 10:20:47 +0000 (GMT) Received: from dedi548.your-server.de (dedi548.your-server.de [85.10.215.148]) by sourceware.org (Postfix) with ESMTPS id D027B384A01A for ; Fri, 8 Jan 2021 10:20:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D027B384A01A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embedded-brains.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=sebastian.huber@embedded-brains.de Received: from sslproxy05.your-server.de ([78.46.172.2]) by dedi548.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1kxost-0000Bg-4A for gdb-patches@sourceware.org; Fri, 08 Jan 2021 11:20:43 +0100 Received: from [82.100.198.138] (helo=mail.embedded-brains.de) by sslproxy05.your-server.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1kxost-000XR8-1W for gdb-patches@sourceware.org; Fri, 08 Jan 2021 11:20:43 +0100 Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id BDB5E2A1610 for ; Fri, 8 Jan 2021 11:20:42 +0100 (CET) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id j2SX8F7dCtpr for ; Fri, 8 Jan 2021 11:20:42 +0100 (CET) Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 723972A165B for ; Fri, 8 Jan 2021 11:20:42 +0100 (CET) X-Virus-Scanned: amavisd-new at zimbra.eb.localhost Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ofC4rxZIcWCo for ; Fri, 8 Jan 2021 11:20:42 +0100 (CET) Received: from shuber-nb-linux.eb.localhost (unknown [10.10.171.18]) by mail.embedded-brains.de (Postfix) with ESMTPSA id 53ABC2A1610 for ; Fri, 8 Jan 2021 11:20:42 +0100 (CET) Subject: Re: [PATCH v2] gdb/sim: add support for exporting memory map To: gdb-patches@sourceware.org References: <20210106060433.12043-1-vapier@gentoo.org> <20210106110430.23136-1-vapier@gentoo.org> <59e456e1-b308-edb1-2cea-eba79e6536e7@embedded-brains.de> <20210108060509.GL7494@vapier> From: Sebastian Huber Message-ID: Date: Fri, 8 Jan 2021 11:20:41 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20210108060509.GL7494@vapier> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Authenticated-Sender: smtp-embedded@poldinet.de X-Virus-Scanned: Clear (ClamAV 0.102.4/26042/Thu Jan 7 13:37:55 2021) X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" On 08/01/2021 07:05, Mike Frysinger wrote: > On 08 Jan 2021 06:17, Sebastian Huber wrote: >> On 06/01/2021 12:04, Mike Frysinger via Gdb-patches wrote: >>> This allows gdb to quickly dump & process the memory map that the sim >>> knows about. This isn't fully accurate, but is largely limited by th= e >>> gdb memory map format. While the sim supports RWX bits, gdb can only >>> handle RW or RO regions. >>> --- >>> gdb/remote-sim.c | 18 +++++++++++++ >>> include/gdb/remote-sim.h | 9 +++++++ >>> sim/common/sim-core.c | 57 ++++++++++++++++++++++++++++++++++++= ++++ >>> 3 files changed, 84 insertions(+) >> I think this change broke the powerpc simulator (target "powerpc-rtems= 6" >> for example): >> >> =C2=A0 CXXLD=C2=A0 gdb >> /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/= ld: >> remote-sim.o: in function `gdbsim_target::memory_map()': >> /tmp/sh/src/rsb/rtems/build/powerpc-rtems6-gdb-0f8e278-x86_64-linux-gn= u-1/build/gdb/../../sourceware-mirror-binutils-gdb-0f8e278/gdb/remote-sim= .c:1283: >> undefined reference to `sim_memory_map' > indeed, sorry about that. i've pushed this fix. > -mike > > [PATCH] sim: ppc: stub out sim_memory_map > > Not clear how to implement this in the ppc-specific sim, so just > stub it out. This is as good as it was previously. Thanks, this fixed the problem. --=20 embedded brains GmbH Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.huber@embedded-brains.de phone: +49-89-18 94 741 - 16 fax: +49-89-18 94 741 - 08 Registergericht: Amtsgericht M=C3=BCnchen Registernummer: HRB 157899 Vertretungsberechtigte Gesch=C3=A4ftsf=C3=BChrer: Peter Rasmussen, Thomas= D=C3=B6rfler Unsere Datenschutzerkl=C3=A4rung finden Sie hier: https://embedded-brains.de/datenschutzerklaerung/