IDA C++ SDK 9.2
Loading...
Searching...
No Matches
Segment groups

Functions

idaman int ida_export set_group_selector (sel_t grp, sel_t sel)
 Create a new group of segments (used OMF files).
idaman sel_t ida_export get_group_selector (sel_t grpsel)
 Get common selector for a group of segments.

Detailed Description

Function Documentation

◆ set_group_selector()

idaman int ida_export set_group_selector ( sel_t grp,
sel_t sel )

Create a new group of segments (used OMF files).

Parameters
grpselector of group segment (segment type is #SEG_GRP) You should create an 'empty' (1 byte) group segment It won't contain anything and will be used to redirect references to the group of segments to the common selector.
selcommon selector of all segments belonging to the segment You should create all segments within the group with the same selector value.
Return values
1ok
0too many groups (see #MAX_GROUPS)

◆ get_group_selector()

idaman sel_t ida_export get_group_selector ( sel_t grpsel)

Get common selector for a group of segments.

Parameters
grpselselector of group segment
Returns
common selector of the group or 'grpsel' if no such group is found