Home
last modified time | relevance | path

Searched refs:dbg_strtab (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/elftoolchain/libdwarf/
H A Dlibdwarf_str.c44 dbg->dbg_strtab = realloc(dbg->dbg_strtab, in _dwarf_strtab_add()
46 if (dbg->dbg_strtab == NULL) { in _dwarf_strtab_add()
55 strncpy(&dbg->dbg_strtab[dbg->dbg_strtab_size], string, len - 1); in _dwarf_strtab_add()
57 dbg->dbg_strtab[dbg->dbg_strtab_size - 1] = '\0'; in _dwarf_strtab_add()
68 return (dbg->dbg_strtab); in _dwarf_strtab_get_table()
81 dbg->dbg_strtab = NULL; in _dwarf_strtab_init()
89 if ((dbg->dbg_strtab = malloc((size_t) ds->ds_size)) == in _dwarf_strtab_init()
94 memcpy(dbg->dbg_strtab, ds->ds_data, ds->ds_size); in _dwarf_strtab_init()
96 dbg->dbg_strtab = (char *) ds->ds_data; in _dwarf_strtab_init()
103 if ((dbg->dbg_strtab = malloc((size_t) dbg->dbg_strtab_cap)) == in _dwarf_strtab_init()
[all …]
H A D_libdwarf.h428 char *dbg_strtab; /* Dwarf string table. */ member