mirror of
https://github.com/idapython/src
synced 2026-06-08 14:47:00 +00:00
IDAPython 1.5.1
- Introduced the CLI '?' pseudo-command to retrieve doc strings - Introduced the CLI '!' pseudo-command to shell execute a command - Added IDP/assemble notification event - bugfix: High 64 bit addresses were not parsed correctly in IDA64 - bugfix: AskUsingForm() C function was not wrapped by SWIG - NextHead()/PrevHead() have optional 2nd parameter now
This commit is contained in:
+18
@@ -1139,6 +1139,24 @@ bool idaapi IDAPython_cli_execute_line(const char *line)
|
||||
return false;
|
||||
}
|
||||
|
||||
//
|
||||
// Pseudo commands
|
||||
//
|
||||
qstring s;
|
||||
do
|
||||
{
|
||||
// Help command?
|
||||
if ( line[0] == '?' )
|
||||
s.sprnt("help(%s)", line+1);
|
||||
// Shell command?
|
||||
else if ( line[0] == '!' )
|
||||
s.sprnt("idaapi.IDAPython_ExecSystem(r'%s')", line+1);
|
||||
else
|
||||
break;
|
||||
// Patch the command line pointer
|
||||
line = s.c_str();
|
||||
} while (false);
|
||||
|
||||
begin_execution();
|
||||
PythonEvalOrExec(line);
|
||||
end_execution();
|
||||
|
||||
Reference in New Issue
Block a user