MCPcopy Create free account
hub / github.com/bloomberg/pystack / _get_base_map

Function _get_base_map

src/pystack/maps.py:183–191  ·  view source on GitHub ↗
(binary_maps: List[VirtualMap])

Source from the content-addressed store, hash-verified

181
182
183def _get_base_map(binary_maps: List[VirtualMap]) -> VirtualMap:
184 maybe_map = next(
185 (map for map in binary_maps if map.path is not None),
186 None,
187 )
188 if maybe_map is not None:
189 return maybe_map
190 first_map, *_ = binary_maps
191 return first_map
192
193
194def _get_bss(elf_maps: List[VirtualMap], load_point: int) -> Optional[VirtualMap]:

Callers 4

_get_bssFunction · 0.85

Calls

no outgoing calls