mahaloz / decomp2dbg

A plugin to introduce interactive symbols into your debugger from your decompiler
BSD 2-Clause "Simplified" License
621 stars 39 forks source link

Python Exception <class 'Exception'>: Unable to find the text segment base addr, please report this! #79

Closed WarmW1Nd closed 11 months ago

WarmW1Nd commented 12 months ago

if use not gef, when connect IDA error with this. because the file path have space

solve: decomp2dbg/clients/gdb/utils.py fix function vmmap_base_addrs():

addr = int(re.findall(r"0x[0-9a-fA-F]+", mapping)[0], 16) path = re.findall(r" r..p (.*)", mapping)[0].strip()

WarmW1Nd commented 12 months ago

submit this code can fix this error

WarmW1Nd commented 12 months ago

only test on Ubuntu 22.04

WarmW1Nd commented 12 months ago

path = re.findall(r"(\/.*)", mappings)[0].strip()

this new code can run on Ubuntu 22 and Ubuntu 20

mahaloz commented 12 months ago

Hi, if you have proposed fixes, could you open a PR?