From 99ec31dfdca5603b61d3836f62b80e5a3bc591a1 Mon Sep 17 00:00:00 2001 From: Fredrik Ljungdahl Date: Thu, 7 May 2020 00:12:35 +0200 Subject: [PATCH] Allow more than 1 symbol per debug address --- Core/symbol_hash.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/Core/symbol_hash.c b/Core/symbol_hash.c index 33e3399..75a7837 100644 --- a/Core/symbol_hash.c +++ b/Core/symbol_hash.c @@ -28,8 +28,6 @@ GB_bank_symbol_t *GB_map_add_symbol(GB_symbol_map_t *map, uint16_t addr, const c { size_t index = GB_map_find_symbol_index(map, addr); - if (index < map->n_symbols && map->symbols[index].addr == addr) return NULL; - map->symbols = realloc(map->symbols, (map->n_symbols + 1) * sizeof(map->symbols[0])); memmove(&map->symbols[index + 1], &map->symbols[index], (map->n_symbols - index) * sizeof(map->symbols[0])); map->symbols[index].addr = addr;