From 7a9bd3b4e219c5cd892757f86c2075ec67333903 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 1 Feb 2021 23:51:24 -0500 Subject: [PATCH] sim: erc32/m32c/rl78: add sim_memory_map stub for gdb 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. --- sim/erc32/ChangeLog | 4 ++++ sim/erc32/interf.c | 6 ++++++ sim/m32c/ChangeLog | 4 ++++ sim/m32c/gdb-if.c | 6 ++++++ sim/rl78/ChangeLog | 4 ++++ sim/rl78/gdb-if.c | 6 ++++++ 6 files changed, 30 insertions(+) diff --git a/sim/erc32/ChangeLog b/sim/erc32/ChangeLog index 108b6aeeba5..6d2fc63d1e5 100644 --- a/sim/erc32/ChangeLog +++ b/sim/erc32/ChangeLog @@ -1,3 +1,7 @@ +2021-02-06 Mike Frysinger + + * interf.c (sim_memory_map): Define. + 2021-02-06 Mike Frysinger * configure: Regenerate. diff --git a/sim/erc32/interf.c b/sim/erc32/interf.c index 5dd464b0ce7..ca2e9faea21 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/ChangeLog b/sim/m32c/ChangeLog index ed4e0727efe..d4ca1144176 100644 --- a/sim/m32c/ChangeLog +++ b/sim/m32c/ChangeLog @@ -1,3 +1,7 @@ +2021-02-06 Mike Frysinger + + * gdb-if.c (sim_memory_map): Define. + 2021-02-06 Mike Frysinger * configure: Regenerate. diff --git a/sim/m32c/gdb-if.c b/sim/m32c/gdb-if.c index 5ada0b0bc17..92e447f17fa 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/ChangeLog b/sim/rl78/ChangeLog index 2aa6a9bc91a..8d43bfd8590 100644 --- a/sim/rl78/ChangeLog +++ b/sim/rl78/ChangeLog @@ -1,3 +1,7 @@ +2021-02-06 Mike Frysinger + + * gdb-if.c (sim_memory_map): Define. + 2021-02-06 Mike Frysinger * configure: Regenerate. diff --git a/sim/rl78/gdb-if.c b/sim/rl78/gdb-if.c index 320db34f436..56717917e55 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.2