From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 9AEE13854802 for ; Tue, 2 Feb 2021 04:53:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9AEE13854802 Received: from vapier.lan (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id A3686341389; Tue, 2 Feb 2021 04:53:35 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH] sim: erc32/m32c/rl78: add sim_memory_map stub for gdb Date: Mon, 1 Feb 2021 23:53:33 -0500 Message-Id: <20210202045333.26065-1-vapier@gentoo.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, 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-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: , X-List-Received-Date: Tue, 02 Feb 2021 04:53:37 -0000 These ports don't use the common sim core, so they weren't providing a sim_memory_map for gdb, so they failed to link with the new memory map logic added for the sim. Add stubs to fix. erc32/ * interf.c (sim_memory_map): Define. m32c/ * gdb-if.c (sim_memory_map): Define. rl78/ * gdb-if.c (sim_memory_map): Define. --- sim/erc32/interf.c | 6 ++++++ sim/m32c/gdb-if.c | 6 ++++++ sim/rl78/gdb-if.c | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/sim/erc32/interf.c b/sim/erc32/interf.c index 5dd464b0ce76..ca2e9faea217 100644 --- a/sim/erc32/interf.c +++ b/sim/erc32/interf.c @@ -465,6 +465,12 @@ sim_complete_command (SIM_DESC sd, const char *text, const char *word) return NULL; } +char * +sim_memory_map (SIM_DESC sd) +{ + return NULL; +} + #if 0 /* FIXME: These shouldn't exist. */ int diff --git a/sim/m32c/gdb-if.c b/sim/m32c/gdb-if.c index 5ada0b0bc17e..92e447f17faa 100644 --- a/sim/m32c/gdb-if.c +++ b/sim/m32c/gdb-if.c @@ -707,6 +707,12 @@ sim_complete_command (SIM_DESC sd, const char *text, const char *word) return NULL; } +char * +sim_memory_map (SIM_DESC sd) +{ + return NULL; +} + void sim_info (SIM_DESC sd, int verbose) { diff --git a/sim/rl78/gdb-if.c b/sim/rl78/gdb-if.c index 320db34f436a..56717917e552 100644 --- a/sim/rl78/gdb-if.c +++ b/sim/rl78/gdb-if.c @@ -603,3 +603,9 @@ sim_complete_command (SIM_DESC sd, const char *text, const char *word) { return NULL; } + +char * +sim_memory_map (SIM_DESC sd) +{ + return NULL; +} -- 2.30.0