"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/common/AnalTask.cpp" between
cutter-1.10.2.tar.gz and cutter-1.10.3.tar.gz

About: cutter is a Qt and C++ GUI for radare2 reverse engineering framework.

AnalTask.cpp  (cutter-1.10.2):AnalTask.cpp  (cutter-1.10.3)
skipping to change at line 63 skipping to change at line 63
} }
// r_core_bin_load might change asm.bits, so let's set that after the bin is loaded // r_core_bin_load might change asm.bits, so let's set that after the bin is loaded
Core()->setCPU(options.arch, options.cpu, options.bits); Core()->setCPU(options.arch, options.cpu, options.bits);
if (isInterrupted()) { if (isInterrupted()) {
return; return;
} }
if (!options.os.isNull()) { if (!options.os.isNull()) {
Core()->cmd("e asm.os=" + options.os); Core()->cmdRaw("e asm.os=" + options.os);
} }
if (!options.pdbFile.isNull()) { if (!options.pdbFile.isNull()) {
log(tr("Loading PDB file...")); log(tr("Loading PDB file..."));
Core()->loadPDB(options.pdbFile); Core()->loadPDB(options.pdbFile);
} }
if (isInterrupted()) { if (isInterrupted()) {
return; return;
} }
if (!options.shellcode.isNull() && options.shellcode.size() / 2 > 0) { if (!options.shellcode.isNull() && options.shellcode.size() / 2 > 0) {
log(tr("Loading shellcode...")); log(tr("Loading shellcode..."));
Core()->cmd("wx " + options.shellcode); Core()->cmdRaw("wx " + options.shellcode);
} }
if (options.endian != InitialOptions::Endianness::Auto) { if (options.endian != InitialOptions::Endianness::Auto) {
Core()->setEndianness(options.endian == InitialOptions::Endianness::Big) ; Core()->setEndianness(options.endian == InitialOptions::Endianness::Big) ;
} }
Core()->cmd("fs *"); Core()->cmdRaw("fs *");
if (!options.script.isNull()) { if (!options.script.isNull()) {
log(tr("Executing script...")); log(tr("Executing script..."));
Core()->loadScript(options.script); Core()->loadScript(options.script);
} }
if (isInterrupted()) { if (isInterrupted()) {
return; return;
} }
// Use prj.simple as default as long as regular projects are broken // Use prj.simple as default as long as regular projects are broken
Core()->setConfig("prj.simple", true); Core()->setConfig("prj.simple", true);
if (!options.analCmd.empty()) { if (!options.analCmd.empty()) {
log(tr("Executing analysis...")); log(tr("Executing analysis..."));
for (const CommandDescription &cmd : options.analCmd) { for (const CommandDescription &cmd : options.analCmd) {
if (isInterrupted()) { if (isInterrupted()) {
return; return;
} }
log(cmd.description); log(cmd.description);
// use cmd instead of cmdRaw because commands can be unexpected
Core()->cmd(cmd.command); Core()->cmd(cmd.command);
} }
log(tr("Analysis complete!")); log(tr("Analysis complete!"));
} else { } else {
log(tr("Skipping Analysis.")); log(tr("Skipping Analysis."));
} }
} }
 End of changes. 4 change blocks. 
3 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)