From 5154ab8dbb5374da04cd9f8e2004279700a40881 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 3 Jan 2016 12:48:46 -0800 Subject: [PATCH] Find code library, even when relative in debugger. --- Execute.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Execute.cpp b/Execute.cpp index 36c400a..e11542a 100644 --- a/Execute.cpp +++ b/Execute.cpp @@ -2127,8 +2127,11 @@ const char *CYPoolLibraryPath(CYPool &pool) { *slash = '\0'; slash = strrchr(lib, '/'); - if (slash != NULL && strcmp(slash, "/.libs") == 0) - *slash = '\0'; + if (slash != NULL) { + if (strcmp(slash, "/.libs") == 0) + *slash = '\0'; + } else if (strcmp(lib, ".libs") == 0) + return "."; return lib; } -- 2.47.2