segment
Segment management
Segment
Segment
This class represents IDA segments.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
segment
|
Segment
|
Segment protobuf information |
required |
program
|
Program
|
Program back reference |
required |
Attributes:
| Name | Type | Description |
|---|---|---|
name |
str
|
Segment name |
start |
AddressT
|
Segment starting address |
permissions |
Perm
|
Segment permissions |
size |
int
|
Segment size |
type |
SegmentType
|
Segment type |
program |
Program
|
Program reference |
file_offset |
int
|
Segment offset in the file (if appropriate) |
Source code in bindings/python/quokka/segment.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | |
end
property
End address of the segment
executable
property
Is the segment executable?
readable
property
Is the segment readable?
start
property
Starting address of the segment
writable
property
Is the segment writable?
__init__(segment, program)
Constructor
Source code in bindings/python/quokka/segment.py
42 43 44 45 46 47 48 49 50 51 52 | |
in_segment(addr)
Does addr belong to this segment ?
Source code in bindings/python/quokka/segment.py
79 80 81 | |