From 20685e2cca89b4e55a852027f623000119c47a67 Mon Sep 17 00:00:00 2001 From: Lubos Dolezel Date: Wed, 9 Aug 2017 14:36:26 +0200 Subject: [PATCH] Make some DebugSymbol stubs return NULL to fix GDB crashes --- src/DebugSymbols/functions.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/DebugSymbols/functions.c b/src/DebugSymbols/functions.c index 57c784d87..40d17892a 100755 --- a/src/DebugSymbols/functions.c +++ b/src/DebugSymbols/functions.c @@ -16,13 +16,15 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Darling. If not, see . */ +#include +#include void DBGAddDSYMURL(void) { } void DBGBlockPath(void) { } -void DBGCopyDSYMURLForUUID(void) { } -void DBGCopyDSYMURLForUUIDWithOptions(void) { } -void DBGCopyFullDSYMURLForUUIDWithOptions(void) { } -void DBGCopyMatchingUUIDsForURL(void) { } +CFURLRef DBGCopyDSYMURLForUUID(void) { return NULL; } +CFURLRef DBGCopyDSYMURLForUUIDWithOptions(void) { return NULL; } +CFURLRef DBGCopyFullDSYMURLForUUIDWithOptions(void) { return NULL; } +CFArrayRef DBGCopyMatchingUUIDsForURL(void) { return NULL; } void DBGDwarfClose(void) { } void DBGDwarfGetAttributeKey(void) { } void DBGDwarfGetCompileUnitFunctions(void) { } -- 2.51.2