| /NextBSD/lib/libc/rpc/ |
| HD | clnt_dg.c | 169 struct cu_data *cu = NULL; /* private data */ in clnt_dg_create() local 241 cu = mem_alloc(sizeof (*cu) + sendsz + recvsz); in clnt_dg_create() 242 if (cu == NULL) in clnt_dg_create() 244 (void) memcpy(&cu->cu_raddr, svcaddr->buf, (size_t)svcaddr->len); in clnt_dg_create() 245 cu->cu_rlen = svcaddr->len; in clnt_dg_create() 246 cu->cu_outbuf = &cu->cu_inbuf[recvsz]; in clnt_dg_create() 248 cu->cu_wait.tv_sec = 15; /* heuristically chosen */ in clnt_dg_create() 249 cu->cu_wait.tv_usec = 0; in clnt_dg_create() 250 cu->cu_total.tv_sec = -1; in clnt_dg_create() 251 cu->cu_total.tv_usec = -1; in clnt_dg_create() [all …]
|
| /NextBSD/sys/rpc/ |
| HD | clnt_dg.c | 186 struct cu_data *cu = NULL; /* private data */ in clnt_dg_create() local 224 cu = mem_alloc(sizeof (*cu)); in clnt_dg_create() 225 cu->cu_threads = 0; in clnt_dg_create() 226 cu->cu_closing = FALSE; in clnt_dg_create() 227 cu->cu_closed = FALSE; in clnt_dg_create() 228 (void) memcpy(&cu->cu_raddr, svcaddr, (size_t)svcaddr->sa_len); in clnt_dg_create() 229 cu->cu_rlen = svcaddr->sa_len; in clnt_dg_create() 231 cu->cu_wait.tv_sec = 3; /* heuristically chosen */ in clnt_dg_create() 232 cu->cu_wait.tv_usec = 0; in clnt_dg_create() 233 cu->cu_total.tv_sec = -1; in clnt_dg_create() [all …]
|
| /NextBSD/contrib/elftoolchain/libdwarf/ |
| HD | libdwarf_info.c | 35 Dwarf_CU cu; in _dwarf_info_first_cu() local 39 cu = STAILQ_FIRST(&dbg->dbg_cu); in _dwarf_info_first_cu() 40 if (cu != NULL) { in _dwarf_info_first_cu() 41 dbg->dbg_cu_current = cu; in _dwarf_info_first_cu() 87 Dwarf_CU cu; in _dwarf_info_next_cu() local 91 cu = STAILQ_NEXT(dbg->dbg_cu_current, cu_next); in _dwarf_info_next_cu() 92 if (cu != NULL) { in _dwarf_info_next_cu() 93 dbg->dbg_cu_current = cu; in _dwarf_info_next_cu() 114 Dwarf_CU cu; in _dwarf_info_next_tu() local 118 cu = STAILQ_NEXT(dbg->dbg_tu_current, cu_next); in _dwarf_info_next_tu() [all …]
|
| HD | dwarf_die.c | 37 Dwarf_CU cu; in dwarf_child() local 51 cu = die->die_cu; in dwarf_child() 52 ds = cu->cu_is_info ? dbg->dbg_info_sec : dbg->dbg_types_sec; in dwarf_child() 53 ret = _dwarf_die_parse(die->die_dbg, ds, cu, cu->cu_dwarf_size, in dwarf_child() 54 die->die_next_off, cu->cu_next_offset, ret_die, 0, error); in dwarf_child() 69 Dwarf_CU cu; in dwarf_siblingof_b() local 81 cu = is_info ? dbg->dbg_cu_current : dbg->dbg_tu_current; in dwarf_siblingof_b() 83 if (cu == NULL) { in dwarf_siblingof_b() 90 return (dwarf_offdie_b(dbg, cu->cu_1st_offset, is_info, in dwarf_siblingof_b() 116 offset = at->u[0].u64 + cu->cu_offset; in dwarf_siblingof_b() [all …]
|
| HD | libdwarf_abbrev.c | 33 _dwarf_abbrev_add(Dwarf_CU cu, uint64_t entry, uint64_t tag, uint8_t children, in _dwarf_abbrev_add() argument 39 dbg = cu != NULL ? cu->cu_dbg : NULL; in _dwarf_abbrev_add() 58 if (cu != NULL) in _dwarf_abbrev_add() 59 HASH_ADD(ab_hh, cu->cu_abbrev_hash, ab_entry, in _dwarf_abbrev_add() 102 _dwarf_abbrev_parse(Dwarf_Debug dbg, Dwarf_CU cu, Dwarf_Unsigned *offset, in _dwarf_abbrev_parse() argument 128 ret = _dwarf_abbrev_add(cu, entry, 0, 0, aboff, abp, in _dwarf_abbrev_parse() 138 if ((ret = _dwarf_abbrev_add(cu, entry, tag, children, aboff, in _dwarf_abbrev_parse() 159 _dwarf_abbrev_find(Dwarf_CU cu, uint64_t entry, Dwarf_Abbrev *abp, in _dwarf_abbrev_find() argument 171 HASH_FIND(ab_hh, cu->cu_abbrev_hash, &entry, sizeof(entry), ab); in _dwarf_abbrev_find() 177 if (cu->cu_abbrev_loaded) { in _dwarf_abbrev_find() [all …]
|
| HD | libdwarf_die.c | 52 _dwarf_die_add(Dwarf_CU cu, uint64_t offset, uint64_t abnum, Dwarf_Abbrev ab, in _dwarf_die_add() argument 59 assert(cu != NULL); in _dwarf_die_add() 62 dbg = cu->cu_dbg; in _dwarf_die_add() 70 die->die_cu = cu; in _dwarf_die_add() 71 die->die_dbg = cu->cu_dbg; in _dwarf_die_add() 85 Dwarf_CU cu; in _dwarf_die_find() local 90 cu = die->die_cu; in _dwarf_die_find() 92 ds = cu->cu_is_info ? dbg->dbg_info_sec : dbg->dbg_types_sec; in _dwarf_die_find() 94 ret = _dwarf_die_parse(dbg, ds, cu, cu->cu_dwarf_size, off, in _dwarf_die_find() 95 cu->cu_next_offset, &die1, 0, &de); in _dwarf_die_find() [all …]
|
| HD | dwarf_cu.c | 40 Dwarf_CU cu; in dwarf_next_cu_header_c() local 71 cu = dbg->dbg_cu_current; in dwarf_next_cu_header_c() 77 cu = dbg->dbg_tu_current; in dwarf_next_cu_header_c() 81 *cu_length = cu->cu_length; in dwarf_next_cu_header_c() 83 *cu_version = cu->cu_version; in dwarf_next_cu_header_c() 85 *cu_abbrev_offset = (Dwarf_Off) cu->cu_abbrev_offset; in dwarf_next_cu_header_c() 87 *cu_pointer_size = cu->cu_pointer_size; in dwarf_next_cu_header_c() 89 if (cu->cu_length_size == 4) in dwarf_next_cu_header_c() 95 if (cu->cu_length_size == 4) in dwarf_next_cu_header_c() 101 *cu_next_offset = cu->cu_next_offset; in dwarf_next_cu_header_c() [all …]
|
| HD | libdwarf_loclist.c | 32 _dwarf_loclist_add_locdesc(Dwarf_Debug dbg, Dwarf_CU cu, Dwarf_Section *ds, in _dwarf_loclist_add_locdesc() argument 43 start = dbg->read(ds->ds_data, off, cu->cu_pointer_size); in _dwarf_loclist_add_locdesc() 44 end = dbg->read(ds->ds_data, off, cu->cu_pointer_size); in _dwarf_loclist_add_locdesc() 51 *total_len += 2 * cu->cu_pointer_size; in _dwarf_loclist_add_locdesc() 60 if ((cu->cu_pointer_size == 4 && start == ~0U) || in _dwarf_loclist_add_locdesc() 61 (cu->cu_pointer_size == 8 && start == ~0ULL)) in _dwarf_loclist_add_locdesc() 77 ds->ds_data + *off, len, cu->cu_pointer_size, in _dwarf_loclist_add_locdesc() 78 cu->cu_length_size == 4 ? 4 : 8, cu->cu_version, in _dwarf_loclist_add_locdesc() 94 _dwarf_loclist_find(Dwarf_Debug dbg, Dwarf_CU cu, uint64_t lloff, in _dwarf_loclist_find() argument 116 ret = _dwarf_loclist_add_locdesc(dbg, cu, ds, &off, NULL, &ldlen, in _dwarf_loclist_find() [all …]
|
| HD | dwarf_arange.c | 96 Dwarf_CU cu; in dwarf_get_cu_die_offset() local 106 cu = as->as_cu; in dwarf_get_cu_die_offset() 107 assert(cu != NULL); in dwarf_get_cu_die_offset() 110 DWARF_SET_ERROR(cu->cu_dbg, error, DW_DLE_ARGUMENT); in dwarf_get_cu_die_offset() 114 *ret_offset = cu->cu_1st_offset; in dwarf_get_cu_die_offset() 147 Dwarf_CU cu; in dwarf_get_arange_info() local 157 cu = as->as_cu; in dwarf_get_arange_info() 158 assert(cu != NULL); in dwarf_get_arange_info() 162 DWARF_SET_ERROR(cu->cu_dbg, error, DW_DLE_ARGUMENT); in dwarf_get_arange_info() 168 *cu_die_offset = cu->cu_1st_offset; in dwarf_get_arange_info()
|
| HD | libdwarf_ranges.c | 32 _dwarf_ranges_parse(Dwarf_Debug dbg, Dwarf_CU cu, Dwarf_Section *ds, in _dwarf_ranges_parse() argument 41 start = dbg->read(ds->ds_data, &off, cu->cu_pointer_size); in _dwarf_ranges_parse() 42 end = dbg->read(ds->ds_data, &off, cu->cu_pointer_size); in _dwarf_ranges_parse() 49 else if ((start == ~0U && cu->cu_pointer_size == 4) || in _dwarf_ranges_parse() 50 (start == ~0ULL && cu->cu_pointer_size == 8)) in _dwarf_ranges_parse() 103 _dwarf_ranges_add(Dwarf_Debug dbg, Dwarf_CU cu, uint64_t off, in _dwarf_ranges_add() argument 123 ret = _dwarf_ranges_parse(dbg, cu, ds, off, NULL, &cnt); in _dwarf_ranges_add() 138 ret = _dwarf_ranges_parse(dbg, cu, ds, off, rl->rl_rgarray, in _dwarf_ranges_add()
|
| HD | dwarf_lineno.c | 38 Dwarf_CU cu; in dwarf_srclines() local 54 cu = die->die_cu; in dwarf_srclines() 55 if (cu->cu_lineinfo == NULL) { in dwarf_srclines() 60 if (cu->cu_lineinfo == NULL) { in dwarf_srclines() 65 li = cu->cu_lineinfo; in dwarf_srclines() 100 Dwarf_CU cu; in dwarf_srcfiles() local 116 cu = die->die_cu; in dwarf_srcfiles() 117 if (cu->cu_lineinfo == NULL) { in dwarf_srcfiles() 122 if (cu->cu_lineinfo == NULL) { in dwarf_srcfiles() 127 li = cu->cu_lineinfo; in dwarf_srcfiles()
|
| HD | libdwarf_attr.c | 99 int dwarf_size, Dwarf_CU cu, Dwarf_Die die, Dwarf_AttrDef ad, in _dwarf_attr_init() argument 118 cu->cu_pointer_size); in _dwarf_attr_init() 160 return (_dwarf_attr_init(dbg, ds, offsetp, dwarf_size, cu, die, in _dwarf_attr_init() 163 if (cu->cu_version == 2) in _dwarf_attr_init() 165 cu->cu_pointer_size); in _dwarf_attr_init() 219 Dwarf_CU cu, Dwarf_Attribute at, int pass2, Dwarf_Error *error) in _dwarf_attr_write() argument 225 assert(dbg != NULL && ds != NULL && cu != NULL && at != NULL); in _dwarf_attr_write() 243 dwarf_drt_data_reloc, cu->cu_pointer_size, in _dwarf_attr_write() 247 ret = WRITE_VALUE(at->u[0].u64, cu->cu_pointer_size); in _dwarf_attr_write() 329 cu->cu_pass2 = 1; in _dwarf_attr_write() [all …]
|
| /NextBSD/contrib/gdb/gdb/ |
| HD | dwarf2read.c | 650 struct dwarf2_cu *cu, 655 struct dwarf2_cu *cu, 660 struct dwarf2_cu *cu, 666 struct dwarf2_cu *cu); 674 static void dwarf2_read_abbrevs (bfd *abfd, struct dwarf2_cu *cu); 728 static int die_is_declaration (struct die_info *, struct dwarf2_cu *cu); 737 bfd *abfd, struct dwarf2_cu *cu)); 775 static void read_subrange_type (struct die_info *die, struct dwarf2_cu *cu); 807 static char *determine_class_name (struct die_info *die, struct dwarf2_cu *cu); 930 struct dwarf2_cu *cu); [all …]
|
| /NextBSD/contrib/llvm/tools/lldb/source/Plugins/SymbolFile/DWARF/ |
| HD | DWARFDebugInfoEntry.cpp | 64 DWARFDebugInfoEntry::Attributes::Append(const DWARFCompileUnit *cu, dw_offset_t attr_die_offset, dw… in Append() argument 66 Info info = { cu, attr_die_offset, attr, form }; in Append() 121 const DWARFCompileUnit* cu, in FastExtract() argument 140 …const DWARFAbbreviationDeclaration *abbrevDecl = cu->GetAbbreviations()->GetAbbreviationDeclaratio… in FastExtract() 144 …cu->GetSymbolFileDWARF()->GetObjectFile()->GetModule()->ReportError ("{0x%8.8x}: invalid abbreviat… in FastExtract() 188 form_size = cu->GetAddressByteSize(); in FastExtract() 191 if (cu->GetVersion() <= 2) in FastExtract() 192 form_size = cu->GetAddressByteSize(); in FastExtract() 194 form_size = cu->IsDWARF64() ? 8 : 4; in FastExtract() 242 if (cu->IsDWARF64 ()) in FastExtract() [all …]
|
| HD | DWARFDebugInfoEntry.h | 66 …void Append(const DWARFCompileUnit *cu, dw_offset_t attr_die_offset, dw_attr_t attr, dw_form_t for… 67 const DWARFCompileUnit * CompileUnitAtIndex(uint32_t i) const { return m_infos[i].cu; } in CompileUnitAtIndex() 83 …const DWARFCompileUnit *cu; // Keep the compile unit with each attribute in case we have DW_FORM_r… member 136 const DWARFCompileUnit* cu, 141 const DWARFCompileUnit* cu, 146 const DWARFCompileUnit* cu, 152 const DWARFCompileUnit* cu, 158 const DWARFCompileUnit* cu, 164 const DWARFCompileUnit* cu, 171 const DWARFCompileUnit* cu, [all …]
|
| HD | DWARFDebugInfo.cpp | 84 DWARFCompileUnit* cu = GetCompileUnitAtIndex(idx); in GetCompileUnitAranges() local 86 dw_offset_t offset = cu->GetOffset(); in GetCompileUnitAranges() 96 cu->BuildAddressRangeTable (m_dwarf2Data, m_cu_aranges_ap.get()); in GetCompileUnitAranges() 194 DWARFCompileUnit* cu = NULL; in GetCompileUnitAtIndex() local 196 cu = m_compile_units[idx].get(); in GetCompileUnitAtIndex() 197 return cu; in GetCompileUnitAtIndex() 201 DWARFDebugInfo::ContainsCompileUnit (const DWARFCompileUnit *cu) const in ContainsCompileUnit() 210 if (pos->get() == cu) in ContainsCompileUnit() 330 DWARFDebugInfo::AddCompileUnit(DWARFCompileUnitSP& cu) in AddCompileUnit() argument 332 m_compile_units.push_back(cu); in AddCompileUnit() [all …]
|
| HD | DWARFDebugPubnames.cpp | 88 DWARFCompileUnit* cu = debug_info->GetCompileUnitAtIndex(cu_idx); in GeneratePubnames() local 90 …form_sizes = DWARFFormValue::GetFixedFormSizesForAddressSize (cu->GetAddressByteSize(), cu->IsDWAR… in GeneratePubnames() 92 bool clear_dies = cu->ExtractDIEsIfNeeded (false) > 1; in GeneratePubnames() 95 const size_t die_count = cu->AppendDIEsWithTag (DW_TAG_subprogram, dies) + in GeneratePubnames() 96 cu->AppendDIEsWithTag (DW_TAG_variable, dies); in GeneratePubnames() 98 dw_offset_t cu_offset = cu->GetOffset(); in GeneratePubnames() 99 …DWARFDebugPubnamesSet pubnames_set(DW_INVALID_OFFSET, cu_offset, cu->GetNextCompileUnitOffset() - … in GeneratePubnames() 109 … const size_t num_attributes = die->GetAttributes(dwarf2Data, cu, fixed_form_sizes, attributes); in GeneratePubnames() 204 cu->ClearDIEs (true); in GeneratePubnames() 225 DWARFCompileUnit* cu = debug_info->GetCompileUnitAtIndex(cu_idx); in GeneratePubBaseTypes() local [all …]
|
| HD | DWARFLocationList.cpp | 21 DWARFLocationList::Dump(Stream &s, const DWARFCompileUnit* cu, const DWARFDataExtractor& debug_loc_… in Dump() argument 24 uint32_t addr_size = DWARFCompileUnit::GetAddressByteSize(cu); in Dump() 25 s.SetAddressByteSize(DWARFCompileUnit::GetAddressByteSize(cu)); in Dump() 26 dw_addr_t base_addr = cu ? cu->GetBaseAddress() : 0; in Dump() 37 if (cu) in Dump() 40 cu->GetAddressByteSize(), in Dump()
|
| /NextBSD/contrib/mdocml/ |
| HD | preconv.c | 32 unsigned char *cu; in preconv_encode() local 36 cu = (unsigned char *)ib->buf + *ii; in preconv_encode() 37 assert(*cu & 0x80); in preconv_encode() 43 while (nby < 5 && *cu & (1 << (7 - nby))) in preconv_encode() 48 accum = *cu & 0x1f; in preconv_encode() 53 accum = *cu & 0x0f; in preconv_encode() 56 accum = *cu & 0x07; in preconv_encode() 64 cu++; in preconv_encode() 67 if ((accum == 0x00 && ! (*cu & 0x20)) || /* Use 2-byte. */ in preconv_encode() 68 (accum == 0x0d && *cu & 0x20)) /* Surrogates. */ in preconv_encode() [all …]
|
| /NextBSD/contrib/elftoolchain/addr2line/ |
| HD | addr2line.c | 157 search_func(struct CU *cu, Dwarf_Unsigned addr) in search_func() argument 165 STAILQ_FOREACH(f, &cu->funclist, next) { in search_func() 202 collect_func(Dwarf_Debug dbg, Dwarf_Die die, struct Func *parent, struct CU *cu) in collect_func() argument 309 STAILQ_INSERT_TAIL(&cu->funclist, f, next); in collect_func() 320 collect_func(dbg, ret_die, f, cu); in collect_func() 322 collect_func(dbg, ret_die, parent, cu); in collect_func() 330 collect_func(dbg, ret_die, parent, cu); in collect_func() 343 print_inlines(struct CU *cu, struct Func *f, Dwarf_Unsigned call_file, in print_inlines() argument 349 if (call_file > 0 && (Dwarf_Signed) call_file <= cu->nsrcfiles) in print_inlines() 350 file = cu->srcfiles[call_file - 1]; in print_inlines() [all …]
|
| /NextBSD/contrib/llvm/lib/DebugInfo/DWARF/ |
| HD | DWARFFormValue.cpp | 135 const DWARFUnit *cu) { in extractValue() argument 146 if (!cu) in extractValue() 150 ? cu->getAddressByteSize() in extractValue() 151 : getRefAddrSize(cu->getAddressByteSize(), cu->getVersion()); in extractValue() 152 RelocAddrMap::const_iterator AI = cu->getRelocMap()->find(*offset_ptr); in extractValue() 153 if (AI != cu->getRelocMap()->end()) { in extractValue() 189 if (!cu) in extractValue() 191 RelocAddrMap::const_iterator AI = cu->getRelocMap()->find(*offset_ptr-4); in extractValue() 192 if (AI != cu->getRelocMap()->end()) in extractValue() 220 if (!cu) in extractValue() [all …]
|
| /NextBSD/sys/netinet/libalias/ |
| HD | alias_cuseeme.c | 181 struct cu_header *cu; in AliasHandleCUSeeMeOut() local 184 cu = udp_next(ud); in AliasHandleCUSeeMeOut() 185 if (cu->addr) in AliasHandleCUSeeMeOut() 186 cu->addr = (u_int32_t) GetAliasAddress(lnk).s_addr; in AliasHandleCUSeeMeOut() 203 struct cu_header *cu; in AliasHandleCUSeeMeIn() local 212 cu = udp_next(ud); in AliasHandleCUSeeMeIn() 213 oc = (struct oc_header *)(cu + 1); in AliasHandleCUSeeMeIn() 218 if (cu->dest_addr) in AliasHandleCUSeeMeIn() 219 cu->dest_addr = (u_int32_t) original_addr.s_addr; in AliasHandleCUSeeMeIn() 220 if (ntohs(cu->data_type) == 101) in AliasHandleCUSeeMeIn()
|
| /NextBSD/sys/net/ |
| HD | bridgestp.c | 266 struct bstp_config_unit *cu) in bstp_decode_bpdu() argument 270 cu->cu_pv.pv_root_id = in bstp_decode_bpdu() 279 cu->cu_pv.pv_dbridge_id = in bstp_decode_bpdu() 288 cu->cu_pv.pv_cost = ntohl(cpdu->cbu_rootpathcost); in bstp_decode_bpdu() 289 cu->cu_message_age = ntohs(cpdu->cbu_messageage); in bstp_decode_bpdu() 290 cu->cu_max_age = ntohs(cpdu->cbu_maxage); in bstp_decode_bpdu() 291 cu->cu_hello_time = ntohs(cpdu->cbu_hellotime); in bstp_decode_bpdu() 292 cu->cu_forward_delay = ntohs(cpdu->cbu_forwarddelay); in bstp_decode_bpdu() 293 cu->cu_pv.pv_dport_id = ntohs(cpdu->cbu_portid); in bstp_decode_bpdu() 294 cu->cu_pv.pv_port_id = bp->bp_port_id; in bstp_decode_bpdu() [all …]
|
| /NextBSD/usr.bin/tip/tip/ |
| HD | Makefile | 35 LINKS= ${BINDIR}/tip ${BINDIR}/cu 36 MAN= tip.1 cu.1 41 SRCS= acu.c acutab.c cmds.c cmdtab.c cu.c hunt.c log.c partab.c \ 55 .if exists(${DESTDIR}${BINDIR}/cu) 56 -chflags noschg ${DESTDIR}${BINDIR}/cu
|
| /NextBSD/contrib/llvm/tools/lldb/source/Core/ |
| HD | FileLineResolver.cpp | 50 CompileUnit *cu = context.comp_unit; in SearchCallback() local 52 if (m_inlines || m_file_spec.Compare(*cu, m_file_spec, (bool)m_file_spec.GetDirectory())) in SearchCallback() 55 uint32_t file_idx = cu->GetSupportFiles().FindFileIndex(start_file_idx, m_file_spec, false); in SearchCallback() 58 LineTable *line_table = cu->GetLineTable(); in SearchCallback() 70 … file_idx = cu->GetSupportFiles().FindFileIndex(file_idx + 1, m_file_spec, false); in SearchCallback()
|