mirror of
https://github.com/cemu-project/idapython.git
synced 2024-11-24 10:09:20 +01:00
idc.py: A batch of docstring fixes. Thanks to Ange Albertini for the patch!
This commit is contained in:
parent
f9f30154d2
commit
252fcf8052
@ -306,7 +306,7 @@ def rotate_left(value, count, nbits, offset):
|
|||||||
"""
|
"""
|
||||||
Rotate a value to the left (or right)
|
Rotate a value to the left (or right)
|
||||||
|
|
||||||
@param x: value to rotate
|
@param value: value to rotate
|
||||||
@param count: number of times to rotate. negative counter means
|
@param count: number of times to rotate. negative counter means
|
||||||
rotate to the right
|
rotate to the right
|
||||||
@param nbits: number of bits to rotate
|
@param nbits: number of bits to rotate
|
||||||
@ -948,10 +948,10 @@ def SetArrayFormat(ea, flags, litems, align):
|
|||||||
@param ea: linear address
|
@param ea: linear address
|
||||||
@param flags: combination of AP_... constants or 0
|
@param flags: combination of AP_... constants or 0
|
||||||
@param litems: number of items per line. 0 means auto
|
@param litems: number of items per line. 0 means auto
|
||||||
@param align: element alignment:
|
@param align: element alignment
|
||||||
-1: do not align
|
- -1: do not align
|
||||||
0: automatic alignment
|
- 0: automatic alignment
|
||||||
other values: element width
|
- other values: element width
|
||||||
|
|
||||||
@return: 1-ok, 0-failure
|
@return: 1-ok, 0-failure
|
||||||
"""
|
"""
|
||||||
@ -1499,7 +1499,7 @@ def GenerateFile(filetype, path, ea1, ea2, flags):
|
|||||||
"""
|
"""
|
||||||
Generate an output file
|
Generate an output file
|
||||||
|
|
||||||
@param type: type of output file. One of OFILE_... symbols. See below.
|
@param filetype: type of output file. One of OFILE_... symbols. See below.
|
||||||
@param path: the output file path (will be overwritten!)
|
@param path: the output file path (will be overwritten!)
|
||||||
@param ea1: start address. For some file types this argument is ignored
|
@param ea1: start address. For some file types this argument is ignored
|
||||||
@param ea2: end address. For some file types this argument is ignored
|
@param ea2: end address. For some file types this argument is ignored
|
||||||
@ -1654,7 +1654,7 @@ def IdbByte(ea):
|
|||||||
"""
|
"""
|
||||||
Get one byte (8-bit) of the program at 'ea' from the database even if the debugger is active
|
Get one byte (8-bit) of the program at 'ea' from the database even if the debugger is active
|
||||||
|
|
||||||
@param ea - linear address
|
@param ea: linear address
|
||||||
|
|
||||||
@return: byte value. If the byte has no value then 0xFF is returned.
|
@return: byte value. If the byte has no value then 0xFF is returned.
|
||||||
|
|
||||||
@ -2251,8 +2251,8 @@ def GetString(ea, length, strtype):
|
|||||||
"""
|
"""
|
||||||
Get string contents
|
Get string contents
|
||||||
@param ea: linear address
|
@param ea: linear address
|
||||||
@param len: string length. -1 means to calculate the max string length
|
@param length: string length. -1 means to calculate the max string length
|
||||||
@param type: the string type (one of ASCSTR_... constants)
|
@param strtype: the string type (one of ASCSTR_... constants)
|
||||||
|
|
||||||
@return: string contents or empty string
|
@return: string contents or empty string
|
||||||
"""
|
"""
|
||||||
@ -2702,12 +2702,12 @@ def SetProcessorType (processor, level):
|
|||||||
@param processor: name of processor in short form.
|
@param processor: name of processor in short form.
|
||||||
run 'ida ?' to get list of allowed processor types
|
run 'ida ?' to get list of allowed processor types
|
||||||
@param level: the power of request:
|
@param level: the power of request:
|
||||||
SETPROC_COMPAT - search for the processor type in the current module
|
- SETPROC_COMPAT - search for the processor type in the current module
|
||||||
SETPROC_ALL - search for the processor type in all modules
|
- SETPROC_ALL - search for the processor type in all modules
|
||||||
only if there were not calls with SETPROC_USER
|
only if there were not calls with SETPROC_USER
|
||||||
SETPROC_USER - search for the processor type in all modules
|
- SETPROC_USER - search for the processor type in all modules
|
||||||
and prohibit level SETPROC_USER
|
and prohibit level SETPROC_USER
|
||||||
SETPROC_FATAL - can be combined with previous bits.
|
- SETPROC_FATAL - can be combined with previous bits.
|
||||||
means that if the processor type can't be
|
means that if the processor type can't be
|
||||||
set, IDA should display an error message and exit.
|
set, IDA should display an error message and exit.
|
||||||
"""
|
"""
|
||||||
@ -3872,7 +3872,7 @@ def GetFuncOffset(ea):
|
|||||||
"""
|
"""
|
||||||
Convert address to 'funcname+offset' string
|
Convert address to 'funcname+offset' string
|
||||||
|
|
||||||
@param ea - address to convert
|
@param ea: address to convert
|
||||||
|
|
||||||
@return: if the address belongs to a function then return a string
|
@return: if the address belongs to a function then return a string
|
||||||
formed as 'name+offset' where 'name' is a function name
|
formed as 'name+offset' where 'name' is a function name
|
||||||
@ -5162,7 +5162,7 @@ def RemoveFchunk(funcea, tailea):
|
|||||||
Remove a function chunk from the function
|
Remove a function chunk from the function
|
||||||
|
|
||||||
@param funcea: any address in the function
|
@param funcea: any address in the function
|
||||||
@param ea1: any address in the function chunk to remove
|
@param tailea: any address in the function chunk to remove
|
||||||
|
|
||||||
@return: 0 if failed, 1 if success
|
@return: 0 if failed, 1 if success
|
||||||
"""
|
"""
|
||||||
@ -6041,7 +6041,7 @@ def ParseTypes(inputtype, flags):
|
|||||||
"""
|
"""
|
||||||
Parse type declarations
|
Parse type declarations
|
||||||
|
|
||||||
@param input: file name or C declarations (depending on the flags)
|
@param inputtype: file name or C declarations (depending on the flags)
|
||||||
@param flags: combination of PT_... constants or 0
|
@param flags: combination of PT_... constants or 0
|
||||||
|
|
||||||
@return: number of errors
|
@return: number of errors
|
||||||
@ -6261,11 +6261,12 @@ def AttachProcess(pid, event_id):
|
|||||||
will interactively ask the user for the process to attach to.
|
will interactively ask the user for the process to attach to.
|
||||||
@param event_id: reserved, must be -1
|
@param event_id: reserved, must be -1
|
||||||
|
|
||||||
@return: -2 - impossible to find a compatible process
|
@return:
|
||||||
-1 - impossible to attach to the given process (process died, privilege
|
- -2: impossible to find a compatible process
|
||||||
|
- -1: impossible to attach to the given process (process died, privilege
|
||||||
needed, not supported by the debugger plugin, ...)
|
needed, not supported by the debugger plugin, ...)
|
||||||
0 - the user cancelled the attaching to the process
|
- 0: the user cancelled the attaching to the process
|
||||||
1 - the debugger properly attached to the process
|
- 1: the debugger properly attached to the process
|
||||||
@note: See the important note to the StepInto() function
|
@note: See the important note to the StepInto() function
|
||||||
"""
|
"""
|
||||||
return idaapi.attach_process(pid, event_id)
|
return idaapi.attach_process(pid, event_id)
|
||||||
@ -6920,7 +6921,7 @@ def GetBptAttr(ea, bptattr):
|
|||||||
"""
|
"""
|
||||||
Get the characteristics of a breakpoint
|
Get the characteristics of a breakpoint
|
||||||
|
|
||||||
@param address: any address in the breakpoint range
|
@param ea: any address in the breakpoint range
|
||||||
@param bptattr: the desired attribute code, one of BPTATTR_... constants
|
@param bptattr: the desired attribute code, one of BPTATTR_... constants
|
||||||
|
|
||||||
@return: the desired attribute value or -1
|
@return: the desired attribute value or -1
|
||||||
@ -6997,7 +6998,7 @@ def SetBptCnd(ea, cnd):
|
|||||||
"""
|
"""
|
||||||
Set breakpoint condition
|
Set breakpoint condition
|
||||||
|
|
||||||
@param address: any address in the breakpoint range
|
@param ea: any address in the breakpoint range
|
||||||
@param cnd: breakpoint condition
|
@param cnd: breakpoint condition
|
||||||
|
|
||||||
@return: success
|
@return: success
|
||||||
@ -7018,7 +7019,7 @@ def AddBptEx(ea, size, bpttype):
|
|||||||
|
|
||||||
@param ea: any address in the process memory space:
|
@param ea: any address in the process memory space:
|
||||||
@param size: size of the breakpoint (irrelevant for software breakpoints):
|
@param size: size of the breakpoint (irrelevant for software breakpoints):
|
||||||
@param type: type of the breakpoint (one of BPT_... constants)
|
@param bpttype: type of the breakpoint (one of BPT_... constants)
|
||||||
|
|
||||||
@return: success
|
@return: success
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user