Ignore:
Timestamp:
2023-10-28T17:42:47Z (15 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, topic/msim-upgrade, topic/simplify-dev-export
Children:
3e05a69
Parents:
63ed840
Message:

Remove include sorcery from DWARF constant definitions

Also add a bunch of missing constants.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/debug/names.h

    r63ed840 r1170cfc7  
    2727 */
    2828
    29 #ifndef DWARFS_NAMES_H_
    30 #define DWARFS_NAMES_H_
     29#ifndef DEBUG_DWARF_NAMES_H_
     30#define DEBUG_DWARF_NAMES_H_
    3131
    32 #define D_(infix) \
    33         typedef unsigned dw_##infix##_t; \
    34         extern const char *dw_##infix##_name(dw_##infix##_t)
     32#include <debug/types.h>
    3533
    36 D_(ut);
    37 D_(tag);
    38 D_(at);
    39 D_(form);
    40 D_(op);
    41 D_(lle);
    42 D_(ate);
    43 D_(ds);
    44 D_(end);
    45 D_(access);
    46 D_(vis);
    47 D_(virtuality);
    48 D_(lang);
    49 D_(id);
    50 D_(cc);
    51 D_(lns);
    52 D_(lne);
    53 D_(lnct);
     34extern const char *dw_access_name(dw_access_t);
     35extern const char *dw_at_name(dw_at_t);
     36extern const char *dw_ate_name(dw_ate_t);
     37extern const char *dw_cc_name(dw_cc_t);
     38extern const char *dw_cfa_name(dw_cfa_t);
     39extern const char *dw_defaulted_name(dw_defaulted_t);
     40extern const char *dw_ds_name(dw_ds_t);
     41extern const char *dw_dsc_name(dw_dsc_t);
     42extern const char *dw_end_name(dw_end_t);
     43extern const char *dw_form_name(dw_form_t);
     44extern const char *dw_id_name(dw_id_t);
     45extern const char *dw_idx_name(dw_idx_t);
     46extern const char *dw_inl_name(dw_inl_t);
     47extern const char *dw_lang_name(dw_lang_t);
     48extern const char *dw_lle_name(dw_lle_t);
     49extern const char *dw_lnct_name(dw_lnct_t);
     50extern const char *dw_lne_name(dw_lne_t);
     51extern const char *dw_lns_name(dw_lns_t);
     52extern const char *dw_macro_name(dw_macro_t);
     53extern const char *dw_op_name(dw_op_t);
     54extern const char *dw_ord_name(dw_ord_t);
     55extern const char *dw_rle_name(dw_rle_t);
     56extern const char *dw_tag_name(dw_tag_t);
     57extern const char *dw_ut_name(dw_ut_t);
     58extern const char *dw_virtuality_name(dw_virtuality_t);
     59extern const char *dw_vis_name(dw_vis_t);
    5460
    55 #undef D_
    56 
    57 #endif /* DWARFS_NAMES_H_ */
     61#endif /* DEBUG_DWARF_NAMES_H_ */
Note: See TracChangeset for help on using the changeset viewer.