From 1b30d6ff2ae5d615569b9a5a53eb83aeda77b319 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 30 Nov 2023 10:59:20 +0800 Subject: [PATCH] Fix Python Error: Unable to find the text segment base addr --- decomp2dbg/clients/gdb/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decomp2dbg/clients/gdb/utils.py b/decomp2dbg/clients/gdb/utils.py index 7773936..aeaed9d 100644 --- a/decomp2dbg/clients/gdb/utils.py +++ b/decomp2dbg/clients/gdb/utils.py @@ -57,7 +57,7 @@ def vmmap_base_addrs(): for mapping in mappings: try: addr = int(re.findall(r"0x[0-9a-fA-F]+", mapping)[0], 16) - path = mapping.split(" ")[-1] + path = re.findall(r"(/.*)", mappings)[0].strip() except IndexError: continue