radareorg / iaito

Official QT frontend of radare2
GNU General Public License v3.0
1.07k stars 90 forks source link

Don't work debug mode #53

Closed gingermouse closed 3 years ago

gingermouse commented 3 years ago

Environment Details

iaito -v
date
r2 -v
uname -ms
iaito 5.2.2
Sun 08 Aug 2021 20:29:29 +07
radare2 5.3.1 0 @ linux-x86-64 git.5.3.1
commit: unknown build: 2021-06-12__00:39:47
Linux x86_64

Description

Hello! I have a problem with Debug mode. When I start debug (F9) in Iaito I have a message: 1 I tried to start debug mode in radare2 and it worked good. You can see that there is a message “r_config_get: variable 'file.path' not found” in Console. It’s function of radare2. I found out the problem had function of Iaito: void DebugActions::startDebug() in DebugActions.cpp when it called Core()->getConfig("file.path"): 2 In fact it called function r_config_get of radare2: // Iaito.cpp 3 Radare2 don’t have item “file.path” after version 4.5.1. For example there is item “file.path” in version 4.5.1: // cconfig.c 4 There isn’t item “file.path” in cconfig.c of version over 4.5.1. I think this is the reason for the broken debug mode. P.s. You can see I have Iaito's version 5.2.2. But 5.3.1 version has the same code in those functions. #

trufae commented 3 years ago

Should be fixed in https://github.com/radareorg/iaito/pull/56 can you confirm?

gingermouse commented 3 years ago

I have a new problem. Function QString filename = Core()->getFilePath() in DebugActions::startDebug() in DebugActions.cpp returns a file name with '\n' in the end of string. Then QFileInfo info(filename) always set "False" in isExecutable. It works well if I delete '\n' in filename: for it I used filename = filename.trimmed();

gingermouse commented 3 years ago

I checked last version of Iaito. There aren’t any problems. Thanks!

trufae commented 3 years ago

Awesome! Thanks for confirming!