@@ -670,9 +670,6 @@ def MakeArray(ea, nitems):
670670 """
671671 flags = idaapi .getFlags (ea )
672672
673- if idaapi .isCode (flags ) or idaapi .isTail (flags ) or idaapi .isAlign (flags ):
674- return False
675-
676673 if idaapi .isCode (flags ) or idaapi .isTail (flags ) or idaapi .isAlign (flags ):
677674 return False
678675
@@ -790,17 +787,6 @@ def MakeYword(ea):
790787 return idaapi .doYwrd (ea , 32 )
791788
792789
793- def MakeYword (ea ):
794- """
795- Convert the current item to a ymm word (32 bytes/256 bits)
796-
797- @param ea: linear address
798-
799- @return: 1-ok, 0-failure
800- """
801- return idaapi .doYwrd (ea , 32 )
802-
803-
804790def MakeFloat (ea ):
805791 """
806792 Convert the current item to a floating point (4 bytes)
@@ -2358,12 +2344,24 @@ def GetCommentEx(ea, repeatable):
23582344
23592345 @param ea: linear address
23602346
2347+ @param repeatable: 1 to get the repeatable comment, 0 to get the normal comment
2348+
23612349 @return: string or None if it fails
23622350 """
23632351 return idaapi .get_cmt (ea , repeatable )
23642352
23652353
2366- def CommentEx (ea , repeatable ): GetCommentEx (ea , repeatable )
2354+ def CommentEx (ea , repeatable ):
2355+ """
2356+ Get regular indented comment
2357+
2358+ @param ea: linear address
2359+
2360+ @param repeatable: 1 to get the repeatable comment, 0 to get the normal comment
2361+
2362+ @return: string or None if it fails
2363+ """
2364+ return GetCommentEx (ea , repeatable )
23672365
23682366
23692367def AltOp (ea , n ):
@@ -6983,159 +6981,6 @@ def DelHiddenArea(ea):
69836981 return idaapi .del_hidden_area (ea )
69846982
69856983
6986-
6987- def GetStepTraceOptions ():
6988- """
6989- Get step current tracing options
6990-
6991- @return: a combination of ST_... constants
6992- """
6993- return idaapi .get_step_trace_options ()
6994-
6995-
6996- def SetStepTraceOptions (options ):
6997- """
6998- Set step current tracing options.
6999- @param options: combination of ST_... constants
7000- """
7001- return idaapi .set_step_trace_options (options )
7002-
7003-
7004- ST_OVER_DEBUG_SEG = 0x01 # step tracing will be disabled when IP is in a debugger segment
7005- ST_OVER_LIB_FUNC = 0x02 # step tracing will be disabled when IP is in a library function
7006- ST_ALREADY_LOGGED = 0x04 # step tracing will be disabled when IP is already logged
7007- ST_SKIP_LOOPS = 0x08 # step tracing will try to skip loops already recorded
7008-
7009- def LoadTraceFile (filename ):
7010- """
7011- Load a previously recorded binary trace file
7012- @param filename: trace file
7013- """
7014- return idaapi .load_trace_file (filename , None )
7015-
7016- def SaveTraceFile (filename , description ):
7017- """
7018- Save current trace to a binary trace file
7019- @param filename: trace file
7020- """
7021- return idaapi .save_trace_file (filename , description )
7022-
7023- def CheckTraceFile (filename ):
7024- """
7025- Check the given binary trace file
7026- @param filename: trace file
7027- """
7028- return idaapi .is_valid_trace_file (filename )
7029-
7030- def ClearTraceFile (filename ):
7031- """
7032- Clear the current trace buffer
7033- """
7034- return idaapi .clear_trace ()
7035-
7036- def GetTraceDesc (filename ):
7037- """
7038- Get the trace description of the given binary trace file
7039- @param filename: trace file
7040- """
7041- return idaapi .get_trace_file_desc (filename )
7042-
7043- def SetTraceDesc (filename , description ):
7044- """
7045- Update the trace description of the given binary trace file
7046- @param filename: trace file
7047- @description: trace description
7048- """
7049- return idaapi .set_trace_file_desc (filename , description )
7050-
7051- def GetMaxTev ():
7052- """
7053- Return the total number of recorded events
7054- """
7055- return idaapi .get_tev_qty ()
7056-
7057- def GetTevEa (tev ):
7058- """
7059- Return the address of the specified event
7060- @param tev: event number
7061- """
7062- return idaapi .get_tev_ea (tev )
7063-
7064- TEV_NONE = 0 # no event
7065- TEV_INSN = 1 # an instruction trace
7066- TEV_CALL = 2 # a function call trace
7067- TEV_RET = 3 # a function return trace
7068- TEV_BPT = 4 # write, read/write, execution trace
7069- TEV_MEM = 5 # memory layout changed
7070- TEV_EVENT = 6 # debug event
7071-
7072- def GetTevType (tev ):
7073- """
7074- Return the type of the specified event (TEV_... constants)
7075- @param tev: event number
7076- """
7077- return idaapi .get_tev_type (tev )
7078-
7079- def GetTevTid (tev ):
7080- """
7081- Return the thread id of the specified event
7082- @param tev: event number
7083- """
7084- return idaapi .get_tev_tid (tev )
7085-
7086- def GetTevRegVal (tev , reg ):
7087- """
7088- Return the register value for the specified event
7089- @param tev: event number
7090- @param reg: register name (like EAX, RBX, ...)
7091- """
7092- return idaapi .get_tev_reg_val (tev , reg )
7093-
7094- def GetTevRegMemQty (tev ):
7095- """
7096- Return the number of memory addresses recorded for the specified event
7097- @param tev: event number
7098- """
7099- return idaapi .get_tev_reg_mem_qty (tev )
7100-
7101- def GetTevRegMem (tev , idx ):
7102- """
7103- Return the memory pointed by 'index' for the specified event
7104- @param tev: event number
7105- @param idx: memory address index
7106- """
7107- return idaapi .get_tev_reg_mem (tev , idx )
7108-
7109- def GetTevRegMemEa (tev , idx ):
7110- """
7111- Return the address pointed by 'index' for the specified event
7112- @param tev: event number
7113- @param idx: memory address index
7114- """
7115- return idaapi .get_tev_reg_mem_ea (tev , idx )
7116-
7117- def GetTevCallee (tev ):
7118- """
7119- Return the address of the callee for the specified event
7120- @param tev: event number
7121- """
7122- return idaapi .get_call_tev_callee (tev )
7123-
7124- def GetTevReturn (tev ):
7125- """
7126- Return the return address for the specified event
7127- @param tev: event number
7128- """
7129- return idaapi .get_ret_tev_return (tev )
7130-
7131- def GetBptTevEa (tev ):
7132- """
7133- Return the address of the specified TEV_BPT event
7134- @param tev: event number
7135- """
7136- return idaapi .get_bpt_tev_ea (tev )
7137-
7138-
71396984#--------------------------------------------------------------------------
71406985# D E B U G G E R I N T E R F A C E
71416986#--------------------------------------------------------------------------
@@ -8040,7 +7885,7 @@ def SetBptCndEx(ea, cnd, is_lowcnd):
80407885 return False
80417886
80427887 bpt .condition = cnd
8043- if not is_lowcnd :
7888+ if is_lowcnd :
80447889 bpt .flags |= BPT_LOWCND
80457890 else :
80467891 bpt .flags &= ~ BPT_LOWCND
@@ -8542,9 +8387,10 @@ def SegDefReg(ea, reg, value): return SetSegDefReg(ea, reg, va
85428387
85438388
85448389def Comment (ea ): return GetCommentEx (ea , 0 )
8545- """Returns the non-repeatable comment or None"""
8390+ """Returns the regular comment or None"""
85468391
85478392def RptCmt (ea ): return GetCommentEx (ea , 1 )
8393+ """Returns the repeatable comment or None"""
85488394
85498395def SetReg (ea , reg , value ): return SetRegEx (ea , reg , value , SR_user )
85508396
0 commit comments