(pointer)
return x
Returns a tuple containing (phnum, phentsize, gdb.Value),
    where the gdb.Value object is an ELF Program Header with
    the architecture-appropriate structure type.
Returns a tuple containing (phnum, phentsize, gdb.Value),
    where the gdb.Value object is an ELF Program Header with
    the architecture-appropriate structure type.
Returns a tuple containing ( phnum phentsize gdb . Value ) where the gdb . Value object is an ELF Program Header with the architecture - appropriate structure type .
def get_phdrs(pointer):
    """
    Returns a tuple containing (phnum, phentsize, gdb.Value),
    where the gdb.Value object is an ELF Program Header with
    the architecture-appropriate structure type.
    """
    ei_class, Elfhdr = get_ehdr(pointer)

    if Elfhdr is None:
        return (0, 0, None)

    phnum     = Elfhdr.e_phnum
    phoff     = Elfhdr.e_phoff
    phentsize = Elfhdr.e_phentsize

    x = (phnum, phentsize, read(Phdr, Elfhdr.address + phoff))
    return x
def get_phdrs ( pointer ) : ei_class , Elfhdr = get_ehdr ( pointer ) if Elfhdr is None : return ( 0 , 0 , None ) phnum = Elfhdr . e_phnum phoff = Elfhdr . e_phoff phentsize = Elfhdr . e_phentsize x = ( phnum , phentsize , read ( Phdr , Elfhdr . address + phoff ) ) return x