From 5793f51b16167d5befe248276a48ade094e33135 Mon Sep 17 00:00:00 2001 From: edoardo Date: Tue, 2 Jan 2024 18:31:56 -0500 Subject: [PATCH] handle spaces in gdb_get_location_from_symbol --- gef.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gef.py b/gef.py index bc61ad4b4..924018179 100644 --- a/gef.py +++ b/gef.py @@ -2021,7 +2021,7 @@ def gdb_get_location_from_symbol(address: int) -> Optional[Tuple[str, int]]: # gdb outputs symbols with format: " + in section of ", # here, we are only interested in symbol name and offset. i = sym.find(" in section ") - sym = sym[:i].split("+") + sym = sym[:i].split(" + ") name, offset = sym[0].strip(), 0 if len(sym) == 2 and sym[1].isdigit(): offset = int(sym[1])