This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 04/10] libdw: dwarfstrings.c use known-dwarf.h ALL_KNOWN_DW macros.


> For dwarf_access_string, dwarf_visibility_string,
> dwarf_virtuality_string, dwarf_identifier_case_string,
> dwarf_calling_convention_string, dwarf_encoding_string,
> dwarf_ordering_string and dwarf_discr_list_string by defining
> the known array because there are no code value gaps.
> 
> For dwarf_tag_string, dwarf_attr_string and dwarf_form_string,
> dwarf_lang_string and dwarf_lang_description which do contain large
> code value gaps use a switch-case statement.

Perhaps the awk script can just notice the values and keep track of whether
there are any large gaps or not.  Then it could define a macro for each set
saying so.  With that, we can put the entire body of the accessor functions
into one common parameterized file and #include that with a couple of macro
definitions to define each function.


Thanks,
Roland


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]