Debian Codegraph @

src/lib/libdwarf/dwarf_names.c

raw
1 /* Generated routines, do not edit. */
2 /* Generated for source version 0.11.1 */
3
4 /* BEGIN FILE */
5
6 #include "dwarf.h"
7
8 #include "libdwarf.h"
9
10 /* ARGSUSED */
11 int
12 dwarf_get_TAG_name (unsigned int val,
13 const char ** s_out)
14 {
15 switch (val) {
16 case DW_TAG_array_type:
17 *s_out = "DW_TAG_array_type";
18 return DW_DLV_OK;
19 case DW_TAG_class_type:
20 *s_out = "DW_TAG_class_type";
21 return DW_DLV_OK;
22 case DW_TAG_entry_point:
23 *s_out = "DW_TAG_entry_point";
24 return DW_DLV_OK;
25 case DW_TAG_enumeration_type:
26 *s_out = "DW_TAG_enumeration_type";
27 return DW_DLV_OK;
28 case DW_TAG_formal_parameter:
29 *s_out = "DW_TAG_formal_parameter";
30 return DW_DLV_OK;
31 case DW_TAG_imported_declaration:
32 *s_out = "DW_TAG_imported_declaration";
33 return DW_DLV_OK;
34 case DW_TAG_label:
35 *s_out = "DW_TAG_label";
36 return DW_DLV_OK;
37 case DW_TAG_lexical_block:
38 *s_out = "DW_TAG_lexical_block";
39 return DW_DLV_OK;
40 case DW_TAG_member:
41 *s_out = "DW_TAG_member";
42 return DW_DLV_OK;
43 case DW_TAG_pointer_type:
44 *s_out = "DW_TAG_pointer_type";
45 return DW_DLV_OK;
46 case DW_TAG_reference_type:
47 *s_out = "DW_TAG_reference_type";
48 return DW_DLV_OK;
49 case DW_TAG_compile_unit:
50 *s_out = "DW_TAG_compile_unit";
51 return DW_DLV_OK;
52 case DW_TAG_string_type:
53 *s_out = "DW_TAG_string_type";
54 return DW_DLV_OK;
55 case DW_TAG_structure_type:
56 *s_out = "DW_TAG_structure_type";
57 return DW_DLV_OK;
58 case DW_TAG_subroutine_type:
59 *s_out = "DW_TAG_subroutine_type";
60 return DW_DLV_OK;
61 case DW_TAG_typedef:
62 *s_out = "DW_TAG_typedef";
63 return DW_DLV_OK;
64 case DW_TAG_union_type:
65 *s_out = "DW_TAG_union_type";
66 return DW_DLV_OK;
67 case DW_TAG_unspecified_parameters:
68 *s_out = "DW_TAG_unspecified_parameters";
69 return DW_DLV_OK;
70 case DW_TAG_variant:
71 *s_out = "DW_TAG_variant";
72 return DW_DLV_OK;
73 case DW_TAG_common_block:
74 *s_out = "DW_TAG_common_block";
75 return DW_DLV_OK;
76 case DW_TAG_common_inclusion:
77 *s_out = "DW_TAG_common_inclusion";
78 return DW_DLV_OK;
79 case DW_TAG_inheritance:
80 *s_out = "DW_TAG_inheritance";
81 return DW_DLV_OK;
82 case DW_TAG_inlined_subroutine:
83 *s_out = "DW_TAG_inlined_subroutine";
84 return DW_DLV_OK;
85 case DW_TAG_module:
86 *s_out = "DW_TAG_module";
87 return DW_DLV_OK;
88 case DW_TAG_ptr_to_member_type:
89 *s_out = "DW_TAG_ptr_to_member_type";
90 return DW_DLV_OK;
91 case DW_TAG_set_type:
92 *s_out = "DW_TAG_set_type";
93 return DW_DLV_OK;
94 case DW_TAG_subrange_type:
95 *s_out = "DW_TAG_subrange_type";
96 return DW_DLV_OK;
97 case DW_TAG_with_stmt:
98 *s_out = "DW_TAG_with_stmt";
99 return DW_DLV_OK;
100 case DW_TAG_access_declaration:
101 *s_out = "DW_TAG_access_declaration";
102 return DW_DLV_OK;
103 case DW_TAG_base_type:
104 *s_out = "DW_TAG_base_type";
105 return DW_DLV_OK;
106 case DW_TAG_catch_block:
107 *s_out = "DW_TAG_catch_block";
108 return DW_DLV_OK;
109 case DW_TAG_const_type:
110 *s_out = "DW_TAG_const_type";
111 return DW_DLV_OK;
112 case DW_TAG_constant:
113 *s_out = "DW_TAG_constant";
114 return DW_DLV_OK;
115 case DW_TAG_enumerator:
116 *s_out = "DW_TAG_enumerator";
117 return DW_DLV_OK;
118 case DW_TAG_file_type:
119 *s_out = "DW_TAG_file_type";
120 return DW_DLV_OK;
121 case DW_TAG_friend:
122 *s_out = "DW_TAG_friend";
123 return DW_DLV_OK;
124 case DW_TAG_namelist:
125 *s_out = "DW_TAG_namelist";
126 return DW_DLV_OK;
127 case DW_TAG_namelist_item:
128 *s_out = "DW_TAG_namelist_item";
129 return DW_DLV_OK;
130 /* Skipping alternate spelling of value
131 0x2c. DW_TAG_namelist_items */
132 case DW_TAG_packed_type:
133 *s_out = "DW_TAG_packed_type";
134 return DW_DLV_OK;
135 case DW_TAG_subprogram:
136 *s_out = "DW_TAG_subprogram";
137 return DW_DLV_OK;
138 case DW_TAG_template_type_parameter:
139 *s_out = "DW_TAG_template_type_parameter";
140 return DW_DLV_OK;
141 /* Skipping alternate spelling of value
142 0x2f. DW_TAG_template_type_param */
143 case DW_TAG_template_value_parameter:
144 *s_out = "DW_TAG_template_value_parameter";
145 return DW_DLV_OK;
146 /* Skipping alternate spelling of value
147 0x30. DW_TAG_template_value_param */
148 case DW_TAG_thrown_type:
149 *s_out = "DW_TAG_thrown_type";
150 return DW_DLV_OK;
151 case DW_TAG_try_block:
152 *s_out = "DW_TAG_try_block";
153 return DW_DLV_OK;
154 case DW_TAG_variant_part:
155 *s_out = "DW_TAG_variant_part";
156 return DW_DLV_OK;
157 case DW_TAG_variable:
158 *s_out = "DW_TAG_variable";
159 return DW_DLV_OK;
160 case DW_TAG_volatile_type:
161 *s_out = "DW_TAG_volatile_type";
162 return DW_DLV_OK;
163 case DW_TAG_dwarf_procedure:
164 *s_out = "DW_TAG_dwarf_procedure";
165 return DW_DLV_OK;
166 case DW_TAG_restrict_type:
167 *s_out = "DW_TAG_restrict_type";
168 return DW_DLV_OK;
169 case DW_TAG_interface_type:
170 *s_out = "DW_TAG_interface_type";
171 return DW_DLV_OK;
172 case DW_TAG_namespace:
173 *s_out = "DW_TAG_namespace";
174 return DW_DLV_OK;
175 case DW_TAG_imported_module:
176 *s_out = "DW_TAG_imported_module";
177 return DW_DLV_OK;
178 case DW_TAG_unspecified_type:
179 *s_out = "DW_TAG_unspecified_type";
180 return DW_DLV_OK;
181 case DW_TAG_partial_unit:
182 *s_out = "DW_TAG_partial_unit";
183 return DW_DLV_OK;
184 case DW_TAG_imported_unit:
185 *s_out = "DW_TAG_imported_unit";
186 return DW_DLV_OK;
187 case DW_TAG_mutable_type:
188 *s_out = "DW_TAG_mutable_type";
189 return DW_DLV_OK;
190 case DW_TAG_condition:
191 *s_out = "DW_TAG_condition";
192 return DW_DLV_OK;
193 case DW_TAG_shared_type:
194 *s_out = "DW_TAG_shared_type";
195 return DW_DLV_OK;
196 case DW_TAG_type_unit:
197 *s_out = "DW_TAG_type_unit";
198 return DW_DLV_OK;
199 case DW_TAG_rvalue_reference_type:
200 *s_out = "DW_TAG_rvalue_reference_type";
201 return DW_DLV_OK;
202 case DW_TAG_template_alias:
203 *s_out = "DW_TAG_template_alias";
204 return DW_DLV_OK;
205 case DW_TAG_coarray_type:
206 *s_out = "DW_TAG_coarray_type";
207 return DW_DLV_OK;
208 case DW_TAG_generic_subrange:
209 *s_out = "DW_TAG_generic_subrange";
210 return DW_DLV_OK;
211 case DW_TAG_dynamic_type:
212 *s_out = "DW_TAG_dynamic_type";
213 return DW_DLV_OK;
214 case DW_TAG_atomic_type:
215 *s_out = "DW_TAG_atomic_type";
216 return DW_DLV_OK;
217 case DW_TAG_call_site:
218 *s_out = "DW_TAG_call_site";
219 return DW_DLV_OK;
220 case DW_TAG_call_site_parameter:
221 *s_out = "DW_TAG_call_site_parameter";
222 return DW_DLV_OK;
223 case DW_TAG_skeleton_unit:
224 *s_out = "DW_TAG_skeleton_unit";
225 return DW_DLV_OK;
226 case DW_TAG_immutable_type:
227 *s_out = "DW_TAG_immutable_type";
228 return DW_DLV_OK;
229 case DW_TAG_TI_far_type:
230 *s_out = "DW_TAG_TI_far_type";
231 return DW_DLV_OK;
232 /* Skipping alternate spelling of value
233 0x4080. DW_TAG_lo_user */
234 case DW_TAG_MIPS_loop:
235 *s_out = "DW_TAG_MIPS_loop";
236 return DW_DLV_OK;
237 /* Skipping alternate spelling of value
238 0x4081. DW_TAG_TI_near_type */
239 case DW_TAG_TI_assign_register:
240 *s_out = "DW_TAG_TI_assign_register";
241 return DW_DLV_OK;
242 case DW_TAG_TI_ioport_type:
243 *s_out = "DW_TAG_TI_ioport_type";
244 return DW_DLV_OK;
245 case DW_TAG_TI_restrict_type:
246 *s_out = "DW_TAG_TI_restrict_type";
247 return DW_DLV_OK;
248 case DW_TAG_TI_onchip_type:
249 *s_out = "DW_TAG_TI_onchip_type";
250 return DW_DLV_OK;
251 case DW_TAG_HP_array_descriptor:
252 *s_out = "DW_TAG_HP_array_descriptor";
253 return DW_DLV_OK;
254 case DW_TAG_format_label:
255 *s_out = "DW_TAG_format_label";
256 return DW_DLV_OK;
257 case DW_TAG_function_template:
258 *s_out = "DW_TAG_function_template";
259 return DW_DLV_OK;
260 case DW_TAG_class_template:
261 *s_out = "DW_TAG_class_template";
262 return DW_DLV_OK;
263 case DW_TAG_GNU_BINCL:
264 *s_out = "DW_TAG_GNU_BINCL";
265 return DW_DLV_OK;
266 case DW_TAG_GNU_EINCL:
267 *s_out = "DW_TAG_GNU_EINCL";
268 return DW_DLV_OK;
269 case DW_TAG_GNU_template_template_parameter:
270 *s_out = "DW_TAG_GNU_template_template_parameter";
271 return DW_DLV_OK;
272 /* Skipping alternate spelling of value
273 0x4106. DW_TAG_GNU_template_template_param */
274 case DW_TAG_GNU_template_parameter_pack:
275 *s_out = "DW_TAG_GNU_template_parameter_pack";
276 return DW_DLV_OK;
277 case DW_TAG_GNU_formal_parameter_pack:
278 *s_out = "DW_TAG_GNU_formal_parameter_pack";
279 return DW_DLV_OK;
280 case DW_TAG_GNU_call_site:
281 *s_out = "DW_TAG_GNU_call_site";
282 return DW_DLV_OK;
283 case DW_TAG_GNU_call_site_parameter:
284 *s_out = "DW_TAG_GNU_call_site_parameter";
285 return DW_DLV_OK;
286 case DW_TAG_SUN_function_template:
287 *s_out = "DW_TAG_SUN_function_template";
288 return DW_DLV_OK;
289 case DW_TAG_SUN_class_template:
290 *s_out = "DW_TAG_SUN_class_template";
291 return DW_DLV_OK;
292 case DW_TAG_SUN_struct_template:
293 *s_out = "DW_TAG_SUN_struct_template";
294 return DW_DLV_OK;
295 case DW_TAG_SUN_union_template:
296 *s_out = "DW_TAG_SUN_union_template";
297 return DW_DLV_OK;
298 case DW_TAG_SUN_indirect_inheritance:
299 *s_out = "DW_TAG_SUN_indirect_inheritance";
300 return DW_DLV_OK;
301 case DW_TAG_SUN_codeflags:
302 *s_out = "DW_TAG_SUN_codeflags";
303 return DW_DLV_OK;
304 case DW_TAG_SUN_memop_info:
305 *s_out = "DW_TAG_SUN_memop_info";
306 return DW_DLV_OK;
307 case DW_TAG_SUN_omp_child_func:
308 *s_out = "DW_TAG_SUN_omp_child_func";
309 return DW_DLV_OK;
310 case DW_TAG_SUN_rtti_descriptor:
311 *s_out = "DW_TAG_SUN_rtti_descriptor";
312 return DW_DLV_OK;
313 case DW_TAG_SUN_dtor_info:
314 *s_out = "DW_TAG_SUN_dtor_info";
315 return DW_DLV_OK;
316 case DW_TAG_SUN_dtor:
317 *s_out = "DW_TAG_SUN_dtor";
318 return DW_DLV_OK;
319 case DW_TAG_SUN_f90_interface:
320 *s_out = "DW_TAG_SUN_f90_interface";
321 return DW_DLV_OK;
322 case DW_TAG_SUN_fortran_vax_structure:
323 *s_out = "DW_TAG_SUN_fortran_vax_structure";
324 return DW_DLV_OK;
325 case DW_TAG_SUN_hi:
326 *s_out = "DW_TAG_SUN_hi";
327 return DW_DLV_OK;
328 case DW_TAG_ALTIUM_circ_type:
329 *s_out = "DW_TAG_ALTIUM_circ_type";
330 return DW_DLV_OK;
331 case DW_TAG_ALTIUM_mwa_circ_type:
332 *s_out = "DW_TAG_ALTIUM_mwa_circ_type";
333 return DW_DLV_OK;
334 case DW_TAG_ALTIUM_rev_carry_type:
335 *s_out = "DW_TAG_ALTIUM_rev_carry_type";
336 return DW_DLV_OK;
337 case DW_TAG_ALTIUM_rom:
338 *s_out = "DW_TAG_ALTIUM_rom";
339 return DW_DLV_OK;
340 case DW_TAG_LLVM_annotation:
341 *s_out = "DW_TAG_LLVM_annotation";
342 return DW_DLV_OK;
343 case DW_TAG_ghs_namespace:
344 *s_out = "DW_TAG_ghs_namespace";
345 return DW_DLV_OK;
346 case DW_TAG_ghs_using_namespace:
347 *s_out = "DW_TAG_ghs_using_namespace";
348 return DW_DLV_OK;
349 case DW_TAG_ghs_using_declaration:
350 *s_out = "DW_TAG_ghs_using_declaration";
351 return DW_DLV_OK;
352 case DW_TAG_ghs_template_templ_param:
353 *s_out = "DW_TAG_ghs_template_templ_param";
354 return DW_DLV_OK;
355 case DW_TAG_upc_shared_type:
356 *s_out = "DW_TAG_upc_shared_type";
357 return DW_DLV_OK;
358 case DW_TAG_upc_strict_type:
359 *s_out = "DW_TAG_upc_strict_type";
360 return DW_DLV_OK;
361 case DW_TAG_upc_relaxed_type:
362 *s_out = "DW_TAG_upc_relaxed_type";
363 return DW_DLV_OK;
364 case DW_TAG_PGI_kanji_type:
365 *s_out = "DW_TAG_PGI_kanji_type";
366 return DW_DLV_OK;
367 case DW_TAG_PGI_interface_block:
368 *s_out = "DW_TAG_PGI_interface_block";
369 return DW_DLV_OK;
370 case DW_TAG_BORLAND_property:
371 *s_out = "DW_TAG_BORLAND_property";
372 return DW_DLV_OK;
373 case DW_TAG_BORLAND_Delphi_string:
374 *s_out = "DW_TAG_BORLAND_Delphi_string";
375 return DW_DLV_OK;
376 case DW_TAG_BORLAND_Delphi_dynamic_array:
377 *s_out = "DW_TAG_BORLAND_Delphi_dynamic_array";
378 return DW_DLV_OK;
379 case DW_TAG_BORLAND_Delphi_set:
380 *s_out = "DW_TAG_BORLAND_Delphi_set";
381 return DW_DLV_OK;
382 case DW_TAG_BORLAND_Delphi_variant:
383 *s_out = "DW_TAG_BORLAND_Delphi_variant";
384 return DW_DLV_OK;
385 case DW_TAG_hi_user:
386 *s_out = "DW_TAG_hi_user";
387 return DW_DLV_OK;
388 default: break;
389 }
390 return DW_DLV_NO_ENTRY;
391 }
392 /* ARGSUSED */
393 int
394 dwarf_get_children_name (unsigned int val,
395 const char ** s_out)
396 {
397 switch (val) {
398 case DW_children_no:
399 *s_out = "DW_children_no";
400 return DW_DLV_OK;
401 case DW_children_yes:
402 *s_out = "DW_children_yes";
403 return DW_DLV_OK;
404 default: break;
405 }
406 return DW_DLV_NO_ENTRY;
407 }
408 /* ARGSUSED */
409 int
410 dwarf_get_FORM_name (unsigned int val,
411 const char ** s_out)
412 {
413 switch (val) {
414 case DW_FORM_addr:
415 *s_out = "DW_FORM_addr";
416 return DW_DLV_OK;
417 case DW_FORM_block2:
418 *s_out = "DW_FORM_block2";
419 return DW_DLV_OK;
420 case DW_FORM_block4:
421 *s_out = "DW_FORM_block4";
422 return DW_DLV_OK;
423 case DW_FORM_data2:
424 *s_out = "DW_FORM_data2";
425 return DW_DLV_OK;
426 case DW_FORM_data4:
427 *s_out = "DW_FORM_data4";
428 return DW_DLV_OK;
429 case DW_FORM_data8:
430 *s_out = "DW_FORM_data8";
431 return DW_DLV_OK;
432 case DW_FORM_string:
433 *s_out = "DW_FORM_string";
434 return DW_DLV_OK;
435 case DW_FORM_block:
436 *s_out = "DW_FORM_block";
437 return DW_DLV_OK;
438 case DW_FORM_block1:
439 *s_out = "DW_FORM_block1";
440 return DW_DLV_OK;
441 case DW_FORM_data1:
442 *s_out = "DW_FORM_data1";
443 return DW_DLV_OK;
444 case DW_FORM_flag:
445 *s_out = "DW_FORM_flag";
446 return DW_DLV_OK;
447 case DW_FORM_sdata:
448 *s_out = "DW_FORM_sdata";
449 return DW_DLV_OK;
450 case DW_FORM_strp:
451 *s_out = "DW_FORM_strp";
452 return DW_DLV_OK;
453 case DW_FORM_udata:
454 *s_out = "DW_FORM_udata";
455 return DW_DLV_OK;
456 case DW_FORM_ref_addr:
457 *s_out = "DW_FORM_ref_addr";
458 return DW_DLV_OK;
459 case DW_FORM_ref1:
460 *s_out = "DW_FORM_ref1";
461 return DW_DLV_OK;
462 case DW_FORM_ref2:
463 *s_out = "DW_FORM_ref2";
464 return DW_DLV_OK;
465 case DW_FORM_ref4:
466 *s_out = "DW_FORM_ref4";
467 return DW_DLV_OK;
468 case DW_FORM_ref8:
469 *s_out = "DW_FORM_ref8";
470 return DW_DLV_OK;
471 case DW_FORM_ref_udata:
472 *s_out = "DW_FORM_ref_udata";
473 return DW_DLV_OK;
474 case DW_FORM_indirect:
475 *s_out = "DW_FORM_indirect";
476 return DW_DLV_OK;
477 case DW_FORM_sec_offset:
478 *s_out = "DW_FORM_sec_offset";
479 return DW_DLV_OK;
480 case DW_FORM_exprloc:
481 *s_out = "DW_FORM_exprloc";
482 return DW_DLV_OK;
483 case DW_FORM_flag_present:
484 *s_out = "DW_FORM_flag_present";
485 return DW_DLV_OK;
486 case DW_FORM_strx:
487 *s_out = "DW_FORM_strx";
488 return DW_DLV_OK;
489 case DW_FORM_addrx:
490 *s_out = "DW_FORM_addrx";
491 return DW_DLV_OK;
492 case DW_FORM_ref_sup4:
493 *s_out = "DW_FORM_ref_sup4";
494 return DW_DLV_OK;
495 case DW_FORM_strp_sup:
496 *s_out = "DW_FORM_strp_sup";
497 return DW_DLV_OK;
498 case DW_FORM_data16:
499 *s_out = "DW_FORM_data16";
500 return DW_DLV_OK;
501 case DW_FORM_line_strp:
502 *s_out = "DW_FORM_line_strp";
503 return DW_DLV_OK;
504 case DW_FORM_ref_sig8:
505 *s_out = "DW_FORM_ref_sig8";
506 return DW_DLV_OK;
507 case DW_FORM_implicit_const:
508 *s_out = "DW_FORM_implicit_const";
509 return DW_DLV_OK;
510 case DW_FORM_loclistx:
511 *s_out = "DW_FORM_loclistx";
512 return DW_DLV_OK;
513 case DW_FORM_rnglistx:
514 *s_out = "DW_FORM_rnglistx";
515 return DW_DLV_OK;
516 case DW_FORM_ref_sup8:
517 *s_out = "DW_FORM_ref_sup8";
518 return DW_DLV_OK;
519 case DW_FORM_strx1:
520 *s_out = "DW_FORM_strx1";
521 return DW_DLV_OK;
522 case DW_FORM_strx2:
523 *s_out = "DW_FORM_strx2";
524 return DW_DLV_OK;
525 case DW_FORM_strx3:
526 *s_out = "DW_FORM_strx3";
527 return DW_DLV_OK;
528 case DW_FORM_strx4:
529 *s_out = "DW_FORM_strx4";
530 return DW_DLV_OK;
531 case DW_FORM_addrx1:
532 *s_out = "DW_FORM_addrx1";
533 return DW_DLV_OK;
534 case DW_FORM_addrx2:
535 *s_out = "DW_FORM_addrx2";
536 return DW_DLV_OK;
537 case DW_FORM_addrx3:
538 *s_out = "DW_FORM_addrx3";
539 return DW_DLV_OK;
540 case DW_FORM_addrx4:
541 *s_out = "DW_FORM_addrx4";
542 return DW_DLV_OK;
543 case DW_FORM_GNU_addr_index:
544 *s_out = "DW_FORM_GNU_addr_index";
545 return DW_DLV_OK;
546 case DW_FORM_GNU_str_index:
547 *s_out = "DW_FORM_GNU_str_index";
548 return DW_DLV_OK;
549 case DW_FORM_GNU_ref_alt:
550 *s_out = "DW_FORM_GNU_ref_alt";
551 return DW_DLV_OK;
552 case DW_FORM_GNU_strp_alt:
553 *s_out = "DW_FORM_GNU_strp_alt";
554 return DW_DLV_OK;
555 case DW_FORM_LLVM_addrx_offset:
556 *s_out = "DW_FORM_LLVM_addrx_offset";
557 return DW_DLV_OK;
558 default: break;
559 }
560 return DW_DLV_NO_ENTRY;
561 }
562 /* ARGSUSED */
563 int
564 dwarf_get_AT_name (unsigned int val,
565 const char ** s_out)
566 {
567 switch (val) {
568 case DW_AT_sibling:
569 *s_out = "DW_AT_sibling";
570 return DW_DLV_OK;
571 case DW_AT_location:
572 *s_out = "DW_AT_location";
573 return DW_DLV_OK;
574 case DW_AT_name:
575 *s_out = "DW_AT_name";
576 return DW_DLV_OK;
577 case DW_AT_ordering:
578 *s_out = "DW_AT_ordering";
579 return DW_DLV_OK;
580 case DW_AT_subscr_data:
581 *s_out = "DW_AT_subscr_data";
582 return DW_DLV_OK;
583 case DW_AT_byte_size:
584 *s_out = "DW_AT_byte_size";
585 return DW_DLV_OK;
586 case DW_AT_bit_offset:
587 *s_out = "DW_AT_bit_offset";
588 return DW_DLV_OK;
589 case DW_AT_bit_size:
590 *s_out = "DW_AT_bit_size";
591 return DW_DLV_OK;
592 case DW_AT_element_list:
593 *s_out = "DW_AT_element_list";
594 return DW_DLV_OK;
595 case DW_AT_stmt_list:
596 *s_out = "DW_AT_stmt_list";
597 return DW_DLV_OK;
598 case DW_AT_low_pc:
599 *s_out = "DW_AT_low_pc";
600 return DW_DLV_OK;
601 case DW_AT_high_pc:
602 *s_out = "DW_AT_high_pc";
603 return DW_DLV_OK;
604 case DW_AT_language:
605 *s_out = "DW_AT_language";
606 return DW_DLV_OK;
607 case DW_AT_member:
608 *s_out = "DW_AT_member";
609 return DW_DLV_OK;
610 case DW_AT_discr:
611 *s_out = "DW_AT_discr";
612 return DW_DLV_OK;
613 case DW_AT_discr_value:
614 *s_out = "DW_AT_discr_value";
615 return DW_DLV_OK;
616 case DW_AT_visibility:
617 *s_out = "DW_AT_visibility";
618 return DW_DLV_OK;
619 case DW_AT_import:
620 *s_out = "DW_AT_import";
621 return DW_DLV_OK;
622 case DW_AT_string_length:
623 *s_out = "DW_AT_string_length";
624 return DW_DLV_OK;
625 case DW_AT_common_reference:
626 *s_out = "DW_AT_common_reference";
627 return DW_DLV_OK;
628 case DW_AT_comp_dir:
629 *s_out = "DW_AT_comp_dir";
630 return DW_DLV_OK;
631 case DW_AT_const_value:
632 *s_out = "DW_AT_const_value";
633 return DW_DLV_OK;
634 case DW_AT_containing_type:
635 *s_out = "DW_AT_containing_type";
636 return DW_DLV_OK;
637 case DW_AT_default_value:
638 *s_out = "DW_AT_default_value";
639 return DW_DLV_OK;
640 case DW_AT_inline:
641 *s_out = "DW_AT_inline";
642 return DW_DLV_OK;
643 case DW_AT_is_optional:
644 *s_out = "DW_AT_is_optional";
645 return DW_DLV_OK;
646 case DW_AT_lower_bound:
647 *s_out = "DW_AT_lower_bound";
648 return DW_DLV_OK;
649 case DW_AT_producer:
650 *s_out = "DW_AT_producer";
651 return DW_DLV_OK;
652 case DW_AT_prototyped:
653 *s_out = "DW_AT_prototyped";
654 return DW_DLV_OK;
655 case DW_AT_return_addr:
656 *s_out = "DW_AT_return_addr";
657 return DW_DLV_OK;
658 case DW_AT_start_scope:
659 *s_out = "DW_AT_start_scope";
660 return DW_DLV_OK;
661 case DW_AT_bit_stride:
662 *s_out = "DW_AT_bit_stride";
663 return DW_DLV_OK;
664 /* Skipping alternate spelling of value
665 0x2e. DW_AT_stride_size */
666 case DW_AT_upper_bound:
667 *s_out = "DW_AT_upper_bound";
668 return DW_DLV_OK;
669 case DW_AT_abstract_origin:
670 *s_out = "DW_AT_abstract_origin";
671 return DW_DLV_OK;
672 case DW_AT_accessibility:
673 *s_out = "DW_AT_accessibility";
674 return DW_DLV_OK;
675 case DW_AT_address_class:
676 *s_out = "DW_AT_address_class";
677 return DW_DLV_OK;
678 case DW_AT_artificial:
679 *s_out = "DW_AT_artificial";
680 return DW_DLV_OK;
681 case DW_AT_base_types:
682 *s_out = "DW_AT_base_types";
683 return DW_DLV_OK;
684 case DW_AT_calling_convention:
685 *s_out = "DW_AT_calling_convention";
686 return DW_DLV_OK;
687 case DW_AT_count:
688 *s_out = "DW_AT_count";
689 return DW_DLV_OK;
690 case DW_AT_data_member_location:
691 *s_out = "DW_AT_data_member_location";
692 return DW_DLV_OK;
693 case DW_AT_decl_column:
694 *s_out = "DW_AT_decl_column";
695 return DW_DLV_OK;
696 case DW_AT_decl_file:
697 *s_out = "DW_AT_decl_file";
698 return DW_DLV_OK;
699 case DW_AT_decl_line:
700 *s_out = "DW_AT_decl_line";
701 return DW_DLV_OK;
702 case DW_AT_declaration:
703 *s_out = "DW_AT_declaration";
704 return DW_DLV_OK;
705 case DW_AT_discr_list:
706 *s_out = "DW_AT_discr_list";
707 return DW_DLV_OK;
708 case DW_AT_encoding:
709 *s_out = "DW_AT_encoding";
710 return DW_DLV_OK;
711 case DW_AT_external:
712 *s_out = "DW_AT_external";
713 return DW_DLV_OK;
714 case DW_AT_frame_base:
715 *s_out = "DW_AT_frame_base";
716 return DW_DLV_OK;
717 case DW_AT_friend:
718 *s_out = "DW_AT_friend";
719 return DW_DLV_OK;
720 case DW_AT_identifier_case:
721 *s_out = "DW_AT_identifier_case";
722 return DW_DLV_OK;
723 case DW_AT_macro_info:
724 *s_out = "DW_AT_macro_info";
725 return DW_DLV_OK;
726 case DW_AT_namelist_item:
727 *s_out = "DW_AT_namelist_item";
728 return DW_DLV_OK;
729 case DW_AT_priority:
730 *s_out = "DW_AT_priority";
731 return DW_DLV_OK;
732 case DW_AT_segment:
733 *s_out = "DW_AT_segment";
734 return DW_DLV_OK;
735 case DW_AT_specification:
736 *s_out = "DW_AT_specification";
737 return DW_DLV_OK;
738 case DW_AT_static_link:
739 *s_out = "DW_AT_static_link";
740 return DW_DLV_OK;
741 case DW_AT_type:
742 *s_out = "DW_AT_type";
743 return DW_DLV_OK;
744 case DW_AT_use_location:
745 *s_out = "DW_AT_use_location";
746 return DW_DLV_OK;
747 case DW_AT_variable_parameter:
748 *s_out = "DW_AT_variable_parameter";
749 return DW_DLV_OK;
750 case DW_AT_virtuality:
751 *s_out = "DW_AT_virtuality";
752 return DW_DLV_OK;
753 case DW_AT_vtable_elem_location:
754 *s_out = "DW_AT_vtable_elem_location";
755 return DW_DLV_OK;
756 case DW_AT_allocated:
757 *s_out = "DW_AT_allocated";
758 return DW_DLV_OK;
759 case DW_AT_associated:
760 *s_out = "DW_AT_associated";
761 return DW_DLV_OK;
762 case DW_AT_data_location:
763 *s_out = "DW_AT_data_location";
764 return DW_DLV_OK;
765 case DW_AT_byte_stride:
766 *s_out = "DW_AT_byte_stride";
767 return DW_DLV_OK;
768 /* Skipping alternate spelling of value
769 0x51. DW_AT_stride */
770 case DW_AT_entry_pc:
771 *s_out = "DW_AT_entry_pc";
772 return DW_DLV_OK;
773 case DW_AT_use_UTF8:
774 *s_out = "DW_AT_use_UTF8";
775 return DW_DLV_OK;
776 case DW_AT_extension:
777 *s_out = "DW_AT_extension";
778 return DW_DLV_OK;
779 case DW_AT_ranges:
780 *s_out = "DW_AT_ranges";
781 return DW_DLV_OK;
782 case DW_AT_trampoline:
783 *s_out = "DW_AT_trampoline";
784 return DW_DLV_OK;
785 case DW_AT_call_column:
786 *s_out = "DW_AT_call_column";
787 return DW_DLV_OK;
788 case DW_AT_call_file:
789 *s_out = "DW_AT_call_file";
790 return DW_DLV_OK;
791 case DW_AT_call_line:
792 *s_out = "DW_AT_call_line";
793 return DW_DLV_OK;
794 case DW_AT_description:
795 *s_out = "DW_AT_description";
796 return DW_DLV_OK;
797 case DW_AT_binary_scale:
798 *s_out = "DW_AT_binary_scale";
799 return DW_DLV_OK;
800 case DW_AT_decimal_scale:
801 *s_out = "DW_AT_decimal_scale";
802 return DW_DLV_OK;
803 case DW_AT_small:
804 *s_out = "DW_AT_small";
805 return DW_DLV_OK;
806 case DW_AT_decimal_sign:
807 *s_out = "DW_AT_decimal_sign";
808 return DW_DLV_OK;
809 case DW_AT_digit_count:
810 *s_out = "DW_AT_digit_count";
811 return DW_DLV_OK;
812 case DW_AT_picture_string:
813 *s_out = "DW_AT_picture_string";
814 return DW_DLV_OK;
815 case DW_AT_mutable:
816 *s_out = "DW_AT_mutable";
817 return DW_DLV_OK;
818 case DW_AT_threads_scaled:
819 *s_out = "DW_AT_threads_scaled";
820 return DW_DLV_OK;
821 case DW_AT_explicit:
822 *s_out = "DW_AT_explicit";
823 return DW_DLV_OK;
824 case DW_AT_object_pointer:
825 *s_out = "DW_AT_object_pointer";
826 return DW_DLV_OK;
827 case DW_AT_endianity:
828 *s_out = "DW_AT_endianity";
829 return DW_DLV_OK;
830 case DW_AT_elemental:
831 *s_out = "DW_AT_elemental";
832 return DW_DLV_OK;
833 case DW_AT_pure:
834 *s_out = "DW_AT_pure";
835 return DW_DLV_OK;
836 case DW_AT_recursive:
837 *s_out = "DW_AT_recursive";
838 return DW_DLV_OK;
839 case DW_AT_signature:
840 *s_out = "DW_AT_signature";
841 return DW_DLV_OK;
842 case DW_AT_main_subprogram:
843 *s_out = "DW_AT_main_subprogram";
844 return DW_DLV_OK;
845 case DW_AT_data_bit_offset:
846 *s_out = "DW_AT_data_bit_offset";
847 return DW_DLV_OK;
848 case DW_AT_const_expr:
849 *s_out = "DW_AT_const_expr";
850 return DW_DLV_OK;
851 case DW_AT_enum_class:
852 *s_out = "DW_AT_enum_class";
853 return DW_DLV_OK;
854 case DW_AT_linkage_name:
855 *s_out = "DW_AT_linkage_name";
856 return DW_DLV_OK;
857 case DW_AT_string_length_bit_size:
858 *s_out = "DW_AT_string_length_bit_size";
859 return DW_DLV_OK;
860 case DW_AT_string_length_byte_size:
861 *s_out = "DW_AT_string_length_byte_size";
862 return DW_DLV_OK;
863 case DW_AT_rank:
864 *s_out = "DW_AT_rank";
865 return DW_DLV_OK;
866 case DW_AT_str_offsets_base:
867 *s_out = "DW_AT_str_offsets_base";
868 return DW_DLV_OK;
869 case DW_AT_addr_base:
870 *s_out = "DW_AT_addr_base";
871 return DW_DLV_OK;
872 case DW_AT_rnglists_base:
873 *s_out = "DW_AT_rnglists_base";
874 return DW_DLV_OK;
875 case DW_AT_dwo_id:
876 *s_out = "DW_AT_dwo_id";
877 return DW_DLV_OK;
878 case DW_AT_dwo_name:
879 *s_out = "DW_AT_dwo_name";
880 return DW_DLV_OK;
881 case DW_AT_reference:
882 *s_out = "DW_AT_reference";
883 return DW_DLV_OK;
884 case DW_AT_rvalue_reference:
885 *s_out = "DW_AT_rvalue_reference";
886 return DW_DLV_OK;
887 case DW_AT_macros:
888 *s_out = "DW_AT_macros";
889 return DW_DLV_OK;
890 case DW_AT_call_all_calls:
891 *s_out = "DW_AT_call_all_calls";
892 return DW_DLV_OK;
893 case DW_AT_call_all_source_calls:
894 *s_out = "DW_AT_call_all_source_calls";
895 return DW_DLV_OK;
896 case DW_AT_call_all_tail_calls:
897 *s_out = "DW_AT_call_all_tail_calls";
898 return DW_DLV_OK;
899 case DW_AT_call_return_pc:
900 *s_out = "DW_AT_call_return_pc";
901 return DW_DLV_OK;
902 case DW_AT_call_value:
903 *s_out = "DW_AT_call_value";
904 return DW_DLV_OK;
905 case DW_AT_call_origin:
906 *s_out = "DW_AT_call_origin";
907 return DW_DLV_OK;
908 case DW_AT_call_parameter:
909 *s_out = "DW_AT_call_parameter";
910 return DW_DLV_OK;
911 case DW_AT_call_pc:
912 *s_out = "DW_AT_call_pc";
913 return DW_DLV_OK;
914 case DW_AT_call_tail_call:
915 *s_out = "DW_AT_call_tail_call";
916 return DW_DLV_OK;
917 case DW_AT_call_target:
918 *s_out = "DW_AT_call_target";
919 return DW_DLV_OK;
920 case DW_AT_call_target_clobbered:
921 *s_out = "DW_AT_call_target_clobbered";
922 return DW_DLV_OK;
923 case DW_AT_call_data_location:
924 *s_out = "DW_AT_call_data_location";
925 return DW_DLV_OK;
926 case DW_AT_call_data_value:
927 *s_out = "DW_AT_call_data_value";
928 return DW_DLV_OK;
929 case DW_AT_noreturn:
930 *s_out = "DW_AT_noreturn";
931 return DW_DLV_OK;
932 case DW_AT_alignment:
933 *s_out = "DW_AT_alignment";
934 return DW_DLV_OK;
935 case DW_AT_export_symbols:
936 *s_out = "DW_AT_export_symbols";
937 return DW_DLV_OK;
938 case DW_AT_deleted:
939 *s_out = "DW_AT_deleted";
940 return DW_DLV_OK;
941 case DW_AT_defaulted:
942 *s_out = "DW_AT_defaulted";
943 return DW_DLV_OK;
944 case DW_AT_loclists_base:
945 *s_out = "DW_AT_loclists_base";
946 return DW_DLV_OK;
947 case DW_AT_ghs_namespace_alias:
948 *s_out = "DW_AT_ghs_namespace_alias";
949 return DW_DLV_OK;
950 case DW_AT_ghs_using_namespace:
951 *s_out = "DW_AT_ghs_using_namespace";
952 return DW_DLV_OK;
953 case DW_AT_ghs_using_declaration:
954 *s_out = "DW_AT_ghs_using_declaration";
955 return DW_DLV_OK;
956 case DW_AT_HP_block_index:
957 *s_out = "DW_AT_HP_block_index";
958 return DW_DLV_OK;
959 /* Skipping alternate spelling of value
960 0x2000. DW_AT_lo_user */
961 /* Skipping alternate spelling of value
962 0x2000. DW_AT_TI_veneer */
963 case DW_AT_MIPS_fde:
964 *s_out = "DW_AT_MIPS_fde";
965 return DW_DLV_OK;
966 /* Skipping alternate spelling of value
967 0x2001. DW_AT_TI_symbol_name */
968 /* Skipping alternate spelling of value
969 0x2001. DW_AT_HP_unmodifiable */
970 /* Skipping alternate spelling of value
971 0x2001. DW_AT_CPQ_discontig_ranges */
972 case DW_AT_MIPS_loop_begin:
973 *s_out = "DW_AT_MIPS_loop_begin";
974 return DW_DLV_OK;
975 /* Skipping alternate spelling of value
976 0x2002. DW_AT_CPQ_semantic_events */
977 case DW_AT_MIPS_tail_loop_begin:
978 *s_out = "DW_AT_MIPS_tail_loop_begin";
979 return DW_DLV_OK;
980 /* Skipping alternate spelling of value
981 0x2003. DW_AT_CPQ_split_lifetimes_var */
982 case DW_AT_MIPS_epilog_begin:
983 *s_out = "DW_AT_MIPS_epilog_begin";
984 return DW_DLV_OK;
985 /* Skipping alternate spelling of value
986 0x2004. DW_AT_CPQ_split_lifetimes_rtn */
987 case DW_AT_MIPS_loop_unroll_factor:
988 *s_out = "DW_AT_MIPS_loop_unroll_factor";
989 return DW_DLV_OK;
990 /* Skipping alternate spelling of value
991 0x2005. DW_AT_HP_prologue */
992 /* Skipping alternate spelling of value
993 0x2005. DW_AT_CPQ_prologue_length */
994 case DW_AT_MIPS_software_pipeline_depth:
995 *s_out = "DW_AT_MIPS_software_pipeline_depth";
996 return DW_DLV_OK;
997 case DW_AT_MIPS_linkage_name:
998 *s_out = "DW_AT_MIPS_linkage_name";
999 return DW_DLV_OK;
1000 /* Skipping alternate spelling of value
1001 0x2007. DW_AT_ghs_mangled */
1002 case DW_AT_MIPS_stride:
1003 *s_out = "DW_AT_MIPS_stride";
1004 return DW_DLV_OK;
1005 /* Skipping alternate spelling of value
1006 0x2008. DW_AT_HP_epilogue */
1007 case DW_AT_MIPS_abstract_name:
1008 *s_out = "DW_AT_MIPS_abstract_name";
1009 return DW_DLV_OK;
1010 case DW_AT_MIPS_clone_origin:
1011 *s_out = "DW_AT_MIPS_clone_origin";
1012 return DW_DLV_OK;
1013 case DW_AT_MIPS_has_inlines:
1014 *s_out = "DW_AT_MIPS_has_inlines";
1015 return DW_DLV_OK;
1016 /* Skipping alternate spelling of value
1017 0x200b. DW_AT_TI_version */
1018 case DW_AT_MIPS_stride_byte:
1019 *s_out = "DW_AT_MIPS_stride_byte";
1020 return DW_DLV_OK;
1021 /* Skipping alternate spelling of value
1022 0x200c. DW_AT_TI_asm */
1023 case DW_AT_MIPS_stride_elem:
1024 *s_out = "DW_AT_MIPS_stride_elem";
1025 return DW_DLV_OK;
1026 case DW_AT_MIPS_ptr_dopetype:
1027 *s_out = "DW_AT_MIPS_ptr_dopetype";
1028 return DW_DLV_OK;
1029 /* Skipping alternate spelling of value
1030 0x200e. DW_AT_TI_skeletal */
1031 case DW_AT_MIPS_allocatable_dopetype:
1032 *s_out = "DW_AT_MIPS_allocatable_dopetype";
1033 return DW_DLV_OK;
1034 case DW_AT_MIPS_assumed_shape_dopetype:
1035 *s_out = "DW_AT_MIPS_assumed_shape_dopetype";
1036 return DW_DLV_OK;
1037 /* Skipping alternate spelling of value
1038 0x2010. DW_AT_HP_actuals_stmt_list */
1039 case DW_AT_MIPS_assumed_size:
1040 *s_out = "DW_AT_MIPS_assumed_size";
1041 return DW_DLV_OK;
1042 /* Skipping alternate spelling of value
1043 0x2011. DW_AT_TI_interrupt */
1044 /* Skipping alternate spelling of value
1045 0x2011. DW_AT_HP_proc_per_section */
1046 case DW_AT_HP_raw_data_ptr:
1047 *s_out = "DW_AT_HP_raw_data_ptr";
1048 return DW_DLV_OK;
1049 case DW_AT_HP_pass_by_reference:
1050 *s_out = "DW_AT_HP_pass_by_reference";
1051 return DW_DLV_OK;
1052 case DW_AT_HP_opt_level:
1053 *s_out = "DW_AT_HP_opt_level";
1054 return DW_DLV_OK;
1055 case DW_AT_HP_prof_version_id:
1056 *s_out = "DW_AT_HP_prof_version_id";
1057 return DW_DLV_OK;
1058 case DW_AT_HP_opt_flags:
1059 *s_out = "DW_AT_HP_opt_flags";
1060 return DW_DLV_OK;
1061 case DW_AT_HP_cold_region_low_pc:
1062 *s_out = "DW_AT_HP_cold_region_low_pc";
1063 return DW_DLV_OK;
1064 case DW_AT_HP_cold_region_high_pc:
1065 *s_out = "DW_AT_HP_cold_region_high_pc";
1066 return DW_DLV_OK;
1067 case DW_AT_HP_all_variables_modifiable:
1068 *s_out = "DW_AT_HP_all_variables_modifiable";
1069 return DW_DLV_OK;
1070 case DW_AT_HP_linkage_name:
1071 *s_out = "DW_AT_HP_linkage_name";
1072 return DW_DLV_OK;
1073 case DW_AT_HP_prof_flags:
1074 *s_out = "DW_AT_HP_prof_flags";
1075 return DW_DLV_OK;
1076 case DW_AT_HP_unit_name:
1077 *s_out = "DW_AT_HP_unit_name";
1078 return DW_DLV_OK;
1079 case DW_AT_HP_unit_size:
1080 *s_out = "DW_AT_HP_unit_size";
1081 return DW_DLV_OK;
1082 case DW_AT_HP_widened_byte_size:
1083 *s_out = "DW_AT_HP_widened_byte_size";
1084 return DW_DLV_OK;
1085 case DW_AT_HP_definition_points:
1086 *s_out = "DW_AT_HP_definition_points";
1087 return DW_DLV_OK;
1088 case DW_AT_HP_default_location:
1089 *s_out = "DW_AT_HP_default_location";
1090 return DW_DLV_OK;
1091 case DW_AT_INTEL_other_endian:
1092 *s_out = "DW_AT_INTEL_other_endian";
1093 return DW_DLV_OK;
1094 case DW_AT_HP_is_result_param:
1095 *s_out = "DW_AT_HP_is_result_param";
1096 return DW_DLV_OK;
1097 case DW_AT_ghs_rsm:
1098 *s_out = "DW_AT_ghs_rsm";
1099 return DW_DLV_OK;
1100 case DW_AT_ghs_frsm:
1101 *s_out = "DW_AT_ghs_frsm";
1102 return DW_DLV_OK;
1103 case DW_AT_ghs_frames:
1104 *s_out = "DW_AT_ghs_frames";
1105 return DW_DLV_OK;
1106 case DW_AT_ghs_rso:
1107 *s_out = "DW_AT_ghs_rso";
1108 return DW_DLV_OK;
1109 case DW_AT_ghs_subcpu:
1110 *s_out = "DW_AT_ghs_subcpu";
1111 return DW_DLV_OK;
1112 case DW_AT_ghs_lbrace_line:
1113 *s_out = "DW_AT_ghs_lbrace_line";
1114 return DW_DLV_OK;
1115 case DW_AT_sf_names:
1116 *s_out = "DW_AT_sf_names";
1117 return DW_DLV_OK;
1118 case DW_AT_src_info:
1119 *s_out = "DW_AT_src_info";
1120 return DW_DLV_OK;
1121 case DW_AT_mac_info:
1122 *s_out = "DW_AT_mac_info";
1123 return DW_DLV_OK;
1124 case DW_AT_src_coords:
1125 *s_out = "DW_AT_src_coords";
1126 return DW_DLV_OK;
1127 case DW_AT_body_begin:
1128 *s_out = "DW_AT_body_begin";
1129 return DW_DLV_OK;
1130 case DW_AT_body_end:
1131 *s_out = "DW_AT_body_end";
1132 return DW_DLV_OK;
1133 case DW_AT_GNU_vector:
1134 *s_out = "DW_AT_GNU_vector";
1135 return DW_DLV_OK;
1136 case DW_AT_GNU_guarded_by:
1137 *s_out = "DW_AT_GNU_guarded_by";
1138 return DW_DLV_OK;
1139 case DW_AT_GNU_pt_guarded_by:
1140 *s_out = "DW_AT_GNU_pt_guarded_by";
1141 return DW_DLV_OK;
1142 case DW_AT_GNU_guarded:
1143 *s_out = "DW_AT_GNU_guarded";
1144 return DW_DLV_OK;
1145 case DW_AT_GNU_pt_guarded:
1146 *s_out = "DW_AT_GNU_pt_guarded";
1147 return DW_DLV_OK;
1148 case DW_AT_GNU_locks_excluded:
1149 *s_out = "DW_AT_GNU_locks_excluded";
1150 return DW_DLV_OK;
1151 case DW_AT_GNU_exclusive_locks_required:
1152 *s_out = "DW_AT_GNU_exclusive_locks_required";
1153 return DW_DLV_OK;
1154 case DW_AT_GNU_shared_locks_required:
1155 *s_out = "DW_AT_GNU_shared_locks_required";
1156 return DW_DLV_OK;
1157 case DW_AT_GNU_odr_signature:
1158 *s_out = "DW_AT_GNU_odr_signature";
1159 return DW_DLV_OK;
1160 case DW_AT_GNU_template_name:
1161 *s_out = "DW_AT_GNU_template_name";
1162 return DW_DLV_OK;
1163 case DW_AT_GNU_call_site_value:
1164 *s_out = "DW_AT_GNU_call_site_value";
1165 return DW_DLV_OK;
1166 case DW_AT_GNU_call_site_data_value:
1167 *s_out = "DW_AT_GNU_call_site_data_value";
1168 return DW_DLV_OK;
1169 case DW_AT_GNU_call_site_target:
1170 *s_out = "DW_AT_GNU_call_site_target";
1171 return DW_DLV_OK;
1172 case DW_AT_GNU_call_site_target_clobbered:
1173 *s_out = "DW_AT_GNU_call_site_target_clobbered";
1174 return DW_DLV_OK;
1175 case DW_AT_GNU_tail_call:
1176 *s_out = "DW_AT_GNU_tail_call";
1177 return DW_DLV_OK;
1178 case DW_AT_GNU_all_tail_call_sites:
1179 *s_out = "DW_AT_GNU_all_tail_call_sites";
1180 return DW_DLV_OK;
1181 case DW_AT_GNU_all_call_sites:
1182 *s_out = "DW_AT_GNU_all_call_sites";
1183 return DW_DLV_OK;
1184 case DW_AT_GNU_all_source_call_sites:
1185 *s_out = "DW_AT_GNU_all_source_call_sites";
1186 return DW_DLV_OK;
1187 case DW_AT_GNU_macros:
1188 *s_out = "DW_AT_GNU_macros";
1189 return DW_DLV_OK;
1190 case DW_AT_GNU_deleted:
1191 *s_out = "DW_AT_GNU_deleted";
1192 return DW_DLV_OK;
1193 case DW_AT_GNU_dwo_name:
1194 *s_out = "DW_AT_GNU_dwo_name";
1195 return DW_DLV_OK;
1196 case DW_AT_GNU_dwo_id:
1197 *s_out = "DW_AT_GNU_dwo_id";
1198 return DW_DLV_OK;
1199 case DW_AT_GNU_ranges_base:
1200 *s_out = "DW_AT_GNU_ranges_base";
1201 return DW_DLV_OK;
1202 case DW_AT_GNU_addr_base:
1203 *s_out = "DW_AT_GNU_addr_base";
1204 return DW_DLV_OK;
1205 case DW_AT_GNU_pubnames:
1206 *s_out = "DW_AT_GNU_pubnames";
1207 return DW_DLV_OK;
1208 case DW_AT_GNU_pubtypes:
1209 *s_out = "DW_AT_GNU_pubtypes";
1210 return DW_DLV_OK;
1211 case DW_AT_GNU_discriminator:
1212 *s_out = "DW_AT_GNU_discriminator";
1213 return DW_DLV_OK;
1214 case DW_AT_GNU_locviews:
1215 *s_out = "DW_AT_GNU_locviews";
1216 return DW_DLV_OK;
1217 case DW_AT_GNU_entry_view:
1218 *s_out = "DW_AT_GNU_entry_view";
1219 return DW_DLV_OK;
1220 case DW_AT_SUN_template:
1221 *s_out = "DW_AT_SUN_template";
1222 return DW_DLV_OK;
1223 /* Skipping alternate spelling of value
1224 0x2201. DW_AT_VMS_rtnbeg_pd_address */
1225 case DW_AT_SUN_alignment:
1226 *s_out = "DW_AT_SUN_alignment";
1227 return DW_DLV_OK;
1228 case DW_AT_SUN_vtable:
1229 *s_out = "DW_AT_SUN_vtable";
1230 return DW_DLV_OK;
1231 case DW_AT_SUN_count_guarantee:
1232 *s_out = "DW_AT_SUN_count_guarantee";
1233 return DW_DLV_OK;
1234 case DW_AT_SUN_command_line:
1235 *s_out = "DW_AT_SUN_command_line";
1236 return DW_DLV_OK;
1237 case DW_AT_SUN_vbase:
1238 *s_out = "DW_AT_SUN_vbase";
1239 return DW_DLV_OK;
1240 case DW_AT_SUN_compile_options:
1241 *s_out = "DW_AT_SUN_compile_options";
1242 return DW_DLV_OK;
1243 case DW_AT_SUN_language:
1244 *s_out = "DW_AT_SUN_language";
1245 return DW_DLV_OK;
1246 case DW_AT_SUN_browser_file:
1247 *s_out = "DW_AT_SUN_browser_file";
1248 return DW_DLV_OK;
1249 case DW_AT_SUN_vtable_abi:
1250 *s_out = "DW_AT_SUN_vtable_abi";
1251 return DW_DLV_OK;
1252 case DW_AT_SUN_func_offsets:
1253 *s_out = "DW_AT_SUN_func_offsets";
1254 return DW_DLV_OK;
1255 case DW_AT_SUN_cf_kind:
1256 *s_out = "DW_AT_SUN_cf_kind";
1257 return DW_DLV_OK;
1258 case DW_AT_SUN_vtable_index:
1259 *s_out = "DW_AT_SUN_vtable_index";
1260 return DW_DLV_OK;
1261 case DW_AT_SUN_omp_tpriv_addr:
1262 *s_out = "DW_AT_SUN_omp_tpriv_addr";
1263 return DW_DLV_OK;
1264 case DW_AT_SUN_omp_child_func:
1265 *s_out = "DW_AT_SUN_omp_child_func";
1266 return DW_DLV_OK;
1267 case DW_AT_SUN_func_offset:
1268 *s_out = "DW_AT_SUN_func_offset";
1269 return DW_DLV_OK;
1270 case DW_AT_SUN_memop_type_ref:
1271 *s_out = "DW_AT_SUN_memop_type_ref";
1272 return DW_DLV_OK;
1273 case DW_AT_SUN_profile_id:
1274 *s_out = "DW_AT_SUN_profile_id";
1275 return DW_DLV_OK;
1276 case DW_AT_SUN_memop_signature:
1277 *s_out = "DW_AT_SUN_memop_signature";
1278 return DW_DLV_OK;
1279 case DW_AT_SUN_obj_dir:
1280 *s_out = "DW_AT_SUN_obj_dir";
1281 return DW_DLV_OK;
1282 case DW_AT_SUN_obj_file:
1283 *s_out = "DW_AT_SUN_obj_file";
1284 return DW_DLV_OK;
1285 case DW_AT_SUN_original_name:
1286 *s_out = "DW_AT_SUN_original_name";
1287 return DW_DLV_OK;
1288 case DW_AT_SUN_hwcprof_signature:
1289 *s_out = "DW_AT_SUN_hwcprof_signature";
1290 return DW_DLV_OK;
1291 case DW_AT_SUN_amd64_parmdump:
1292 *s_out = "DW_AT_SUN_amd64_parmdump";
1293 return DW_DLV_OK;
1294 case DW_AT_SUN_part_link_name:
1295 *s_out = "DW_AT_SUN_part_link_name";
1296 return DW_DLV_OK;
1297 case DW_AT_SUN_link_name:
1298 *s_out = "DW_AT_SUN_link_name";
1299 return DW_DLV_OK;
1300 case DW_AT_SUN_pass_with_const:
1301 *s_out = "DW_AT_SUN_pass_with_const";
1302 return DW_DLV_OK;
1303 case DW_AT_SUN_return_with_const:
1304 *s_out = "DW_AT_SUN_return_with_const";
1305 return DW_DLV_OK;
1306 case DW_AT_SUN_import_by_name:
1307 *s_out = "DW_AT_SUN_import_by_name";
1308 return DW_DLV_OK;
1309 case DW_AT_SUN_f90_pointer:
1310 *s_out = "DW_AT_SUN_f90_pointer";
1311 return DW_DLV_OK;
1312 case DW_AT_SUN_pass_by_ref:
1313 *s_out = "DW_AT_SUN_pass_by_ref";
1314 return DW_DLV_OK;
1315 case DW_AT_SUN_f90_allocatable:
1316 *s_out = "DW_AT_SUN_f90_allocatable";
1317 return DW_DLV_OK;
1318 case DW_AT_SUN_f90_assumed_shape_array:
1319 *s_out = "DW_AT_SUN_f90_assumed_shape_array";
1320 return DW_DLV_OK;
1321 case DW_AT_SUN_c_vla:
1322 *s_out = "DW_AT_SUN_c_vla";
1323 return DW_DLV_OK;
1324 case DW_AT_SUN_return_value_ptr:
1325 *s_out = "DW_AT_SUN_return_value_ptr";
1326 return DW_DLV_OK;
1327 case DW_AT_SUN_dtor_start:
1328 *s_out = "DW_AT_SUN_dtor_start";
1329 return DW_DLV_OK;
1330 case DW_AT_SUN_dtor_length:
1331 *s_out = "DW_AT_SUN_dtor_length";
1332 return DW_DLV_OK;
1333 case DW_AT_SUN_dtor_state_initial:
1334 *s_out = "DW_AT_SUN_dtor_state_initial";
1335 return DW_DLV_OK;
1336 case DW_AT_SUN_dtor_state_final:
1337 *s_out = "DW_AT_SUN_dtor_state_final";
1338 return DW_DLV_OK;
1339 case DW_AT_SUN_dtor_state_deltas:
1340 *s_out = "DW_AT_SUN_dtor_state_deltas";
1341 return DW_DLV_OK;
1342 case DW_AT_SUN_import_by_lname:
1343 *s_out = "DW_AT_SUN_import_by_lname";
1344 return DW_DLV_OK;
1345 case DW_AT_SUN_f90_use_only:
1346 *s_out = "DW_AT_SUN_f90_use_only";
1347 return DW_DLV_OK;
1348 case DW_AT_SUN_namelist_spec:
1349 *s_out = "DW_AT_SUN_namelist_spec";
1350 return DW_DLV_OK;
1351 case DW_AT_SUN_is_omp_child_func:
1352 *s_out = "DW_AT_SUN_is_omp_child_func";
1353 return DW_DLV_OK;
1354 case DW_AT_SUN_fortran_main_alias:
1355 *s_out = "DW_AT_SUN_fortran_main_alias";
1356 return DW_DLV_OK;
1357 case DW_AT_SUN_fortran_based:
1358 *s_out = "DW_AT_SUN_fortran_based";
1359 return DW_DLV_OK;
1360 case DW_AT_ALTIUM_loclist:
1361 *s_out = "DW_AT_ALTIUM_loclist";
1362 return DW_DLV_OK;
1363 case DW_AT_use_GNAT_descriptive_type:
1364 *s_out = "DW_AT_use_GNAT_descriptive_type";
1365 return DW_DLV_OK;
1366 case DW_AT_GNAT_descriptive_type:
1367 *s_out = "DW_AT_GNAT_descriptive_type";
1368 return DW_DLV_OK;
1369 case DW_AT_GNU_numerator:
1370 *s_out = "DW_AT_GNU_numerator";
1371 return DW_DLV_OK;
1372 case DW_AT_GNU_denominator:
1373 *s_out = "DW_AT_GNU_denominator";
1374 return DW_DLV_OK;
1375 case DW_AT_GNU_bias:
1376 *s_out = "DW_AT_GNU_bias";
1377 return DW_DLV_OK;
1378 case DW_AT_go_kind:
1379 *s_out = "DW_AT_go_kind";
1380 return DW_DLV_OK;
1381 case DW_AT_go_key:
1382 *s_out = "DW_AT_go_key";
1383 return DW_DLV_OK;
1384 case DW_AT_go_elem:
1385 *s_out = "DW_AT_go_elem";
1386 return DW_DLV_OK;
1387 case DW_AT_go_embedded_field:
1388 *s_out = "DW_AT_go_embedded_field";
1389 return DW_DLV_OK;
1390 case DW_AT_go_runtime_type:
1391 *s_out = "DW_AT_go_runtime_type";
1392 return DW_DLV_OK;
1393 case DW_AT_upc_threads_scaled:
1394 *s_out = "DW_AT_upc_threads_scaled";
1395 return DW_DLV_OK;
1396 case DW_AT_IBM_wsa_addr:
1397 *s_out = "DW_AT_IBM_wsa_addr";
1398 return DW_DLV_OK;
1399 case DW_AT_IBM_home_location:
1400 *s_out = "DW_AT_IBM_home_location";
1401 return DW_DLV_OK;
1402 case DW_AT_IBM_alt_srcview:
1403 *s_out = "DW_AT_IBM_alt_srcview";
1404 return DW_DLV_OK;
1405 case DW_AT_PGI_lbase:
1406 *s_out = "DW_AT_PGI_lbase";
1407 return DW_DLV_OK;
1408 case DW_AT_PGI_soffset:
1409 *s_out = "DW_AT_PGI_soffset";
1410 return DW_DLV_OK;
1411 case DW_AT_PGI_lstride:
1412 *s_out = "DW_AT_PGI_lstride";
1413 return DW_DLV_OK;
1414 case DW_AT_BORLAND_property_read:
1415 *s_out = "DW_AT_BORLAND_property_read";
1416 return DW_DLV_OK;
1417 case DW_AT_BORLAND_property_write:
1418 *s_out = "DW_AT_BORLAND_property_write";
1419 return DW_DLV_OK;
1420 case DW_AT_BORLAND_property_implements:
1421 *s_out = "DW_AT_BORLAND_property_implements";
1422 return DW_DLV_OK;
1423 case DW_AT_BORLAND_property_index:
1424 *s_out = "DW_AT_BORLAND_property_index";
1425 return DW_DLV_OK;
1426 case DW_AT_BORLAND_property_default:
1427 *s_out = "DW_AT_BORLAND_property_default";
1428 return DW_DLV_OK;
1429 case DW_AT_BORLAND_Delphi_unit:
1430 *s_out = "DW_AT_BORLAND_Delphi_unit";
1431 return DW_DLV_OK;
1432 case DW_AT_BORLAND_Delphi_class:
1433 *s_out = "DW_AT_BORLAND_Delphi_class";
1434 return DW_DLV_OK;
1435 case DW_AT_BORLAND_Delphi_record:
1436 *s_out = "DW_AT_BORLAND_Delphi_record";
1437 return DW_DLV_OK;
1438 case DW_AT_BORLAND_Delphi_metaclass:
1439 *s_out = "DW_AT_BORLAND_Delphi_metaclass";
1440 return DW_DLV_OK;
1441 case DW_AT_BORLAND_Delphi_constructor:
1442 *s_out = "DW_AT_BORLAND_Delphi_constructor";
1443 return DW_DLV_OK;
1444 case DW_AT_BORLAND_Delphi_destructor:
1445 *s_out = "DW_AT_BORLAND_Delphi_destructor";
1446 return DW_DLV_OK;
1447 case DW_AT_BORLAND_Delphi_anonymous_method:
1448 *s_out = "DW_AT_BORLAND_Delphi_anonymous_method";
1449 return DW_DLV_OK;
1450 case DW_AT_BORLAND_Delphi_interface:
1451 *s_out = "DW_AT_BORLAND_Delphi_interface";
1452 return DW_DLV_OK;
1453 case DW_AT_BORLAND_Delphi_ABI:
1454 *s_out = "DW_AT_BORLAND_Delphi_ABI";
1455 return DW_DLV_OK;
1456 case DW_AT_BORLAND_Delphi_frameptr:
1457 *s_out = "DW_AT_BORLAND_Delphi_frameptr";
1458 return DW_DLV_OK;
1459 case DW_AT_BORLAND_closure:
1460 *s_out = "DW_AT_BORLAND_closure";
1461 return DW_DLV_OK;
1462 case DW_AT_LLVM_include_path:
1463 *s_out = "DW_AT_LLVM_include_path";
1464 return DW_DLV_OK;
1465 case DW_AT_LLVM_config_macros:
1466 *s_out = "DW_AT_LLVM_config_macros";
1467 return DW_DLV_OK;
1468 case DW_AT_LLVM_sysroot:
1469 *s_out = "DW_AT_LLVM_sysroot";
1470 return DW_DLV_OK;
1471 case DW_AT_LLVM_tag_offset:
1472 *s_out = "DW_AT_LLVM_tag_offset";
1473 return DW_DLV_OK;
1474 case DW_AT_LLVM_apinotes:
1475 *s_out = "DW_AT_LLVM_apinotes";
1476 return DW_DLV_OK;
1477 case DW_AT_LLVM_active_lane:
1478 *s_out = "DW_AT_LLVM_active_lane";
1479 return DW_DLV_OK;
1480 case DW_AT_LLVM_augmentation:
1481 *s_out = "DW_AT_LLVM_augmentation";
1482 return DW_DLV_OK;
1483 case DW_AT_LLVM_lanes:
1484 *s_out = "DW_AT_LLVM_lanes";
1485 return DW_DLV_OK;
1486 case DW_AT_LLVM_lane_pc:
1487 *s_out = "DW_AT_LLVM_lane_pc";
1488 return DW_DLV_OK;
1489 case DW_AT_LLVM_vector_size:
1490 *s_out = "DW_AT_LLVM_vector_size";
1491 return DW_DLV_OK;
1492 case DW_AT_APPLE_optimized:
1493 *s_out = "DW_AT_APPLE_optimized";
1494 return DW_DLV_OK;
1495 case DW_AT_APPLE_flags:
1496 *s_out = "DW_AT_APPLE_flags";
1497 return DW_DLV_OK;
1498 case DW_AT_APPLE_isa:
1499 *s_out = "DW_AT_APPLE_isa";
1500 return DW_DLV_OK;
1501 case DW_AT_APPLE_block:
1502 *s_out = "DW_AT_APPLE_block";
1503 return DW_DLV_OK;
1504 case DW_AT_APPLE_major_runtime_vers:
1505 *s_out = "DW_AT_APPLE_major_runtime_vers";
1506 return DW_DLV_OK;
1507 case DW_AT_APPLE_runtime_class:
1508 *s_out = "DW_AT_APPLE_runtime_class";
1509 return DW_DLV_OK;
1510 case DW_AT_APPLE_omit_frame_ptr:
1511 *s_out = "DW_AT_APPLE_omit_frame_ptr";
1512 return DW_DLV_OK;
1513 case DW_AT_APPLE_property_name:
1514 *s_out = "DW_AT_APPLE_property_name";
1515 return DW_DLV_OK;
1516 case DW_AT_APPLE_property_getter:
1517 *s_out = "DW_AT_APPLE_property_getter";
1518 return DW_DLV_OK;
1519 case DW_AT_APPLE_property_setter:
1520 *s_out = "DW_AT_APPLE_property_setter";
1521 return DW_DLV_OK;
1522 case DW_AT_APPLE_property_attribute:
1523 *s_out = "DW_AT_APPLE_property_attribute";
1524 return DW_DLV_OK;
1525 case DW_AT_APPLE_objc_complete_type:
1526 *s_out = "DW_AT_APPLE_objc_complete_type";
1527 return DW_DLV_OK;
1528 case DW_AT_APPLE_property:
1529 *s_out = "DW_AT_APPLE_property";
1530 return DW_DLV_OK;
1531 case DW_AT_APPLE_objc_direct:
1532 *s_out = "DW_AT_APPLE_objc_direct";
1533 return DW_DLV_OK;
1534 case DW_AT_APPLE_sdk:
1535 *s_out = "DW_AT_APPLE_sdk";
1536 return DW_DLV_OK;
1537 case DW_AT_APPLE_origin:
1538 *s_out = "DW_AT_APPLE_origin";
1539 return DW_DLV_OK;
1540 case DW_AT_hi_user:
1541 *s_out = "DW_AT_hi_user";
1542 return DW_DLV_OK;
1543 default: break;
1544 }
1545 return DW_DLV_NO_ENTRY;
1546 }
1547 /* ARGSUSED */
1548 int
1549 dwarf_get_OP_name (unsigned int val,
1550 const char ** s_out)
1551 {
1552 switch (val) {
1553 case DW_OP_addr:
1554 *s_out = "DW_OP_addr";
1555 return DW_DLV_OK;
1556 case DW_OP_deref:
1557 *s_out = "DW_OP_deref";
1558 return DW_DLV_OK;
1559 case DW_OP_const1u:
1560 *s_out = "DW_OP_const1u";
1561 return DW_DLV_OK;
1562 case DW_OP_const1s:
1563 *s_out = "DW_OP_const1s";
1564 return DW_DLV_OK;
1565 case DW_OP_const2u:
1566 *s_out = "DW_OP_const2u";
1567 return DW_DLV_OK;
1568 case DW_OP_const2s:
1569 *s_out = "DW_OP_const2s";
1570 return DW_DLV_OK;
1571 case DW_OP_const4u:
1572 *s_out = "DW_OP_const4u";
1573 return DW_DLV_OK;
1574 case DW_OP_const4s:
1575 *s_out = "DW_OP_const4s";
1576 return DW_DLV_OK;
1577 case DW_OP_const8u:
1578 *s_out = "DW_OP_const8u";
1579 return DW_DLV_OK;
1580 case DW_OP_const8s:
1581 *s_out = "DW_OP_const8s";
1582 return DW_DLV_OK;
1583 case DW_OP_constu:
1584 *s_out = "DW_OP_constu";
1585 return DW_DLV_OK;
1586 case DW_OP_consts:
1587 *s_out = "DW_OP_consts";
1588 return DW_DLV_OK;
1589 case DW_OP_dup:
1590 *s_out = "DW_OP_dup";
1591 return DW_DLV_OK;
1592 case DW_OP_drop:
1593 *s_out = "DW_OP_drop";
1594 return DW_DLV_OK;
1595 case DW_OP_over:
1596 *s_out = "DW_OP_over";
1597 return DW_DLV_OK;
1598 case DW_OP_pick:
1599 *s_out = "DW_OP_pick";
1600 return DW_DLV_OK;
1601 case DW_OP_swap:
1602 *s_out = "DW_OP_swap";
1603 return DW_DLV_OK;
1604 case DW_OP_rot:
1605 *s_out = "DW_OP_rot";
1606 return DW_DLV_OK;
1607 case DW_OP_xderef:
1608 *s_out = "DW_OP_xderef";
1609 return DW_DLV_OK;
1610 case DW_OP_abs:
1611 *s_out = "DW_OP_abs";
1612 return DW_DLV_OK;
1613 case DW_OP_and:
1614 *s_out = "DW_OP_and";
1615 return DW_DLV_OK;
1616 case DW_OP_div:
1617 *s_out = "DW_OP_div";
1618 return DW_DLV_OK;
1619 case DW_OP_minus:
1620 *s_out = "DW_OP_minus";
1621 return DW_DLV_OK;
1622 case DW_OP_mod:
1623 *s_out = "DW_OP_mod";
1624 return DW_DLV_OK;
1625 case DW_OP_mul:
1626 *s_out = "DW_OP_mul";
1627 return DW_DLV_OK;
1628 case DW_OP_neg:
1629 *s_out = "DW_OP_neg";
1630 return DW_DLV_OK;
1631 case DW_OP_not:
1632 *s_out = "DW_OP_not";
1633 return DW_DLV_OK;
1634 case DW_OP_or:
1635 *s_out = "DW_OP_or";
1636 return DW_DLV_OK;
1637 case DW_OP_plus:
1638 *s_out = "DW_OP_plus";
1639 return DW_DLV_OK;
1640 case DW_OP_plus_uconst:
1641 *s_out = "DW_OP_plus_uconst";
1642 return DW_DLV_OK;
1643 case DW_OP_shl:
1644 *s_out = "DW_OP_shl";
1645 return DW_DLV_OK;
1646 case DW_OP_shr:
1647 *s_out = "DW_OP_shr";
1648 return DW_DLV_OK;
1649 case DW_OP_shra:
1650 *s_out = "DW_OP_shra";
1651 return DW_DLV_OK;
1652 case DW_OP_xor:
1653 *s_out = "DW_OP_xor";
1654 return DW_DLV_OK;
1655 case DW_OP_bra:
1656 *s_out = "DW_OP_bra";
1657 return DW_DLV_OK;
1658 case DW_OP_eq:
1659 *s_out = "DW_OP_eq";
1660 return DW_DLV_OK;
1661 case DW_OP_ge:
1662 *s_out = "DW_OP_ge";
1663 return DW_DLV_OK;
1664 case DW_OP_gt:
1665 *s_out = "DW_OP_gt";
1666 return DW_DLV_OK;
1667 case DW_OP_le:
1668 *s_out = "DW_OP_le";
1669 return DW_DLV_OK;
1670 case DW_OP_lt:
1671 *s_out = "DW_OP_lt";
1672 return DW_DLV_OK;
1673 case DW_OP_ne:
1674 *s_out = "DW_OP_ne";
1675 return DW_DLV_OK;
1676 case DW_OP_skip:
1677 *s_out = "DW_OP_skip";
1678 return DW_DLV_OK;
1679 case DW_OP_lit0:
1680 *s_out = "DW_OP_lit0";
1681 return DW_DLV_OK;
1682 case DW_OP_lit1:
1683 *s_out = "DW_OP_lit1";
1684 return DW_DLV_OK;
1685 case DW_OP_lit2:
1686 *s_out = "DW_OP_lit2";
1687 return DW_DLV_OK;
1688 case DW_OP_lit3:
1689 *s_out = "DW_OP_lit3";
1690 return DW_DLV_OK;
1691 case DW_OP_lit4:
1692 *s_out = "DW_OP_lit4";
1693 return DW_DLV_OK;
1694 case DW_OP_lit5:
1695 *s_out = "DW_OP_lit5";
1696 return DW_DLV_OK;
1697 case DW_OP_lit6:
1698 *s_out = "DW_OP_lit6";
1699 return DW_DLV_OK;
1700 case DW_OP_lit7:
1701 *s_out = "DW_OP_lit7";
1702 return DW_DLV_OK;
1703 case DW_OP_lit8:
1704 *s_out = "DW_OP_lit8";
1705 return DW_DLV_OK;
1706 case DW_OP_lit9:
1707 *s_out = "DW_OP_lit9";
1708 return DW_DLV_OK;
1709 case DW_OP_lit10:
1710 *s_out = "DW_OP_lit10";
1711 return DW_DLV_OK;
1712 case DW_OP_lit11:
1713 *s_out = "DW_OP_lit11";
1714 return DW_DLV_OK;
1715 case DW_OP_lit12:
1716 *s_out = "DW_OP_lit12";
1717 return DW_DLV_OK;
1718 case DW_OP_lit13:
1719 *s_out = "DW_OP_lit13";
1720 return DW_DLV_OK;
1721 case DW_OP_lit14:
1722 *s_out = "DW_OP_lit14";
1723 return DW_DLV_OK;
1724 case DW_OP_lit15:
1725 *s_out = "DW_OP_lit15";
1726 return DW_DLV_OK;
1727 case DW_OP_lit16:
1728 *s_out = "DW_OP_lit16";
1729 return DW_DLV_OK;
1730 case DW_OP_lit17:
1731 *s_out = "DW_OP_lit17";
1732 return DW_DLV_OK;
1733 case DW_OP_lit18:
1734 *s_out = "DW_OP_lit18";
1735 return DW_DLV_OK;
1736 case DW_OP_lit19:
1737 *s_out = "DW_OP_lit19";
1738 return DW_DLV_OK;
1739 case DW_OP_lit20:
1740 *s_out = "DW_OP_lit20";
1741 return DW_DLV_OK;
1742 case DW_OP_lit21:
1743 *s_out = "DW_OP_lit21";
1744 return DW_DLV_OK;
1745 case DW_OP_lit22:
1746 *s_out = "DW_OP_lit22";
1747 return DW_DLV_OK;
1748 case DW_OP_lit23:
1749 *s_out = "DW_OP_lit23";
1750 return DW_DLV_OK;
1751 case DW_OP_lit24:
1752 *s_out = "DW_OP_lit24";
1753 return DW_DLV_OK;
1754 case DW_OP_lit25:
1755 *s_out = "DW_OP_lit25";
1756 return DW_DLV_OK;
1757 case DW_OP_lit26:
1758 *s_out = "DW_OP_lit26";
1759 return DW_DLV_OK;
1760 case DW_OP_lit27:
1761 *s_out = "DW_OP_lit27";
1762 return DW_DLV_OK;
1763 case DW_OP_lit28:
1764 *s_out = "DW_OP_lit28";
1765 return DW_DLV_OK;
1766 case DW_OP_lit29:
1767 *s_out = "DW_OP_lit29";
1768 return DW_DLV_OK;
1769 case DW_OP_lit30:
1770 *s_out = "DW_OP_lit30";
1771 return DW_DLV_OK;
1772 case DW_OP_lit31:
1773 *s_out = "DW_OP_lit31";
1774 return DW_DLV_OK;
1775 case DW_OP_reg0:
1776 *s_out = "DW_OP_reg0";
1777 return DW_DLV_OK;
1778 case DW_OP_reg1:
1779 *s_out = "DW_OP_reg1";
1780 return DW_DLV_OK;
1781 case DW_OP_reg2:
1782 *s_out = "DW_OP_reg2";
1783 return DW_DLV_OK;
1784 case DW_OP_reg3:
1785 *s_out = "DW_OP_reg3";
1786 return DW_DLV_OK;
1787 case DW_OP_reg4:
1788 *s_out = "DW_OP_reg4";
1789 return DW_DLV_OK;
1790 case DW_OP_reg5:
1791 *s_out = "DW_OP_reg5";
1792 return DW_DLV_OK;
1793 case DW_OP_reg6:
1794 *s_out = "DW_OP_reg6";
1795 return DW_DLV_OK;
1796 case DW_OP_reg7:
1797 *s_out = "DW_OP_reg7";
1798 return DW_DLV_OK;
1799 case DW_OP_reg8:
1800 *s_out = "DW_OP_reg8";
1801 return DW_DLV_OK;
1802 case DW_OP_reg9:
1803 *s_out = "DW_OP_reg9";
1804 return DW_DLV_OK;
1805 case DW_OP_reg10:
1806 *s_out = "DW_OP_reg10";
1807 return DW_DLV_OK;
1808 case DW_OP_reg11:
1809 *s_out = "DW_OP_reg11";
1810 return DW_DLV_OK;
1811 case DW_OP_reg12:
1812 *s_out = "DW_OP_reg12";
1813 return DW_DLV_OK;
1814 case DW_OP_reg13:
1815 *s_out = "DW_OP_reg13";
1816 return DW_DLV_OK;
1817 case DW_OP_reg14:
1818 *s_out = "DW_OP_reg14";
1819 return DW_DLV_OK;
1820 case DW_OP_reg15:
1821 *s_out = "DW_OP_reg15";
1822 return DW_DLV_OK;
1823 case DW_OP_reg16:
1824 *s_out = "DW_OP_reg16";
1825 return DW_DLV_OK;
1826 case DW_OP_reg17:
1827 *s_out = "DW_OP_reg17";
1828 return DW_DLV_OK;
1829 case DW_OP_reg18:
1830 *s_out = "DW_OP_reg18";
1831 return DW_DLV_OK;
1832 case DW_OP_reg19:
1833 *s_out = "DW_OP_reg19";
1834 return DW_DLV_OK;
1835 case DW_OP_reg20:
1836 *s_out = "DW_OP_reg20";
1837 return DW_DLV_OK;
1838 case DW_OP_reg21:
1839 *s_out = "DW_OP_reg21";
1840 return DW_DLV_OK;
1841 case DW_OP_reg22:
1842 *s_out = "DW_OP_reg22";
1843 return DW_DLV_OK;
1844 case DW_OP_reg23:
1845 *s_out = "DW_OP_reg23";
1846 return DW_DLV_OK;
1847 case DW_OP_reg24:
1848 *s_out = "DW_OP_reg24";
1849 return DW_DLV_OK;
1850 case DW_OP_reg25:
1851 *s_out = "DW_OP_reg25";
1852 return DW_DLV_OK;
1853 case DW_OP_reg26:
1854 *s_out = "DW_OP_reg26";
1855 return DW_DLV_OK;
1856 case DW_OP_reg27:
1857 *s_out = "DW_OP_reg27";
1858 return DW_DLV_OK;
1859 case DW_OP_reg28:
1860 *s_out = "DW_OP_reg28";
1861 return DW_DLV_OK;
1862 case DW_OP_reg29:
1863 *s_out = "DW_OP_reg29";
1864 return DW_DLV_OK;
1865 case DW_OP_reg30:
1866 *s_out = "DW_OP_reg30";
1867 return DW_DLV_OK;
1868 case DW_OP_reg31:
1869 *s_out = "DW_OP_reg31";
1870 return DW_DLV_OK;
1871 case DW_OP_breg0:
1872 *s_out = "DW_OP_breg0";
1873 return DW_DLV_OK;
1874 case DW_OP_breg1:
1875 *s_out = "DW_OP_breg1";
1876 return DW_DLV_OK;
1877 case DW_OP_breg2:
1878 *s_out = "DW_OP_breg2";
1879 return DW_DLV_OK;
1880 case DW_OP_breg3:
1881 *s_out = "DW_OP_breg3";
1882 return DW_DLV_OK;
1883 case DW_OP_breg4:
1884 *s_out = "DW_OP_breg4";
1885 return DW_DLV_OK;
1886 case DW_OP_breg5:
1887 *s_out = "DW_OP_breg5";
1888 return DW_DLV_OK;
1889 case DW_OP_breg6:
1890 *s_out = "DW_OP_breg6";
1891 return DW_DLV_OK;
1892 case DW_OP_breg7:
1893 *s_out = "DW_OP_breg7";
1894 return DW_DLV_OK;
1895 case DW_OP_breg8:
1896 *s_out = "DW_OP_breg8";
1897 return DW_DLV_OK;
1898 case DW_OP_breg9:
1899 *s_out = "DW_OP_breg9";
1900 return DW_DLV_OK;
1901 case DW_OP_breg10:
1902 *s_out = "DW_OP_breg10";
1903 return DW_DLV_OK;
1904 case DW_OP_breg11:
1905 *s_out = "DW_OP_breg11";
1906 return DW_DLV_OK;
1907 case DW_OP_breg12:
1908 *s_out = "DW_OP_breg12";
1909 return DW_DLV_OK;
1910 case DW_OP_breg13:
1911 *s_out = "DW_OP_breg13";
1912 return DW_DLV_OK;
1913 case DW_OP_breg14:
1914 *s_out = "DW_OP_breg14";
1915 return DW_DLV_OK;
1916 case DW_OP_breg15:
1917 *s_out = "DW_OP_breg15";
1918 return DW_DLV_OK;
1919 case DW_OP_breg16:
1920 *s_out = "DW_OP_breg16";
1921 return DW_DLV_OK;
1922 case DW_OP_breg17:
1923 *s_out = "DW_OP_breg17";
1924 return DW_DLV_OK;
1925 case DW_OP_breg18:
1926 *s_out = "DW_OP_breg18";
1927 return DW_DLV_OK;
1928 case DW_OP_breg19:
1929 *s_out = "DW_OP_breg19";
1930 return DW_DLV_OK;
1931 case DW_OP_breg20:
1932 *s_out = "DW_OP_breg20";
1933 return DW_DLV_OK;
1934 case DW_OP_breg21:
1935 *s_out = "DW_OP_breg21";
1936 return DW_DLV_OK;
1937 case DW_OP_breg22:
1938 *s_out = "DW_OP_breg22";
1939 return DW_DLV_OK;
1940 case DW_OP_breg23:
1941 *s_out = "DW_OP_breg23";
1942 return DW_DLV_OK;
1943 case DW_OP_breg24:
1944 *s_out = "DW_OP_breg24";
1945 return DW_DLV_OK;
1946 case DW_OP_breg25:
1947 *s_out = "DW_OP_breg25";
1948 return DW_DLV_OK;
1949 case DW_OP_breg26:
1950 *s_out = "DW_OP_breg26";
1951 return DW_DLV_OK;
1952 case DW_OP_breg27:
1953 *s_out = "DW_OP_breg27";
1954 return DW_DLV_OK;
1955 case DW_OP_breg28:
1956 *s_out = "DW_OP_breg28";
1957 return DW_DLV_OK;
1958 case DW_OP_breg29:
1959 *s_out = "DW_OP_breg29";
1960 return DW_DLV_OK;
1961 case DW_OP_breg30:
1962 *s_out = "DW_OP_breg30";
1963 return DW_DLV_OK;
1964 case DW_OP_breg31:
1965 *s_out = "DW_OP_breg31";
1966 return DW_DLV_OK;
1967 case DW_OP_regx:
1968 *s_out = "DW_OP_regx";
1969 return DW_DLV_OK;
1970 case DW_OP_fbreg:
1971 *s_out = "DW_OP_fbreg";
1972 return DW_DLV_OK;
1973 case DW_OP_bregx:
1974 *s_out = "DW_OP_bregx";
1975 return DW_DLV_OK;
1976 case DW_OP_piece:
1977 *s_out = "DW_OP_piece";
1978 return DW_DLV_OK;
1979 case DW_OP_deref_size:
1980 *s_out = "DW_OP_deref_size";
1981 return DW_DLV_OK;
1982 case DW_OP_xderef_size:
1983 *s_out = "DW_OP_xderef_size";
1984 return DW_DLV_OK;
1985 case DW_OP_nop:
1986 *s_out = "DW_OP_nop";
1987 return DW_DLV_OK;
1988 case DW_OP_push_object_address:
1989 *s_out = "DW_OP_push_object_address";
1990 return DW_DLV_OK;
1991 case DW_OP_call2:
1992 *s_out = "DW_OP_call2";
1993 return DW_DLV_OK;
1994 case DW_OP_call4:
1995 *s_out = "DW_OP_call4";
1996 return DW_DLV_OK;
1997 case DW_OP_call_ref:
1998 *s_out = "DW_OP_call_ref";
1999 return DW_DLV_OK;
2000 case DW_OP_form_tls_address:
2001 *s_out = "DW_OP_form_tls_address";
2002 return DW_DLV_OK;
2003 case DW_OP_call_frame_cfa:
2004 *s_out = "DW_OP_call_frame_cfa";
2005 return DW_DLV_OK;
2006 case DW_OP_bit_piece:
2007 *s_out = "DW_OP_bit_piece";
2008 return DW_DLV_OK;
2009 case DW_OP_implicit_value:
2010 *s_out = "DW_OP_implicit_value";
2011 return DW_DLV_OK;
2012 case DW_OP_stack_value:
2013 *s_out = "DW_OP_stack_value";
2014 return DW_DLV_OK;
2015 case DW_OP_implicit_pointer:
2016 *s_out = "DW_OP_implicit_pointer";
2017 return DW_DLV_OK;
2018 case DW_OP_addrx:
2019 *s_out = "DW_OP_addrx";
2020 return DW_DLV_OK;
2021 case DW_OP_constx:
2022 *s_out = "DW_OP_constx";
2023 return DW_DLV_OK;
2024 case DW_OP_entry_value:
2025 *s_out = "DW_OP_entry_value";
2026 return DW_DLV_OK;
2027 case DW_OP_const_type:
2028 *s_out = "DW_OP_const_type";
2029 return DW_DLV_OK;
2030 case DW_OP_regval_type:
2031 *s_out = "DW_OP_regval_type";
2032 return DW_DLV_OK;
2033 case DW_OP_deref_type:
2034 *s_out = "DW_OP_deref_type";
2035 return DW_DLV_OK;
2036 case DW_OP_xderef_type:
2037 *s_out = "DW_OP_xderef_type";
2038 return DW_DLV_OK;
2039 case DW_OP_convert:
2040 *s_out = "DW_OP_convert";
2041 return DW_DLV_OK;
2042 case DW_OP_reinterpret:
2043 *s_out = "DW_OP_reinterpret";
2044 return DW_DLV_OK;
2045 case DW_OP_GNU_push_tls_address:
2046 *s_out = "DW_OP_GNU_push_tls_address";
2047 return DW_DLV_OK;
2048 /* Skipping alternate spelling of value
2049 0xe0. DW_OP_lo_user */
2050 /* Skipping alternate spelling of value
2051 0xe0. DW_OP_HP_unknown */
2052 case DW_OP_LLVM_form_aspace_address:
2053 *s_out = "DW_OP_LLVM_form_aspace_address";
2054 return DW_DLV_OK;
2055 /* Skipping alternate spelling of value
2056 0xe1. DW_OP_HP_is_value */
2057 case DW_OP_LLVM_push_lane:
2058 *s_out = "DW_OP_LLVM_push_lane";
2059 return DW_DLV_OK;
2060 /* Skipping alternate spelling of value
2061 0xe2. DW_OP_HP_fltconst4 */
2062 case DW_OP_LLVM_offset:
2063 *s_out = "DW_OP_LLVM_offset";
2064 return DW_DLV_OK;
2065 /* Skipping alternate spelling of value
2066 0xe3. DW_OP_HP_fltconst8 */
2067 case DW_OP_LLVM_offset_uconst:
2068 *s_out = "DW_OP_LLVM_offset_uconst";
2069 return DW_DLV_OK;
2070 /* Skipping alternate spelling of value
2071 0xe4. DW_OP_HP_mod_range */
2072 case DW_OP_LLVM_bit_offset:
2073 *s_out = "DW_OP_LLVM_bit_offset";
2074 return DW_DLV_OK;
2075 /* Skipping alternate spelling of value
2076 0xe5. DW_OP_HP_unmod_range */
2077 case DW_OP_LLVM_call_frame_entry_reg:
2078 *s_out = "DW_OP_LLVM_call_frame_entry_reg";
2079 return DW_DLV_OK;
2080 /* Skipping alternate spelling of value
2081 0xe6. DW_OP_HP_tls */
2082 case DW_OP_LLVM_undefined:
2083 *s_out = "DW_OP_LLVM_undefined";
2084 return DW_DLV_OK;
2085 case DW_OP_LLVM_aspace_bregx:
2086 *s_out = "DW_OP_LLVM_aspace_bregx";
2087 return DW_DLV_OK;
2088 /* Skipping alternate spelling of value
2089 0xe8. DW_OP_INTEL_bit_piece */
2090 case DW_OP_LLVM_aspace_implicit_pointer:
2091 *s_out = "DW_OP_LLVM_aspace_implicit_pointer";
2092 return DW_DLV_OK;
2093 case DW_OP_LLVM_piece_end:
2094 *s_out = "DW_OP_LLVM_piece_end";
2095 return DW_DLV_OK;
2096 case DW_OP_LLVM_extend:
2097 *s_out = "DW_OP_LLVM_extend";
2098 return DW_DLV_OK;
2099 case DW_OP_LLVM_select_bit_piece:
2100 *s_out = "DW_OP_LLVM_select_bit_piece";
2101 return DW_DLV_OK;
2102 case DW_OP_WASM_location:
2103 *s_out = "DW_OP_WASM_location";
2104 return DW_DLV_OK;
2105 case DW_OP_WASM_location_int:
2106 *s_out = "DW_OP_WASM_location_int";
2107 return DW_DLV_OK;
2108 case DW_OP_GNU_uninit:
2109 *s_out = "DW_OP_GNU_uninit";
2110 return DW_DLV_OK;
2111 /* Skipping alternate spelling of value
2112 0xf0. DW_OP_APPLE_uninit */
2113 case DW_OP_GNU_encoded_addr:
2114 *s_out = "DW_OP_GNU_encoded_addr";
2115 return DW_DLV_OK;
2116 case DW_OP_GNU_implicit_pointer:
2117 *s_out = "DW_OP_GNU_implicit_pointer";
2118 return DW_DLV_OK;
2119 case DW_OP_GNU_entry_value:
2120 *s_out = "DW_OP_GNU_entry_value";
2121 return DW_DLV_OK;
2122 case DW_OP_GNU_const_type:
2123 *s_out = "DW_OP_GNU_const_type";
2124 return DW_DLV_OK;
2125 case DW_OP_GNU_regval_type:
2126 *s_out = "DW_OP_GNU_regval_type";
2127 return DW_DLV_OK;
2128 case DW_OP_GNU_deref_type:
2129 *s_out = "DW_OP_GNU_deref_type";
2130 return DW_DLV_OK;
2131 case DW_OP_GNU_convert:
2132 *s_out = "DW_OP_GNU_convert";
2133 return DW_DLV_OK;
2134 case DW_OP_PGI_omp_thread_num:
2135 *s_out = "DW_OP_PGI_omp_thread_num";
2136 return DW_DLV_OK;
2137 case DW_OP_GNU_reinterpret:
2138 *s_out = "DW_OP_GNU_reinterpret";
2139 return DW_DLV_OK;
2140 case DW_OP_GNU_parameter_ref:
2141 *s_out = "DW_OP_GNU_parameter_ref";
2142 return DW_DLV_OK;
2143 case DW_OP_GNU_addr_index:
2144 *s_out = "DW_OP_GNU_addr_index";
2145 return DW_DLV_OK;
2146 case DW_OP_GNU_const_index:
2147 *s_out = "DW_OP_GNU_const_index";
2148 return DW_DLV_OK;
2149 case DW_OP_GNU_variable_value:
2150 *s_out = "DW_OP_GNU_variable_value";
2151 return DW_DLV_OK;
2152 case DW_OP_hi_user:
2153 *s_out = "DW_OP_hi_user";
2154 return DW_DLV_OK;
2155 default: break;
2156 }
2157 return DW_DLV_NO_ENTRY;
2158 }
2159 /* ARGSUSED */
2160 int
2161 dwarf_get_ATE_name (unsigned int val,
2162 const char ** s_out)
2163 {
2164 switch (val) {
2165 case DW_ATE_address:
2166 *s_out = "DW_ATE_address";
2167 return DW_DLV_OK;
2168 case DW_ATE_boolean:
2169 *s_out = "DW_ATE_boolean";
2170 return DW_DLV_OK;
2171 case DW_ATE_complex_float:
2172 *s_out = "DW_ATE_complex_float";
2173 return DW_DLV_OK;
2174 case DW_ATE_float:
2175 *s_out = "DW_ATE_float";
2176 return DW_DLV_OK;
2177 case DW_ATE_signed:
2178 *s_out = "DW_ATE_signed";
2179 return DW_DLV_OK;
2180 case DW_ATE_signed_char:
2181 *s_out = "DW_ATE_signed_char";
2182 return DW_DLV_OK;
2183 case DW_ATE_unsigned:
2184 *s_out = "DW_ATE_unsigned";
2185 return DW_DLV_OK;
2186 case DW_ATE_unsigned_char:
2187 *s_out = "DW_ATE_unsigned_char";
2188 return DW_DLV_OK;
2189 case DW_ATE_imaginary_float:
2190 *s_out = "DW_ATE_imaginary_float";
2191 return DW_DLV_OK;
2192 case DW_ATE_packed_decimal:
2193 *s_out = "DW_ATE_packed_decimal";
2194 return DW_DLV_OK;
2195 case DW_ATE_numeric_string:
2196 *s_out = "DW_ATE_numeric_string";
2197 return DW_DLV_OK;
2198 case DW_ATE_edited:
2199 *s_out = "DW_ATE_edited";
2200 return DW_DLV_OK;
2201 case DW_ATE_signed_fixed:
2202 *s_out = "DW_ATE_signed_fixed";
2203 return DW_DLV_OK;
2204 case DW_ATE_unsigned_fixed:
2205 *s_out = "DW_ATE_unsigned_fixed";
2206 return DW_DLV_OK;
2207 case DW_ATE_decimal_float:
2208 *s_out = "DW_ATE_decimal_float";
2209 return DW_DLV_OK;
2210 case DW_ATE_UTF:
2211 *s_out = "DW_ATE_UTF";
2212 return DW_DLV_OK;
2213 case DW_ATE_UCS:
2214 *s_out = "DW_ATE_UCS";
2215 return DW_DLV_OK;
2216 case DW_ATE_ASCII:
2217 *s_out = "DW_ATE_ASCII";
2218 return DW_DLV_OK;
2219 case DW_ATE_ALTIUM_fract:
2220 *s_out = "DW_ATE_ALTIUM_fract";
2221 return DW_DLV_OK;
2222 /* Skipping alternate spelling of value
2223 0x80. DW_ATE_lo_user */
2224 /* Skipping alternate spelling of value
2225 0x80. DW_ATE_HP_float80 */
2226 case DW_ATE_ALTIUM_accum:
2227 *s_out = "DW_ATE_ALTIUM_accum";
2228 return DW_DLV_OK;
2229 /* Skipping alternate spelling of value
2230 0x81. DW_ATE_HP_complex_float80 */
2231 case DW_ATE_HP_float128:
2232 *s_out = "DW_ATE_HP_float128";
2233 return DW_DLV_OK;
2234 case DW_ATE_HP_complex_float128:
2235 *s_out = "DW_ATE_HP_complex_float128";
2236 return DW_DLV_OK;
2237 case DW_ATE_HP_floathpintel:
2238 *s_out = "DW_ATE_HP_floathpintel";
2239 return DW_DLV_OK;
2240 case DW_ATE_HP_imaginary_float80:
2241 *s_out = "DW_ATE_HP_imaginary_float80";
2242 return DW_DLV_OK;
2243 case DW_ATE_HP_imaginary_float128:
2244 *s_out = "DW_ATE_HP_imaginary_float128";
2245 return DW_DLV_OK;
2246 case DW_ATE_HP_VAX_float:
2247 *s_out = "DW_ATE_HP_VAX_float";
2248 return DW_DLV_OK;
2249 case DW_ATE_HP_VAX_float_d:
2250 *s_out = "DW_ATE_HP_VAX_float_d";
2251 return DW_DLV_OK;
2252 case DW_ATE_HP_packed_decimal:
2253 *s_out = "DW_ATE_HP_packed_decimal";
2254 return DW_DLV_OK;
2255 case DW_ATE_HP_zoned_decimal:
2256 *s_out = "DW_ATE_HP_zoned_decimal";
2257 return DW_DLV_OK;
2258 case DW_ATE_HP_edited:
2259 *s_out = "DW_ATE_HP_edited";
2260 return DW_DLV_OK;
2261 case DW_ATE_HP_signed_fixed:
2262 *s_out = "DW_ATE_HP_signed_fixed";
2263 return DW_DLV_OK;
2264 case DW_ATE_HP_unsigned_fixed:
2265 *s_out = "DW_ATE_HP_unsigned_fixed";
2266 return DW_DLV_OK;
2267 case DW_ATE_HP_VAX_complex_float:
2268 *s_out = "DW_ATE_HP_VAX_complex_float";
2269 return DW_DLV_OK;
2270 case DW_ATE_HP_VAX_complex_float_d:
2271 *s_out = "DW_ATE_HP_VAX_complex_float_d";
2272 return DW_DLV_OK;
2273 case DW_ATE_SUN_interval_float:
2274 *s_out = "DW_ATE_SUN_interval_float";
2275 return DW_DLV_OK;
2276 case DW_ATE_SUN_imaginary_float:
2277 *s_out = "DW_ATE_SUN_imaginary_float";
2278 return DW_DLV_OK;
2279 case DW_ATE_hi_user:
2280 *s_out = "DW_ATE_hi_user";
2281 return DW_DLV_OK;
2282 default: break;
2283 }
2284 return DW_DLV_NO_ENTRY;
2285 }
2286 /* ARGSUSED */
2287 int
2288 dwarf_get_DEFAULTED_name (unsigned int val,
2289 const char ** s_out)
2290 {
2291 switch (val) {
2292 case DW_DEFAULTED_no:
2293 *s_out = "DW_DEFAULTED_no";
2294 return DW_DLV_OK;
2295 case DW_DEFAULTED_in_class:
2296 *s_out = "DW_DEFAULTED_in_class";
2297 return DW_DLV_OK;
2298 case DW_DEFAULTED_out_of_class:
2299 *s_out = "DW_DEFAULTED_out_of_class";
2300 return DW_DLV_OK;
2301 default: break;
2302 }
2303 return DW_DLV_NO_ENTRY;
2304 }
2305 /* ARGSUSED */
2306 int
2307 dwarf_get_IDX_name (unsigned int val,
2308 const char ** s_out)
2309 {
2310 switch (val) {
2311 case DW_IDX_compile_unit:
2312 *s_out = "DW_IDX_compile_unit";
2313 return DW_DLV_OK;
2314 case DW_IDX_type_unit:
2315 *s_out = "DW_IDX_type_unit";
2316 return DW_DLV_OK;
2317 case DW_IDX_die_offset:
2318 *s_out = "DW_IDX_die_offset";
2319 return DW_DLV_OK;
2320 case DW_IDX_parent:
2321 *s_out = "DW_IDX_parent";
2322 return DW_DLV_OK;
2323 case DW_IDX_type_hash:
2324 *s_out = "DW_IDX_type_hash";
2325 return DW_DLV_OK;
2326 case DW_IDX_GNU_internal:
2327 *s_out = "DW_IDX_GNU_internal";
2328 return DW_DLV_OK;
2329 /* Skipping alternate spelling of value
2330 0x2000. DW_IDX_lo_user */
2331 case DW_IDX_GNU_external:
2332 *s_out = "DW_IDX_GNU_external";
2333 return DW_DLV_OK;
2334 case DW_IDX_GNU_main:
2335 *s_out = "DW_IDX_GNU_main";
2336 return DW_DLV_OK;
2337 case DW_IDX_GNU_language:
2338 *s_out = "DW_IDX_GNU_language";
2339 return DW_DLV_OK;
2340 case DW_IDX_GNU_linkage_name:
2341 *s_out = "DW_IDX_GNU_linkage_name";
2342 return DW_DLV_OK;
2343 case DW_IDX_hi_user:
2344 *s_out = "DW_IDX_hi_user";
2345 return DW_DLV_OK;
2346 default: break;
2347 }
2348 return DW_DLV_NO_ENTRY;
2349 }
2350 /* ARGSUSED */
2351 int
2352 dwarf_get_LLEX_name (unsigned int val,
2353 const char ** s_out)
2354 {
2355 switch (val) {
2356 case DW_LLEX_end_of_list_entry:
2357 *s_out = "DW_LLEX_end_of_list_entry";
2358 return DW_DLV_OK;
2359 case DW_LLEX_base_address_selection_entry:
2360 *s_out = "DW_LLEX_base_address_selection_entry";
2361 return DW_DLV_OK;
2362 case DW_LLEX_start_end_entry:
2363 *s_out = "DW_LLEX_start_end_entry";
2364 return DW_DLV_OK;
2365 case DW_LLEX_start_length_entry:
2366 *s_out = "DW_LLEX_start_length_entry";
2367 return DW_DLV_OK;
2368 case DW_LLEX_offset_pair_entry:
2369 *s_out = "DW_LLEX_offset_pair_entry";
2370 return DW_DLV_OK;
2371 default: break;
2372 }
2373 return DW_DLV_NO_ENTRY;
2374 }
2375 /* ARGSUSED */
2376 int
2377 dwarf_get_LLE_name (unsigned int val,
2378 const char ** s_out)
2379 {
2380 switch (val) {
2381 case DW_LLE_end_of_list:
2382 *s_out = "DW_LLE_end_of_list";
2383 return DW_DLV_OK;
2384 case DW_LLE_base_addressx:
2385 *s_out = "DW_LLE_base_addressx";
2386 return DW_DLV_OK;
2387 case DW_LLE_startx_endx:
2388 *s_out = "DW_LLE_startx_endx";
2389 return DW_DLV_OK;
2390 case DW_LLE_startx_length:
2391 *s_out = "DW_LLE_startx_length";
2392 return DW_DLV_OK;
2393 case DW_LLE_offset_pair:
2394 *s_out = "DW_LLE_offset_pair";
2395 return DW_DLV_OK;
2396 case DW_LLE_default_location:
2397 *s_out = "DW_LLE_default_location";
2398 return DW_DLV_OK;
2399 case DW_LLE_base_address:
2400 *s_out = "DW_LLE_base_address";
2401 return DW_DLV_OK;
2402 case DW_LLE_start_end:
2403 *s_out = "DW_LLE_start_end";
2404 return DW_DLV_OK;
2405 case DW_LLE_start_length:
2406 *s_out = "DW_LLE_start_length";
2407 return DW_DLV_OK;
2408 default: break;
2409 }
2410 return DW_DLV_NO_ENTRY;
2411 }
2412 /* ARGSUSED */
2413 int
2414 dwarf_get_RLE_name (unsigned int val,
2415 const char ** s_out)
2416 {
2417 switch (val) {
2418 case DW_RLE_end_of_list:
2419 *s_out = "DW_RLE_end_of_list";
2420 return DW_DLV_OK;
2421 case DW_RLE_base_addressx:
2422 *s_out = "DW_RLE_base_addressx";
2423 return DW_DLV_OK;
2424 case DW_RLE_startx_endx:
2425 *s_out = "DW_RLE_startx_endx";
2426 return DW_DLV_OK;
2427 case DW_RLE_startx_length:
2428 *s_out = "DW_RLE_startx_length";
2429 return DW_DLV_OK;
2430 case DW_RLE_offset_pair:
2431 *s_out = "DW_RLE_offset_pair";
2432 return DW_DLV_OK;
2433 case DW_RLE_base_address:
2434 *s_out = "DW_RLE_base_address";
2435 return DW_DLV_OK;
2436 case DW_RLE_start_end:
2437 *s_out = "DW_RLE_start_end";
2438 return DW_DLV_OK;
2439 case DW_RLE_start_length:
2440 *s_out = "DW_RLE_start_length";
2441 return DW_DLV_OK;
2442 default: break;
2443 }
2444 return DW_DLV_NO_ENTRY;
2445 }
2446 /* ARGSUSED */
2447 int
2448 dwarf_get_GNUIVIS_name (unsigned int val,
2449 const char ** s_out)
2450 {
2451 switch (val) {
2452 case DW_GNUIVIS_global:
2453 *s_out = "DW_GNUIVIS_global";
2454 return DW_DLV_OK;
2455 case DW_GNUIVIS_static:
2456 *s_out = "DW_GNUIVIS_static";
2457 return DW_DLV_OK;
2458 default: break;
2459 }
2460 return DW_DLV_NO_ENTRY;
2461 }
2462 /* ARGSUSED */
2463 int
2464 dwarf_get_GNUIKIND_name (unsigned int val,
2465 const char ** s_out)
2466 {
2467 switch (val) {
2468 case DW_GNUIKIND_none:
2469 *s_out = "DW_GNUIKIND_none";
2470 return DW_DLV_OK;
2471 case DW_GNUIKIND_type:
2472 *s_out = "DW_GNUIKIND_type";
2473 return DW_DLV_OK;
2474 case DW_GNUIKIND_variable:
2475 *s_out = "DW_GNUIKIND_variable";
2476 return DW_DLV_OK;
2477 case DW_GNUIKIND_function:
2478 *s_out = "DW_GNUIKIND_function";
2479 return DW_DLV_OK;
2480 case DW_GNUIKIND_other:
2481 *s_out = "DW_GNUIKIND_other";
2482 return DW_DLV_OK;
2483 default: break;
2484 }
2485 return DW_DLV_NO_ENTRY;
2486 }
2487 /* ARGSUSED */
2488 int
2489 dwarf_get_UT_name (unsigned int val,
2490 const char ** s_out)
2491 {
2492 switch (val) {
2493 case DW_UT_compile:
2494 *s_out = "DW_UT_compile";
2495 return DW_DLV_OK;
2496 case DW_UT_type:
2497 *s_out = "DW_UT_type";
2498 return DW_DLV_OK;
2499 case DW_UT_partial:
2500 *s_out = "DW_UT_partial";
2501 return DW_DLV_OK;
2502 case DW_UT_skeleton:
2503 *s_out = "DW_UT_skeleton";
2504 return DW_DLV_OK;
2505 case DW_UT_split_compile:
2506 *s_out = "DW_UT_split_compile";
2507 return DW_DLV_OK;
2508 case DW_UT_split_type:
2509 *s_out = "DW_UT_split_type";
2510 return DW_DLV_OK;
2511 case DW_UT_lo_user:
2512 *s_out = "DW_UT_lo_user";
2513 return DW_DLV_OK;
2514 case DW_UT_hi_user:
2515 *s_out = "DW_UT_hi_user";
2516 return DW_DLV_OK;
2517 default: break;
2518 }
2519 return DW_DLV_NO_ENTRY;
2520 }
2521 /* ARGSUSED */
2522 int
2523 dwarf_get_SECT_name (unsigned int val,
2524 const char ** s_out)
2525 {
2526 switch (val) {
2527 case DW_SECT_INFO:
2528 *s_out = "DW_SECT_INFO";
2529 return DW_DLV_OK;
2530 case DW_SECT_TYPES:
2531 *s_out = "DW_SECT_TYPES";
2532 return DW_DLV_OK;
2533 case DW_SECT_ABBREV:
2534 *s_out = "DW_SECT_ABBREV";
2535 return DW_DLV_OK;
2536 case DW_SECT_LINE:
2537 *s_out = "DW_SECT_LINE";
2538 return DW_DLV_OK;
2539 case DW_SECT_LOCLISTS:
2540 *s_out = "DW_SECT_LOCLISTS";
2541 return DW_DLV_OK;
2542 case DW_SECT_STR_OFFSETS:
2543 *s_out = "DW_SECT_STR_OFFSETS";
2544 return DW_DLV_OK;
2545 case DW_SECT_MACRO:
2546 *s_out = "DW_SECT_MACRO";
2547 return DW_DLV_OK;
2548 case DW_SECT_RNGLISTS:
2549 *s_out = "DW_SECT_RNGLISTS";
2550 return DW_DLV_OK;
2551 default: break;
2552 }
2553 return DW_DLV_NO_ENTRY;
2554 }
2555 /* ARGSUSED */
2556 int
2557 dwarf_get_DS_name (unsigned int val,
2558 const char ** s_out)
2559 {
2560 switch (val) {
2561 case DW_DS_unsigned:
2562 *s_out = "DW_DS_unsigned";
2563 return DW_DLV_OK;
2564 case DW_DS_leading_overpunch:
2565 *s_out = "DW_DS_leading_overpunch";
2566 return DW_DLV_OK;
2567 case DW_DS_trailing_overpunch:
2568 *s_out = "DW_DS_trailing_overpunch";
2569 return DW_DLV_OK;
2570 case DW_DS_leading_separate:
2571 *s_out = "DW_DS_leading_separate";
2572 return DW_DLV_OK;
2573 case DW_DS_trailing_separate:
2574 *s_out = "DW_DS_trailing_separate";
2575 return DW_DLV_OK;
2576 default: break;
2577 }
2578 return DW_DLV_NO_ENTRY;
2579 }
2580 /* ARGSUSED */
2581 int
2582 dwarf_get_END_name (unsigned int val,
2583 const char ** s_out)
2584 {
2585 switch (val) {
2586 case DW_END_default:
2587 *s_out = "DW_END_default";
2588 return DW_DLV_OK;
2589 case DW_END_big:
2590 *s_out = "DW_END_big";
2591 return DW_DLV_OK;
2592 case DW_END_little:
2593 *s_out = "DW_END_little";
2594 return DW_DLV_OK;
2595 case DW_END_lo_user:
2596 *s_out = "DW_END_lo_user";
2597 return DW_DLV_OK;
2598 case DW_END_hi_user:
2599 *s_out = "DW_END_hi_user";
2600 return DW_DLV_OK;
2601 default: break;
2602 }
2603 return DW_DLV_NO_ENTRY;
2604 }
2605 /* ARGSUSED */
2606 int
2607 dwarf_get_ATCF_name (unsigned int val,
2608 const char ** s_out)
2609 {
2610 switch (val) {
2611 case DW_ATCF_lo_user:
2612 *s_out = "DW_ATCF_lo_user";
2613 return DW_DLV_OK;
2614 case DW_ATCF_SUN_mop_bitfield:
2615 *s_out = "DW_ATCF_SUN_mop_bitfield";
2616 return DW_DLV_OK;
2617 case DW_ATCF_SUN_mop_spill:
2618 *s_out = "DW_ATCF_SUN_mop_spill";
2619 return DW_DLV_OK;
2620 case DW_ATCF_SUN_mop_scopy:
2621 *s_out = "DW_ATCF_SUN_mop_scopy";
2622 return DW_DLV_OK;
2623 case DW_ATCF_SUN_func_start:
2624 *s_out = "DW_ATCF_SUN_func_start";
2625 return DW_DLV_OK;
2626 case DW_ATCF_SUN_end_ctors:
2627 *s_out = "DW_ATCF_SUN_end_ctors";
2628 return DW_DLV_OK;
2629 case DW_ATCF_SUN_branch_target:
2630 *s_out = "DW_ATCF_SUN_branch_target";
2631 return DW_DLV_OK;
2632 case DW_ATCF_SUN_mop_stack_probe:
2633 *s_out = "DW_ATCF_SUN_mop_stack_probe";
2634 return DW_DLV_OK;
2635 case DW_ATCF_SUN_func_epilog:
2636 *s_out = "DW_ATCF_SUN_func_epilog";
2637 return DW_DLV_OK;
2638 case DW_ATCF_hi_user:
2639 *s_out = "DW_ATCF_hi_user";
2640 return DW_DLV_OK;
2641 default: break;
2642 }
2643 return DW_DLV_NO_ENTRY;
2644 }
2645 /* ARGSUSED */
2646 int
2647 dwarf_get_ACCESS_name (unsigned int val,
2648 const char ** s_out)
2649 {
2650 switch (val) {
2651 case DW_ACCESS_public:
2652 *s_out = "DW_ACCESS_public";
2653 return DW_DLV_OK;
2654 case DW_ACCESS_protected:
2655 *s_out = "DW_ACCESS_protected";
2656 return DW_DLV_OK;
2657 case DW_ACCESS_private:
2658 *s_out = "DW_ACCESS_private";
2659 return DW_DLV_OK;
2660 default: break;
2661 }
2662 return DW_DLV_NO_ENTRY;
2663 }
2664 /* ARGSUSED */
2665 int
2666 dwarf_get_VIS_name (unsigned int val,
2667 const char ** s_out)
2668 {
2669 switch (val) {
2670 case DW_VIS_local:
2671 *s_out = "DW_VIS_local";
2672 return DW_DLV_OK;
2673 case DW_VIS_exported:
2674 *s_out = "DW_VIS_exported";
2675 return DW_DLV_OK;
2676 case DW_VIS_qualified:
2677 *s_out = "DW_VIS_qualified";
2678 return DW_DLV_OK;
2679 default: break;
2680 }
2681 return DW_DLV_NO_ENTRY;
2682 }
2683 /* ARGSUSED */
2684 int
2685 dwarf_get_VIRTUALITY_name (unsigned int val,
2686 const char ** s_out)
2687 {
2688 switch (val) {
2689 case DW_VIRTUALITY_none:
2690 *s_out = "DW_VIRTUALITY_none";
2691 return DW_DLV_OK;
2692 case DW_VIRTUALITY_virtual:
2693 *s_out = "DW_VIRTUALITY_virtual";
2694 return DW_DLV_OK;
2695 case DW_VIRTUALITY_pure_virtual:
2696 *s_out = "DW_VIRTUALITY_pure_virtual";
2697 return DW_DLV_OK;
2698 default: break;
2699 }
2700 return DW_DLV_NO_ENTRY;
2701 }
2702 /* ARGSUSED */
2703 int
2704 dwarf_get_LANG_name (unsigned int val,
2705 const char ** s_out)
2706 {
2707 switch (val) {
2708 case DW_LANG_C89:
2709 *s_out = "DW_LANG_C89";
2710 return DW_DLV_OK;
2711 case DW_LANG_C:
2712 *s_out = "DW_LANG_C";
2713 return DW_DLV_OK;
2714 case DW_LANG_Ada83:
2715 *s_out = "DW_LANG_Ada83";
2716 return DW_DLV_OK;
2717 case DW_LANG_C_plus_plus:
2718 *s_out = "DW_LANG_C_plus_plus";
2719 return DW_DLV_OK;
2720 case DW_LANG_Cobol74:
2721 *s_out = "DW_LANG_Cobol74";
2722 return DW_DLV_OK;
2723 case DW_LANG_Cobol85:
2724 *s_out = "DW_LANG_Cobol85";
2725 return DW_DLV_OK;
2726 case DW_LANG_Fortran77:
2727 *s_out = "DW_LANG_Fortran77";
2728 return DW_DLV_OK;
2729 case DW_LANG_Fortran90:
2730 *s_out = "DW_LANG_Fortran90";
2731 return DW_DLV_OK;
2732 case DW_LANG_Pascal83:
2733 *s_out = "DW_LANG_Pascal83";
2734 return DW_DLV_OK;
2735 case DW_LANG_Modula2:
2736 *s_out = "DW_LANG_Modula2";
2737 return DW_DLV_OK;
2738 case DW_LANG_Java:
2739 *s_out = "DW_LANG_Java";
2740 return DW_DLV_OK;
2741 case DW_LANG_C99:
2742 *s_out = "DW_LANG_C99";
2743 return DW_DLV_OK;
2744 case DW_LANG_Ada95:
2745 *s_out = "DW_LANG_Ada95";
2746 return DW_DLV_OK;
2747 case DW_LANG_Fortran95:
2748 *s_out = "DW_LANG_Fortran95";
2749 return DW_DLV_OK;
2750 case DW_LANG_PLI:
2751 *s_out = "DW_LANG_PLI";
2752 return DW_DLV_OK;
2753 case DW_LANG_ObjC:
2754 *s_out = "DW_LANG_ObjC";
2755 return DW_DLV_OK;
2756 case DW_LANG_ObjC_plus_plus:
2757 *s_out = "DW_LANG_ObjC_plus_plus";
2758 return DW_DLV_OK;
2759 case DW_LANG_UPC:
2760 *s_out = "DW_LANG_UPC";
2761 return DW_DLV_OK;
2762 case DW_LANG_D:
2763 *s_out = "DW_LANG_D";
2764 return DW_DLV_OK;
2765 case DW_LANG_Python:
2766 *s_out = "DW_LANG_Python";
2767 return DW_DLV_OK;
2768 case DW_LANG_OpenCL:
2769 *s_out = "DW_LANG_OpenCL";
2770 return DW_DLV_OK;
2771 case DW_LANG_Go:
2772 *s_out = "DW_LANG_Go";
2773 return DW_DLV_OK;
2774 case DW_LANG_Modula3:
2775 *s_out = "DW_LANG_Modula3";
2776 return DW_DLV_OK;
2777 case DW_LANG_Haskel:
2778 *s_out = "DW_LANG_Haskel";
2779 return DW_DLV_OK;
2780 case DW_LANG_C_plus_plus_03:
2781 *s_out = "DW_LANG_C_plus_plus_03";
2782 return DW_DLV_OK;
2783 case DW_LANG_C_plus_plus_11:
2784 *s_out = "DW_LANG_C_plus_plus_11";
2785 return DW_DLV_OK;
2786 case DW_LANG_OCaml:
2787 *s_out = "DW_LANG_OCaml";
2788 return DW_DLV_OK;
2789 case DW_LANG_Rust:
2790 *s_out = "DW_LANG_Rust";
2791 return DW_DLV_OK;
2792 case DW_LANG_C11:
2793 *s_out = "DW_LANG_C11";
2794 return DW_DLV_OK;
2795 case DW_LANG_Swift:
2796 *s_out = "DW_LANG_Swift";
2797 return DW_DLV_OK;
2798 case DW_LANG_Julia:
2799 *s_out = "DW_LANG_Julia";
2800 return DW_DLV_OK;
2801 case DW_LANG_Dylan:
2802 *s_out = "DW_LANG_Dylan";
2803 return DW_DLV_OK;
2804 case DW_LANG_C_plus_plus_14:
2805 *s_out = "DW_LANG_C_plus_plus_14";
2806 return DW_DLV_OK;
2807 case DW_LANG_Fortran03:
2808 *s_out = "DW_LANG_Fortran03";
2809 return DW_DLV_OK;
2810 case DW_LANG_Fortran08:
2811 *s_out = "DW_LANG_Fortran08";
2812 return DW_DLV_OK;
2813 case DW_LANG_RenderScript:
2814 *s_out = "DW_LANG_RenderScript";
2815 return DW_DLV_OK;
2816 case DW_LANG_BLISS:
2817 *s_out = "DW_LANG_BLISS";
2818 return DW_DLV_OK;
2819 case DW_LANG_Kotlin:
2820 *s_out = "DW_LANG_Kotlin";
2821 return DW_DLV_OK;
2822 case DW_LANG_Zig:
2823 *s_out = "DW_LANG_Zig";
2824 return DW_DLV_OK;
2825 case DW_LANG_Crystal:
2826 *s_out = "DW_LANG_Crystal";
2827 return DW_DLV_OK;
2828 case DW_LANG_C_plus_plus_17:
2829 *s_out = "DW_LANG_C_plus_plus_17";
2830 return DW_DLV_OK;
2831 case DW_LANG_C_plus_plus_20:
2832 *s_out = "DW_LANG_C_plus_plus_20";
2833 return DW_DLV_OK;
2834 case DW_LANG_C17:
2835 *s_out = "DW_LANG_C17";
2836 return DW_DLV_OK;
2837 case DW_LANG_Fortran18:
2838 *s_out = "DW_LANG_Fortran18";
2839 return DW_DLV_OK;
2840 case DW_LANG_Ada2005:
2841 *s_out = "DW_LANG_Ada2005";
2842 return DW_DLV_OK;
2843 case DW_LANG_Ada2012:
2844 *s_out = "DW_LANG_Ada2012";
2845 return DW_DLV_OK;
2846 case DW_LANG_HIP:
2847 *s_out = "DW_LANG_HIP";
2848 return DW_DLV_OK;
2849 case DW_LANG_Assembly:
2850 *s_out = "DW_LANG_Assembly";
2851 return DW_DLV_OK;
2852 case DW_LANG_C_sharp:
2853 *s_out = "DW_LANG_C_sharp";
2854 return DW_DLV_OK;
2855 case DW_LANG_Mojo:
2856 *s_out = "DW_LANG_Mojo";
2857 return DW_DLV_OK;
2858 case DW_LANG_GLSL:
2859 *s_out = "DW_LANG_GLSL";
2860 return DW_DLV_OK;
2861 case DW_LANG_GLSL_ES:
2862 *s_out = "DW_LANG_GLSL_ES";
2863 return DW_DLV_OK;
2864 case DW_LANG_HLSL:
2865 *s_out = "DW_LANG_HLSL";
2866 return DW_DLV_OK;
2867 case DW_LANG_OpenCL_CPP:
2868 *s_out = "DW_LANG_OpenCL_CPP";
2869 return DW_DLV_OK;
2870 case DW_LANG_CPP_for_OpenCL:
2871 *s_out = "DW_LANG_CPP_for_OpenCL";
2872 return DW_DLV_OK;
2873 case DW_LANG_SYCL:
2874 *s_out = "DW_LANG_SYCL";
2875 return DW_DLV_OK;
2876 case DW_LANG_Ruby:
2877 *s_out = "DW_LANG_Ruby";
2878 return DW_DLV_OK;
2879 case DW_LANG_Move:
2880 *s_out = "DW_LANG_Move";
2881 return DW_DLV_OK;
2882 case DW_LANG_Hylo:
2883 *s_out = "DW_LANG_Hylo";
2884 return DW_DLV_OK;
2885 case DW_LANG_lo_user:
2886 *s_out = "DW_LANG_lo_user";
2887 return DW_DLV_OK;
2888 case DW_LANG_Mips_Assembler:
2889 *s_out = "DW_LANG_Mips_Assembler";
2890 return DW_DLV_OK;
2891 case DW_LANG_Upc:
2892 *s_out = "DW_LANG_Upc";
2893 return DW_DLV_OK;
2894 case DW_LANG_GOOGLE_RenderScript:
2895 *s_out = "DW_LANG_GOOGLE_RenderScript";
2896 return DW_DLV_OK;
2897 case DW_LANG_SUN_Assembler:
2898 *s_out = "DW_LANG_SUN_Assembler";
2899 return DW_DLV_OK;
2900 case DW_LANG_ALTIUM_Assembler:
2901 *s_out = "DW_LANG_ALTIUM_Assembler";
2902 return DW_DLV_OK;
2903 case DW_LANG_BORLAND_Delphi:
2904 *s_out = "DW_LANG_BORLAND_Delphi";
2905 return DW_DLV_OK;
2906 case DW_LANG_hi_user:
2907 *s_out = "DW_LANG_hi_user";
2908 return DW_DLV_OK;
2909 default: break;
2910 }
2911 return DW_DLV_NO_ENTRY;
2912 }
2913 /* ARGSUSED */
2914 int
2915 dwarf_get_ID_name (unsigned int val,
2916 const char ** s_out)
2917 {
2918 switch (val) {
2919 case DW_ID_case_sensitive:
2920 *s_out = "DW_ID_case_sensitive";
2921 return DW_DLV_OK;
2922 case DW_ID_up_case:
2923 *s_out = "DW_ID_up_case";
2924 return DW_DLV_OK;
2925 case DW_ID_down_case:
2926 *s_out = "DW_ID_down_case";
2927 return DW_DLV_OK;
2928 case DW_ID_case_insensitive:
2929 *s_out = "DW_ID_case_insensitive";
2930 return DW_DLV_OK;
2931 default: break;
2932 }
2933 return DW_DLV_NO_ENTRY;
2934 }
2935 /* ARGSUSED */
2936 int
2937 dwarf_get_CC_name (unsigned int val,
2938 const char ** s_out)
2939 {
2940 switch (val) {
2941 case DW_CC_normal:
2942 *s_out = "DW_CC_normal";
2943 return DW_DLV_OK;
2944 case DW_CC_program:
2945 *s_out = "DW_CC_program";
2946 return DW_DLV_OK;
2947 case DW_CC_nocall:
2948 *s_out = "DW_CC_nocall";
2949 return DW_DLV_OK;
2950 case DW_CC_pass_by_reference:
2951 *s_out = "DW_CC_pass_by_reference";
2952 return DW_DLV_OK;
2953 case DW_CC_pass_by_value:
2954 *s_out = "DW_CC_pass_by_value";
2955 return DW_DLV_OK;
2956 case DW_CC_GNU_renesas_sh:
2957 *s_out = "DW_CC_GNU_renesas_sh";
2958 return DW_DLV_OK;
2959 /* Skipping alternate spelling of value
2960 0x40. DW_CC_lo_user */
2961 case DW_CC_GNU_borland_fastcall_i386:
2962 *s_out = "DW_CC_GNU_borland_fastcall_i386";
2963 return DW_DLV_OK;
2964 case DW_CC_ALTIUM_interrupt:
2965 *s_out = "DW_CC_ALTIUM_interrupt";
2966 return DW_DLV_OK;
2967 case DW_CC_ALTIUM_near_system_stack:
2968 *s_out = "DW_CC_ALTIUM_near_system_stack";
2969 return DW_DLV_OK;
2970 case DW_CC_ALTIUM_near_user_stack:
2971 *s_out = "DW_CC_ALTIUM_near_user_stack";
2972 return DW_DLV_OK;
2973 case DW_CC_ALTIUM_huge_user_stack:
2974 *s_out = "DW_CC_ALTIUM_huge_user_stack";
2975 return DW_DLV_OK;
2976 case DW_CC_GNU_BORLAND_safecall:
2977 *s_out = "DW_CC_GNU_BORLAND_safecall";
2978 return DW_DLV_OK;
2979 case DW_CC_GNU_BORLAND_stdcall:
2980 *s_out = "DW_CC_GNU_BORLAND_stdcall";
2981 return DW_DLV_OK;
2982 case DW_CC_GNU_BORLAND_pascal:
2983 *s_out = "DW_CC_GNU_BORLAND_pascal";
2984 return DW_DLV_OK;
2985 case DW_CC_GNU_BORLAND_msfastcall:
2986 *s_out = "DW_CC_GNU_BORLAND_msfastcall";
2987 return DW_DLV_OK;
2988 case DW_CC_GNU_BORLAND_msreturn:
2989 *s_out = "DW_CC_GNU_BORLAND_msreturn";
2990 return DW_DLV_OK;
2991 case DW_CC_GNU_BORLAND_thiscall:
2992 *s_out = "DW_CC_GNU_BORLAND_thiscall";
2993 return DW_DLV_OK;
2994 case DW_CC_GNU_BORLAND_fastcall:
2995 *s_out = "DW_CC_GNU_BORLAND_fastcall";
2996 return DW_DLV_OK;
2997 case DW_CC_LLVM_vectorcall:
2998 *s_out = "DW_CC_LLVM_vectorcall";
2999 return DW_DLV_OK;
3000 case DW_CC_LLVM_Win64:
3001 *s_out = "DW_CC_LLVM_Win64";
3002 return DW_DLV_OK;
3003 case DW_CC_LLVM_X86_64SysV:
3004 *s_out = "DW_CC_LLVM_X86_64SysV";
3005 return DW_DLV_OK;
3006 case DW_CC_LLVM_AAPCS:
3007 *s_out = "DW_CC_LLVM_AAPCS";
3008 return DW_DLV_OK;
3009 case DW_CC_LLVM_AAPCS_VFP:
3010 *s_out = "DW_CC_LLVM_AAPCS_VFP";
3011 return DW_DLV_OK;
3012 case DW_CC_LLVM_IntelOclBicc:
3013 *s_out = "DW_CC_LLVM_IntelOclBicc";
3014 return DW_DLV_OK;
3015 case DW_CC_LLVM_SpirFunction:
3016 *s_out = "DW_CC_LLVM_SpirFunction";
3017 return DW_DLV_OK;
3018 case DW_CC_LLVM_OpenCLKernel:
3019 *s_out = "DW_CC_LLVM_OpenCLKernel";
3020 return DW_DLV_OK;
3021 case DW_CC_LLVM_Swift:
3022 *s_out = "DW_CC_LLVM_Swift";
3023 return DW_DLV_OK;
3024 case DW_CC_LLVM_PreserveMost:
3025 *s_out = "DW_CC_LLVM_PreserveMost";
3026 return DW_DLV_OK;
3027 case DW_CC_LLVM_PreserveAll:
3028 *s_out = "DW_CC_LLVM_PreserveAll";
3029 return DW_DLV_OK;
3030 case DW_CC_LLVM_X86RegCall:
3031 *s_out = "DW_CC_LLVM_X86RegCall";
3032 return DW_DLV_OK;
3033 case DW_CC_GDB_IBM_OpenCL:
3034 *s_out = "DW_CC_GDB_IBM_OpenCL";
3035 return DW_DLV_OK;
3036 /* Skipping alternate spelling of value
3037 0xff. DW_CC_hi_user */
3038 default: break;
3039 }
3040 return DW_DLV_NO_ENTRY;
3041 }
3042 /* ARGSUSED */
3043 int
3044 dwarf_get_INL_name (unsigned int val,
3045 const char ** s_out)
3046 {
3047 switch (val) {
3048 case DW_INL_not_inlined:
3049 *s_out = "DW_INL_not_inlined";
3050 return DW_DLV_OK;
3051 case DW_INL_inlined:
3052 *s_out = "DW_INL_inlined";
3053 return DW_DLV_OK;
3054 case DW_INL_declared_not_inlined:
3055 *s_out = "DW_INL_declared_not_inlined";
3056 return DW_DLV_OK;
3057 case DW_INL_declared_inlined:
3058 *s_out = "DW_INL_declared_inlined";
3059 return DW_DLV_OK;
3060 default: break;
3061 }
3062 return DW_DLV_NO_ENTRY;
3063 }
3064 /* ARGSUSED */
3065 int
3066 dwarf_get_ORD_name (unsigned int val,
3067 const char ** s_out)
3068 {
3069 switch (val) {
3070 case DW_ORD_row_major:
3071 *s_out = "DW_ORD_row_major";
3072 return DW_DLV_OK;
3073 case DW_ORD_col_major:
3074 *s_out = "DW_ORD_col_major";
3075 return DW_DLV_OK;
3076 default: break;
3077 }
3078 return DW_DLV_NO_ENTRY;
3079 }
3080 /* ARGSUSED */
3081 int
3082 dwarf_get_DSC_name (unsigned int val,
3083 const char ** s_out)
3084 {
3085 switch (val) {
3086 case DW_DSC_label:
3087 *s_out = "DW_DSC_label";
3088 return DW_DLV_OK;
3089 case DW_DSC_range:
3090 *s_out = "DW_DSC_range";
3091 return DW_DLV_OK;
3092 default: break;
3093 }
3094 return DW_DLV_NO_ENTRY;
3095 }
3096 /* ARGSUSED */
3097 int
3098 dwarf_get_LNCT_name (unsigned int val,
3099 const char ** s_out)
3100 {
3101 switch (val) {
3102 case DW_LNCT_path:
3103 *s_out = "DW_LNCT_path";
3104 return DW_DLV_OK;
3105 case DW_LNCT_directory_index:
3106 *s_out = "DW_LNCT_directory_index";
3107 return DW_DLV_OK;
3108 case DW_LNCT_timestamp:
3109 *s_out = "DW_LNCT_timestamp";
3110 return DW_DLV_OK;
3111 case DW_LNCT_size:
3112 *s_out = "DW_LNCT_size";
3113 return DW_DLV_OK;
3114 case DW_LNCT_MD5:
3115 *s_out = "DW_LNCT_MD5";
3116 return DW_DLV_OK;
3117 case DW_LNCT_GNU_subprogram_name:
3118 *s_out = "DW_LNCT_GNU_subprogram_name";
3119 return DW_DLV_OK;
3120 case DW_LNCT_GNU_decl_file:
3121 *s_out = "DW_LNCT_GNU_decl_file";
3122 return DW_DLV_OK;
3123 case DW_LNCT_GNU_decl_line:
3124 *s_out = "DW_LNCT_GNU_decl_line";
3125 return DW_DLV_OK;
3126 case DW_LNCT_lo_user:
3127 *s_out = "DW_LNCT_lo_user";
3128 return DW_DLV_OK;
3129 case DW_LNCT_LLVM_source:
3130 *s_out = "DW_LNCT_LLVM_source";
3131 return DW_DLV_OK;
3132 case DW_LNCT_LLVM_is_MD5:
3133 *s_out = "DW_LNCT_LLVM_is_MD5";
3134 return DW_DLV_OK;
3135 case DW_LNCT_hi_user:
3136 *s_out = "DW_LNCT_hi_user";
3137 return DW_DLV_OK;
3138 default: break;
3139 }
3140 return DW_DLV_NO_ENTRY;
3141 }
3142 /* ARGSUSED */
3143 int
3144 dwarf_get_LNS_name (unsigned int val,
3145 const char ** s_out)
3146 {
3147 switch (val) {
3148 case DW_LNS_copy:
3149 *s_out = "DW_LNS_copy";
3150 return DW_DLV_OK;
3151 case DW_LNS_advance_pc:
3152 *s_out = "DW_LNS_advance_pc";
3153 return DW_DLV_OK;
3154 case DW_LNS_advance_line:
3155 *s_out = "DW_LNS_advance_line";
3156 return DW_DLV_OK;
3157 case DW_LNS_set_file:
3158 *s_out = "DW_LNS_set_file";
3159 return DW_DLV_OK;
3160 case DW_LNS_set_column:
3161 *s_out = "DW_LNS_set_column";
3162 return DW_DLV_OK;
3163 case DW_LNS_negate_stmt:
3164 *s_out = "DW_LNS_negate_stmt";
3165 return DW_DLV_OK;
3166 case DW_LNS_set_basic_block:
3167 *s_out = "DW_LNS_set_basic_block";
3168 return DW_DLV_OK;
3169 case DW_LNS_const_add_pc:
3170 *s_out = "DW_LNS_const_add_pc";
3171 return DW_DLV_OK;
3172 case DW_LNS_fixed_advance_pc:
3173 *s_out = "DW_LNS_fixed_advance_pc";
3174 return DW_DLV_OK;
3175 case DW_LNS_set_prologue_end:
3176 *s_out = "DW_LNS_set_prologue_end";
3177 return DW_DLV_OK;
3178 case DW_LNS_set_epilogue_begin:
3179 *s_out = "DW_LNS_set_epilogue_begin";
3180 return DW_DLV_OK;
3181 case DW_LNS_set_isa:
3182 *s_out = "DW_LNS_set_isa";
3183 return DW_DLV_OK;
3184 case DW_LNS_set_address_from_logical:
3185 *s_out = "DW_LNS_set_address_from_logical";
3186 return DW_DLV_OK;
3187 /* Skipping alternate spelling of value
3188 0xd. DW_LNS_set_subprogram */
3189 case DW_LNS_inlined_call:
3190 *s_out = "DW_LNS_inlined_call";
3191 return DW_DLV_OK;
3192 case DW_LNS_pop_context:
3193 *s_out = "DW_LNS_pop_context";
3194 return DW_DLV_OK;
3195 default: break;
3196 }
3197 return DW_DLV_NO_ENTRY;
3198 }
3199 /* ARGSUSED */
3200 int
3201 dwarf_get_LNE_name (unsigned int val,
3202 const char ** s_out)
3203 {
3204 switch (val) {
3205 case DW_LNE_end_sequence:
3206 *s_out = "DW_LNE_end_sequence";
3207 return DW_DLV_OK;
3208 case DW_LNE_set_address:
3209 *s_out = "DW_LNE_set_address";
3210 return DW_DLV_OK;
3211 case DW_LNE_define_file:
3212 *s_out = "DW_LNE_define_file";
3213 return DW_DLV_OK;
3214 case DW_LNE_set_discriminator:
3215 *s_out = "DW_LNE_set_discriminator";
3216 return DW_DLV_OK;
3217 case DW_LNE_HP_negate_is_UV_update:
3218 *s_out = "DW_LNE_HP_negate_is_UV_update";
3219 return DW_DLV_OK;
3220 case DW_LNE_HP_push_context:
3221 *s_out = "DW_LNE_HP_push_context";
3222 return DW_DLV_OK;
3223 case DW_LNE_HP_pop_context:
3224 *s_out = "DW_LNE_HP_pop_context";
3225 return DW_DLV_OK;
3226 case DW_LNE_HP_set_file_line_column:
3227 *s_out = "DW_LNE_HP_set_file_line_column";
3228 return DW_DLV_OK;
3229 case DW_LNE_HP_set_routine_name:
3230 *s_out = "DW_LNE_HP_set_routine_name";
3231 return DW_DLV_OK;
3232 case DW_LNE_HP_set_sequence:
3233 *s_out = "DW_LNE_HP_set_sequence";
3234 return DW_DLV_OK;
3235 case DW_LNE_HP_negate_post_semantics:
3236 *s_out = "DW_LNE_HP_negate_post_semantics";
3237 return DW_DLV_OK;
3238 case DW_LNE_HP_negate_function_exit:
3239 *s_out = "DW_LNE_HP_negate_function_exit";
3240 return DW_DLV_OK;
3241 case DW_LNE_HP_negate_front_end_logical:
3242 *s_out = "DW_LNE_HP_negate_front_end_logical";
3243 return DW_DLV_OK;
3244 case DW_LNE_HP_define_proc:
3245 *s_out = "DW_LNE_HP_define_proc";
3246 return DW_DLV_OK;
3247 case DW_LNE_HP_source_file_correlation:
3248 *s_out = "DW_LNE_HP_source_file_correlation";
3249 return DW_DLV_OK;
3250 /* Skipping alternate spelling of value
3251 0x80. DW_LNE_lo_user */
3252 case DW_LNE_hi_user:
3253 *s_out = "DW_LNE_hi_user";
3254 return DW_DLV_OK;
3255 default: break;
3256 }
3257 return DW_DLV_NO_ENTRY;
3258 }
3259 /* ARGSUSED */
3260 int
3261 dwarf_get_ISA_name (unsigned int val,
3262 const char ** s_out)
3263 {
3264 switch (val) {
3265 case DW_ISA_UNKNOWN:
3266 *s_out = "DW_ISA_UNKNOWN";
3267 return DW_DLV_OK;
3268 case DW_ISA_ARM_thumb:
3269 *s_out = "DW_ISA_ARM_thumb";
3270 return DW_DLV_OK;
3271 case DW_ISA_ARM_arm:
3272 *s_out = "DW_ISA_ARM_arm";
3273 return DW_DLV_OK;
3274 default: break;
3275 }
3276 return DW_DLV_NO_ENTRY;
3277 }
3278 /* ARGSUSED */
3279 int
3280 dwarf_get_MACRO_name (unsigned int val,
3281 const char ** s_out)
3282 {
3283 switch (val) {
3284 case DW_MACRO_define:
3285 *s_out = "DW_MACRO_define";
3286 return DW_DLV_OK;
3287 case DW_MACRO_undef:
3288 *s_out = "DW_MACRO_undef";
3289 return DW_DLV_OK;
3290 case DW_MACRO_start_file:
3291 *s_out = "DW_MACRO_start_file";
3292 return DW_DLV_OK;
3293 case DW_MACRO_end_file:
3294 *s_out = "DW_MACRO_end_file";
3295 return DW_DLV_OK;
3296 case DW_MACRO_define_strp:
3297 *s_out = "DW_MACRO_define_strp";
3298 return DW_DLV_OK;
3299 case DW_MACRO_undef_strp:
3300 *s_out = "DW_MACRO_undef_strp";
3301 return DW_DLV_OK;
3302 case DW_MACRO_import:
3303 *s_out = "DW_MACRO_import";
3304 return DW_DLV_OK;
3305 case DW_MACRO_define_sup:
3306 *s_out = "DW_MACRO_define_sup";
3307 return DW_DLV_OK;
3308 case DW_MACRO_undef_sup:
3309 *s_out = "DW_MACRO_undef_sup";
3310 return DW_DLV_OK;
3311 case DW_MACRO_import_sup:
3312 *s_out = "DW_MACRO_import_sup";
3313 return DW_DLV_OK;
3314 case DW_MACRO_define_strx:
3315 *s_out = "DW_MACRO_define_strx";
3316 return DW_DLV_OK;
3317 case DW_MACRO_undef_strx:
3318 *s_out = "DW_MACRO_undef_strx";
3319 return DW_DLV_OK;
3320 case DW_MACRO_lo_user:
3321 *s_out = "DW_MACRO_lo_user";
3322 return DW_DLV_OK;
3323 case DW_MACRO_hi_user:
3324 *s_out = "DW_MACRO_hi_user";
3325 return DW_DLV_OK;
3326 default: break;
3327 }
3328 return DW_DLV_NO_ENTRY;
3329 }
3330 /* ARGSUSED */
3331 int
3332 dwarf_get_MACINFO_name (unsigned int val,
3333 const char ** s_out)
3334 {
3335 switch (val) {
3336 case DW_MACINFO_define:
3337 *s_out = "DW_MACINFO_define";
3338 return DW_DLV_OK;
3339 case DW_MACINFO_undef:
3340 *s_out = "DW_MACINFO_undef";
3341 return DW_DLV_OK;
3342 case DW_MACINFO_start_file:
3343 *s_out = "DW_MACINFO_start_file";
3344 return DW_DLV_OK;
3345 case DW_MACINFO_end_file:
3346 *s_out = "DW_MACINFO_end_file";
3347 return DW_DLV_OK;
3348 case DW_MACINFO_vendor_ext:
3349 *s_out = "DW_MACINFO_vendor_ext";
3350 return DW_DLV_OK;
3351 default: break;
3352 }
3353 return DW_DLV_NO_ENTRY;
3354 }
3355 /* ARGSUSED */
3356 int
3357 dwarf_get_CFA_name (unsigned int val,
3358 const char ** s_out)
3359 {
3360 switch (val) {
3361 case DW_CFA_nop:
3362 *s_out = "DW_CFA_nop";
3363 return DW_DLV_OK;
3364 /* Skipping alternate spelling of value
3365 0x0. DW_CFA_extended */
3366 case DW_CFA_set_loc:
3367 *s_out = "DW_CFA_set_loc";
3368 return DW_DLV_OK;
3369 case DW_CFA_advance_loc1:
3370 *s_out = "DW_CFA_advance_loc1";
3371 return DW_DLV_OK;
3372 case DW_CFA_advance_loc2:
3373 *s_out = "DW_CFA_advance_loc2";
3374 return DW_DLV_OK;
3375 case DW_CFA_advance_loc4:
3376 *s_out = "DW_CFA_advance_loc4";
3377 return DW_DLV_OK;
3378 case DW_CFA_offset_extended:
3379 *s_out = "DW_CFA_offset_extended";
3380 return DW_DLV_OK;
3381 case DW_CFA_restore_extended:
3382 *s_out = "DW_CFA_restore_extended";
3383 return DW_DLV_OK;
3384 case DW_CFA_undefined:
3385 *s_out = "DW_CFA_undefined";
3386 return DW_DLV_OK;
3387 case DW_CFA_same_value:
3388 *s_out = "DW_CFA_same_value";
3389 return DW_DLV_OK;
3390 case DW_CFA_register:
3391 *s_out = "DW_CFA_register";
3392 return DW_DLV_OK;
3393 case DW_CFA_remember_state:
3394 *s_out = "DW_CFA_remember_state";
3395 return DW_DLV_OK;
3396 case DW_CFA_restore_state:
3397 *s_out = "DW_CFA_restore_state";
3398 return DW_DLV_OK;
3399 case DW_CFA_def_cfa:
3400 *s_out = "DW_CFA_def_cfa";
3401 return DW_DLV_OK;
3402 case DW_CFA_def_cfa_register:
3403 *s_out = "DW_CFA_def_cfa_register";
3404 return DW_DLV_OK;
3405 case DW_CFA_def_cfa_offset:
3406 *s_out = "DW_CFA_def_cfa_offset";
3407 return DW_DLV_OK;
3408 case DW_CFA_def_cfa_expression:
3409 *s_out = "DW_CFA_def_cfa_expression";
3410 return DW_DLV_OK;
3411 case DW_CFA_expression:
3412 *s_out = "DW_CFA_expression";
3413 return DW_DLV_OK;
3414 case DW_CFA_offset_extended_sf:
3415 *s_out = "DW_CFA_offset_extended_sf";
3416 return DW_DLV_OK;
3417 case DW_CFA_def_cfa_sf:
3418 *s_out = "DW_CFA_def_cfa_sf";
3419 return DW_DLV_OK;
3420 case DW_CFA_def_cfa_offset_sf:
3421 *s_out = "DW_CFA_def_cfa_offset_sf";
3422 return DW_DLV_OK;
3423 case DW_CFA_val_offset:
3424 *s_out = "DW_CFA_val_offset";
3425 return DW_DLV_OK;
3426 case DW_CFA_val_offset_sf:
3427 *s_out = "DW_CFA_val_offset_sf";
3428 return DW_DLV_OK;
3429 case DW_CFA_val_expression:
3430 *s_out = "DW_CFA_val_expression";
3431 return DW_DLV_OK;
3432 case DW_CFA_TI_soffset_extended:
3433 *s_out = "DW_CFA_TI_soffset_extended";
3434 return DW_DLV_OK;
3435 /* Skipping alternate spelling of value
3436 0x1c. DW_CFA_lo_user */
3437 /* Skipping alternate spelling of value
3438 0x1c. DW_CFA_low_user */
3439 case DW_CFA_MIPS_advance_loc8:
3440 *s_out = "DW_CFA_MIPS_advance_loc8";
3441 return DW_DLV_OK;
3442 /* Skipping alternate spelling of value
3443 0x1d. DW_CFA_TI_def_cfa_soffset */
3444 case DW_CFA_GNU_window_save:
3445 *s_out = "DW_CFA_GNU_window_save";
3446 return DW_DLV_OK;
3447 /* Skipping alternate spelling of value
3448 0x2d. DW_CFA_AARCH64_negate_ra_state */
3449 case DW_CFA_GNU_args_size:
3450 *s_out = "DW_CFA_GNU_args_size";
3451 return DW_DLV_OK;
3452 case DW_CFA_GNU_negative_offset_extended:
3453 *s_out = "DW_CFA_GNU_negative_offset_extended";
3454 return DW_DLV_OK;
3455 case DW_CFA_LLVM_def_aspace_cfa:
3456 *s_out = "DW_CFA_LLVM_def_aspace_cfa";
3457 return DW_DLV_OK;
3458 case DW_CFA_LLVM_def_aspace_cfa_sf:
3459 *s_out = "DW_CFA_LLVM_def_aspace_cfa_sf";
3460 return DW_DLV_OK;
3461 case DW_CFA_METAWARE_info:
3462 *s_out = "DW_CFA_METAWARE_info";
3463 return DW_DLV_OK;
3464 case DW_CFA_hi_user:
3465 *s_out = "DW_CFA_hi_user";
3466 return DW_DLV_OK;
3467 /* Skipping alternate spelling of value
3468 0x3f. DW_CFA_high_user */
3469 case DW_CFA_advance_loc:
3470 *s_out = "DW_CFA_advance_loc";
3471 return DW_DLV_OK;
3472 case DW_CFA_offset:
3473 *s_out = "DW_CFA_offset";
3474 return DW_DLV_OK;
3475 case DW_CFA_restore:
3476 *s_out = "DW_CFA_restore";
3477 return DW_DLV_OK;
3478 default: break;
3479 }
3480 return DW_DLV_NO_ENTRY;
3481 }
3482 /* ARGSUSED */
3483 int
3484 dwarf_get_EH_name (unsigned int val,
3485 const char ** s_out)
3486 {
3487 switch (val) {
3488 case DW_EH_PE_absptr:
3489 *s_out = "DW_EH_PE_absptr";
3490 return DW_DLV_OK;
3491 case DW_EH_PE_uleb128:
3492 *s_out = "DW_EH_PE_uleb128";
3493 return DW_DLV_OK;
3494 case DW_EH_PE_udata2:
3495 *s_out = "DW_EH_PE_udata2";
3496 return DW_DLV_OK;
3497 case DW_EH_PE_udata4:
3498 *s_out = "DW_EH_PE_udata4";
3499 return DW_DLV_OK;
3500 case DW_EH_PE_udata8:
3501 *s_out = "DW_EH_PE_udata8";
3502 return DW_DLV_OK;
3503 case DW_EH_PE_sleb128:
3504 *s_out = "DW_EH_PE_sleb128";
3505 return DW_DLV_OK;
3506 case DW_EH_PE_sdata2:
3507 *s_out = "DW_EH_PE_sdata2";
3508 return DW_DLV_OK;
3509 case DW_EH_PE_sdata4:
3510 *s_out = "DW_EH_PE_sdata4";
3511 return DW_DLV_OK;
3512 case DW_EH_PE_sdata8:
3513 *s_out = "DW_EH_PE_sdata8";
3514 return DW_DLV_OK;
3515 case DW_EH_PE_pcrel:
3516 *s_out = "DW_EH_PE_pcrel";
3517 return DW_DLV_OK;
3518 case DW_EH_PE_textrel:
3519 *s_out = "DW_EH_PE_textrel";
3520 return DW_DLV_OK;
3521 case DW_EH_PE_datarel:
3522 *s_out = "DW_EH_PE_datarel";
3523 return DW_DLV_OK;
3524 case DW_EH_PE_funcrel:
3525 *s_out = "DW_EH_PE_funcrel";
3526 return DW_DLV_OK;
3527 case DW_EH_PE_aligned:
3528 *s_out = "DW_EH_PE_aligned";
3529 return DW_DLV_OK;
3530 case DW_EH_PE_omit:
3531 *s_out = "DW_EH_PE_omit";
3532 return DW_DLV_OK;
3533 default: break;
3534 }
3535 return DW_DLV_NO_ENTRY;
3536 }
3537 /* ARGSUSED */
3538 int
3539 dwarf_get_FRAME_name (unsigned int val,
3540 const char ** s_out)
3541 {
3542 switch (val) {
3543 case DW_FRAME_LAST_REG_NUM:
3544 *s_out = "DW_FRAME_LAST_REG_NUM";
3545 return DW_DLV_OK;
3546 case DW_FRAME_REG1:
3547 *s_out = "DW_FRAME_REG1";
3548 return DW_DLV_OK;
3549 case DW_FRAME_REG2:
3550 *s_out = "DW_FRAME_REG2";
3551 return DW_DLV_OK;
3552 case DW_FRAME_REG3:
3553 *s_out = "DW_FRAME_REG3";
3554 return DW_DLV_OK;
3555 case DW_FRAME_REG4:
3556 *s_out = "DW_FRAME_REG4";
3557 return DW_DLV_OK;
3558 case DW_FRAME_REG5:
3559 *s_out = "DW_FRAME_REG5";
3560 return DW_DLV_OK;
3561 case DW_FRAME_REG6:
3562 *s_out = "DW_FRAME_REG6";
3563 return DW_DLV_OK;
3564 case DW_FRAME_REG7:
3565 *s_out = "DW_FRAME_REG7";
3566 return DW_DLV_OK;
3567 case DW_FRAME_REG8:
3568 *s_out = "DW_FRAME_REG8";
3569 return DW_DLV_OK;
3570 case DW_FRAME_REG9:
3571 *s_out = "DW_FRAME_REG9";
3572 return DW_DLV_OK;
3573 case DW_FRAME_REG10:
3574 *s_out = "DW_FRAME_REG10";
3575 return DW_DLV_OK;
3576 case DW_FRAME_REG11:
3577 *s_out = "DW_FRAME_REG11";
3578 return DW_DLV_OK;
3579 case DW_FRAME_REG12:
3580 *s_out = "DW_FRAME_REG12";
3581 return DW_DLV_OK;
3582 case DW_FRAME_REG13:
3583 *s_out = "DW_FRAME_REG13";
3584 return DW_DLV_OK;
3585 case DW_FRAME_REG14:
3586 *s_out = "DW_FRAME_REG14";
3587 return DW_DLV_OK;
3588 case DW_FRAME_REG15:
3589 *s_out = "DW_FRAME_REG15";
3590 return DW_DLV_OK;
3591 case DW_FRAME_REG16:
3592 *s_out = "DW_FRAME_REG16";
3593 return DW_DLV_OK;
3594 case DW_FRAME_REG17:
3595 *s_out = "DW_FRAME_REG17";
3596 return DW_DLV_OK;
3597 case DW_FRAME_REG18:
3598 *s_out = "DW_FRAME_REG18";
3599 return DW_DLV_OK;
3600 case DW_FRAME_REG19:
3601 *s_out = "DW_FRAME_REG19";
3602 return DW_DLV_OK;
3603 case DW_FRAME_REG20:
3604 *s_out = "DW_FRAME_REG20";
3605 return DW_DLV_OK;
3606 case DW_FRAME_REG21:
3607 *s_out = "DW_FRAME_REG21";
3608 return DW_DLV_OK;
3609 case DW_FRAME_REG22:
3610 *s_out = "DW_FRAME_REG22";
3611 return DW_DLV_OK;
3612 case DW_FRAME_REG23:
3613 *s_out = "DW_FRAME_REG23";
3614 return DW_DLV_OK;
3615 case DW_FRAME_REG24:
3616 *s_out = "DW_FRAME_REG24";
3617 return DW_DLV_OK;
3618 case DW_FRAME_REG25:
3619 *s_out = "DW_FRAME_REG25";
3620 return DW_DLV_OK;
3621 case DW_FRAME_REG26:
3622 *s_out = "DW_FRAME_REG26";
3623 return DW_DLV_OK;
3624 case DW_FRAME_REG27:
3625 *s_out = "DW_FRAME_REG27";
3626 return DW_DLV_OK;
3627 case DW_FRAME_REG28:
3628 *s_out = "DW_FRAME_REG28";
3629 return DW_DLV_OK;
3630 case DW_FRAME_REG29:
3631 *s_out = "DW_FRAME_REG29";
3632 return DW_DLV_OK;
3633 case DW_FRAME_REG30:
3634 *s_out = "DW_FRAME_REG30";
3635 return DW_DLV_OK;
3636 case DW_FRAME_REG31:
3637 *s_out = "DW_FRAME_REG31";
3638 return DW_DLV_OK;
3639 case DW_FRAME_FREG0:
3640 *s_out = "DW_FRAME_FREG0";
3641 return DW_DLV_OK;
3642 case DW_FRAME_FREG1:
3643 *s_out = "DW_FRAME_FREG1";
3644 return DW_DLV_OK;
3645 case DW_FRAME_FREG2:
3646 *s_out = "DW_FRAME_FREG2";
3647 return DW_DLV_OK;
3648 case DW_FRAME_FREG3:
3649 *s_out = "DW_FRAME_FREG3";
3650 return DW_DLV_OK;
3651 case DW_FRAME_FREG4:
3652 *s_out = "DW_FRAME_FREG4";
3653 return DW_DLV_OK;
3654 case DW_FRAME_FREG5:
3655 *s_out = "DW_FRAME_FREG5";
3656 return DW_DLV_OK;
3657 case DW_FRAME_FREG6:
3658 *s_out = "DW_FRAME_FREG6";
3659 return DW_DLV_OK;
3660 case DW_FRAME_FREG7:
3661 *s_out = "DW_FRAME_FREG7";
3662 return DW_DLV_OK;
3663 case DW_FRAME_FREG8:
3664 *s_out = "DW_FRAME_FREG8";
3665 return DW_DLV_OK;
3666 case DW_FRAME_FREG9:
3667 *s_out = "DW_FRAME_FREG9";
3668 return DW_DLV_OK;
3669 case DW_FRAME_FREG10:
3670 *s_out = "DW_FRAME_FREG10";
3671 return DW_DLV_OK;
3672 case DW_FRAME_FREG11:
3673 *s_out = "DW_FRAME_FREG11";
3674 return DW_DLV_OK;
3675 case DW_FRAME_FREG12:
3676 *s_out = "DW_FRAME_FREG12";
3677 return DW_DLV_OK;
3678 case DW_FRAME_FREG13:
3679 *s_out = "DW_FRAME_FREG13";
3680 return DW_DLV_OK;
3681 case DW_FRAME_FREG14:
3682 *s_out = "DW_FRAME_FREG14";
3683 return DW_DLV_OK;
3684 case DW_FRAME_FREG15:
3685 *s_out = "DW_FRAME_FREG15";
3686 return DW_DLV_OK;
3687 case DW_FRAME_FREG16:
3688 *s_out = "DW_FRAME_FREG16";
3689 return DW_DLV_OK;
3690 case DW_FRAME_FREG17:
3691 *s_out = "DW_FRAME_FREG17";
3692 return DW_DLV_OK;
3693 case DW_FRAME_FREG18:
3694 *s_out = "DW_FRAME_FREG18";
3695 return DW_DLV_OK;
3696 case DW_FRAME_FREG19:
3697 *s_out = "DW_FRAME_FREG19";
3698 return DW_DLV_OK;
3699 case DW_FRAME_FREG20:
3700 *s_out = "DW_FRAME_FREG20";
3701 return DW_DLV_OK;
3702 case DW_FRAME_FREG21:
3703 *s_out = "DW_FRAME_FREG21";
3704 return DW_DLV_OK;
3705 case DW_FRAME_FREG22:
3706 *s_out = "DW_FRAME_FREG22";
3707 return DW_DLV_OK;
3708 case DW_FRAME_FREG23:
3709 *s_out = "DW_FRAME_FREG23";
3710 return DW_DLV_OK;
3711 case DW_FRAME_FREG24:
3712 *s_out = "DW_FRAME_FREG24";
3713 return DW_DLV_OK;
3714 case DW_FRAME_FREG25:
3715 *s_out = "DW_FRAME_FREG25";
3716 return DW_DLV_OK;
3717 case DW_FRAME_FREG26:
3718 *s_out = "DW_FRAME_FREG26";
3719 return DW_DLV_OK;
3720 case DW_FRAME_FREG27:
3721 *s_out = "DW_FRAME_FREG27";
3722 return DW_DLV_OK;
3723 case DW_FRAME_FREG28:
3724 *s_out = "DW_FRAME_FREG28";
3725 return DW_DLV_OK;
3726 case DW_FRAME_FREG29:
3727 *s_out = "DW_FRAME_FREG29";
3728 return DW_DLV_OK;
3729 case DW_FRAME_FREG30:
3730 *s_out = "DW_FRAME_FREG30";
3731 return DW_DLV_OK;
3732 case DW_FRAME_FREG31:
3733 *s_out = "DW_FRAME_FREG31";
3734 return DW_DLV_OK;
3735 case DW_FRAME_FREG32:
3736 *s_out = "DW_FRAME_FREG32";
3737 return DW_DLV_OK;
3738 case DW_FRAME_FREG33:
3739 *s_out = "DW_FRAME_FREG33";
3740 return DW_DLV_OK;
3741 case DW_FRAME_FREG34:
3742 *s_out = "DW_FRAME_FREG34";
3743 return DW_DLV_OK;
3744 case DW_FRAME_FREG35:
3745 *s_out = "DW_FRAME_FREG35";
3746 return DW_DLV_OK;
3747 case DW_FRAME_FREG36:
3748 *s_out = "DW_FRAME_FREG36";
3749 return DW_DLV_OK;
3750 case DW_FRAME_FREG37:
3751 *s_out = "DW_FRAME_FREG37";
3752 return DW_DLV_OK;
3753 case DW_FRAME_FREG38:
3754 *s_out = "DW_FRAME_FREG38";
3755 return DW_DLV_OK;
3756 case DW_FRAME_FREG39:
3757 *s_out = "DW_FRAME_FREG39";
3758 return DW_DLV_OK;
3759 case DW_FRAME_FREG40:
3760 *s_out = "DW_FRAME_FREG40";
3761 return DW_DLV_OK;
3762 case DW_FRAME_FREG41:
3763 *s_out = "DW_FRAME_FREG41";
3764 return DW_DLV_OK;
3765 case DW_FRAME_FREG42:
3766 *s_out = "DW_FRAME_FREG42";
3767 return DW_DLV_OK;
3768 case DW_FRAME_FREG43:
3769 *s_out = "DW_FRAME_FREG43";
3770 return DW_DLV_OK;
3771 case DW_FRAME_FREG44:
3772 *s_out = "DW_FRAME_FREG44";
3773 return DW_DLV_OK;
3774 case DW_FRAME_FREG45:
3775 *s_out = "DW_FRAME_FREG45";
3776 return DW_DLV_OK;
3777 case DW_FRAME_FREG46:
3778 *s_out = "DW_FRAME_FREG46";
3779 return DW_DLV_OK;
3780 case DW_FRAME_FREG47:
3781 *s_out = "DW_FRAME_FREG47";
3782 return DW_DLV_OK;
3783 case DW_FRAME_FREG48:
3784 *s_out = "DW_FRAME_FREG48";
3785 return DW_DLV_OK;
3786 case DW_FRAME_FREG49:
3787 *s_out = "DW_FRAME_FREG49";
3788 return DW_DLV_OK;
3789 case DW_FRAME_FREG50:
3790 *s_out = "DW_FRAME_FREG50";
3791 return DW_DLV_OK;
3792 case DW_FRAME_FREG51:
3793 *s_out = "DW_FRAME_FREG51";
3794 return DW_DLV_OK;
3795 case DW_FRAME_FREG52:
3796 *s_out = "DW_FRAME_FREG52";
3797 return DW_DLV_OK;
3798 case DW_FRAME_FREG53:
3799 *s_out = "DW_FRAME_FREG53";
3800 return DW_DLV_OK;
3801 case DW_FRAME_FREG54:
3802 *s_out = "DW_FRAME_FREG54";
3803 return DW_DLV_OK;
3804 case DW_FRAME_FREG55:
3805 *s_out = "DW_FRAME_FREG55";
3806 return DW_DLV_OK;
3807 case DW_FRAME_FREG56:
3808 *s_out = "DW_FRAME_FREG56";
3809 return DW_DLV_OK;
3810 case DW_FRAME_FREG57:
3811 *s_out = "DW_FRAME_FREG57";
3812 return DW_DLV_OK;
3813 case DW_FRAME_FREG58:
3814 *s_out = "DW_FRAME_FREG58";
3815 return DW_DLV_OK;
3816 case DW_FRAME_FREG59:
3817 *s_out = "DW_FRAME_FREG59";
3818 return DW_DLV_OK;
3819 case DW_FRAME_FREG60:
3820 *s_out = "DW_FRAME_FREG60";
3821 return DW_DLV_OK;
3822 case DW_FRAME_FREG61:
3823 *s_out = "DW_FRAME_FREG61";
3824 return DW_DLV_OK;
3825 case DW_FRAME_FREG62:
3826 *s_out = "DW_FRAME_FREG62";
3827 return DW_DLV_OK;
3828 case DW_FRAME_FREG63:
3829 *s_out = "DW_FRAME_FREG63";
3830 return DW_DLV_OK;
3831 case DW_FRAME_FREG64:
3832 *s_out = "DW_FRAME_FREG64";
3833 return DW_DLV_OK;
3834 case DW_FRAME_FREG65:
3835 *s_out = "DW_FRAME_FREG65";
3836 return DW_DLV_OK;
3837 case DW_FRAME_FREG66:
3838 *s_out = "DW_FRAME_FREG66";
3839 return DW_DLV_OK;
3840 case DW_FRAME_FREG67:
3841 *s_out = "DW_FRAME_FREG67";
3842 return DW_DLV_OK;
3843 case DW_FRAME_FREG68:
3844 *s_out = "DW_FRAME_FREG68";
3845 return DW_DLV_OK;
3846 case DW_FRAME_FREG69:
3847 *s_out = "DW_FRAME_FREG69";
3848 return DW_DLV_OK;
3849 case DW_FRAME_FREG70:
3850 *s_out = "DW_FRAME_FREG70";
3851 return DW_DLV_OK;
3852 case DW_FRAME_FREG71:
3853 *s_out = "DW_FRAME_FREG71";
3854 return DW_DLV_OK;
3855 case DW_FRAME_FREG72:
3856 *s_out = "DW_FRAME_FREG72";
3857 return DW_DLV_OK;
3858 case DW_FRAME_FREG73:
3859 *s_out = "DW_FRAME_FREG73";
3860 return DW_DLV_OK;
3861 case DW_FRAME_FREG74:
3862 *s_out = "DW_FRAME_FREG74";
3863 return DW_DLV_OK;
3864 case DW_FRAME_FREG75:
3865 *s_out = "DW_FRAME_FREG75";
3866 return DW_DLV_OK;
3867 case DW_FRAME_FREG76:
3868 *s_out = "DW_FRAME_FREG76";
3869 return DW_DLV_OK;
3870 case DW_FRAME_HIGHEST_NORMAL_REGISTER:
3871 *s_out = "DW_FRAME_HIGHEST_NORMAL_REGISTER";
3872 return DW_DLV_OK;
3873 default: break;
3874 }
3875 return DW_DLV_NO_ENTRY;
3876 }
3877 /* ARGSUSED */
3878 int
3879 dwarf_get_CHILDREN_name (unsigned int val,
3880 const char ** s_out)
3881 {
3882 switch (val) {
3883 case DW_CHILDREN_no:
3884 *s_out = "DW_CHILDREN_no";
3885 return DW_DLV_OK;
3886 case DW_CHILDREN_yes:
3887 *s_out = "DW_CHILDREN_yes";
3888 return DW_DLV_OK;
3889 default: break;
3890 }
3891 return DW_DLV_NO_ENTRY;
3892 }
3893 /* ARGSUSED */
3894 int
3895 dwarf_get_ADDR_name (unsigned int val,
3896 const char ** s_out)
3897 {
3898 switch (val) {
3899 case DW_ADDR_none:
3900 *s_out = "DW_ADDR_none";
3901 return DW_DLV_OK;
3902 case DW_ADDR_TI_PTR8:
3903 *s_out = "DW_ADDR_TI_PTR8";
3904 return DW_DLV_OK;
3905 case DW_ADDR_TI_PTR16:
3906 *s_out = "DW_ADDR_TI_PTR16";
3907 return DW_DLV_OK;
3908 case DW_ADDR_TI_PTR22:
3909 *s_out = "DW_ADDR_TI_PTR22";
3910 return DW_DLV_OK;
3911 case DW_ADDR_TI_PTR23:
3912 *s_out = "DW_ADDR_TI_PTR23";
3913 return DW_DLV_OK;
3914 case DW_ADDR_TI_PTR24:
3915 *s_out = "DW_ADDR_TI_PTR24";
3916 return DW_DLV_OK;
3917 case DW_ADDR_TI_PTR32:
3918 *s_out = "DW_ADDR_TI_PTR32";
3919 return DW_DLV_OK;
3920 default: break;
3921 }
3922 return DW_DLV_NO_ENTRY;
3923 }
3924
3925 /* END FILE */