Applied all fixes to IDAPython 6.95, to this date (2016 Sept 26th.)

This commit is contained in:
Arnaud Diederen
2016-09-26 11:16:26 +02:00
parent 62ddab8db6
commit e22e859a41
76 changed files with 330 additions and 88 deletions
Executable → Regular
+2
View File
@@ -23,10 +23,12 @@ import ida_kernwin
import ida_loader
import ida_nalt
import ida_name
import ida_netnode
import ida_segment
import ida_strlist
import ida_ua
import ida_xref
import idc
import types
import os
Executable → Regular
+1 -37
View File
@@ -47,6 +47,7 @@ import ida_idp
import ida_kernwin
import ida_lines
import ida_loader
import ida_moves
import ida_nalt
import ida_name
import ida_netnode
@@ -8422,43 +8423,6 @@ def SetColor(ea, what, color):
return False
#--------------------------------------------------------------------------
# X M L
#--------------------------------------------------------------------------
def SetXML(path, name, value):
"""
Set or update one or more XML values.
@param path: XPath expression of elements where to create value(s)
@param name: name of the element/attribute
(use @XXX for an attribute) to create.
If 'name' is empty, the elements or
attributes returned by XPath are directly
updated to contain the new 'value'.
@param value: value of the element/attribute
@return: success (True or False)
"""
return idaapi.set_xml(path, name, value)
def GetXML(path):
"""
Get one XML value.
@param path: XPath expression to an element
or attribute whose value is requested
@return: the value, None if failed
"""
v = idaapi.value_t()
if idaapi.get_xml(path):
return v.str
else:
return None
#----------------------------------------------------------------------------
# A R M S P E C I F I C
#----------------------------------------------------------------------------
Executable → Regular
View File