From 4e7de0487cd028b9e50aabaee8d2ce3f317bc2fe Mon Sep 17 00:00:00 2001 From: danitorregrosa Date: Fri, 7 Jul 2017 00:32:02 +0200 Subject: [PATCH] Fix #7851 - get filesystem abspath instead of URI (#7869) * Fix #7851 - get filesystem abspath instead of URI --- libr/debug/debug.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libr/debug/debug.c b/libr/debug/debug.c index 70ec1b1c6c..bb982c7947 100644 --- a/libr/debug/debug.c +++ b/libr/debug/debug.c @@ -1425,9 +1425,11 @@ R_API ut64 r_debug_get_baddr(RDebug *dbg, const char *file) { return 0LL; } r_debug_select (dbg, pid, pid); -#endif r_debug_map_sync (dbg); - abspath = r_file_abspath (file); + abspath = r_sys_pid_to_path (pid); + if (!abspath) { + abspath = r_file_abspath (file); + } if (!abspath) { abspath = strdup (file); } @@ -1448,4 +1450,5 @@ R_API ut64 r_debug_get_baddr(RDebug *dbg, const char *file) { } } return 0LL; +#endif }