public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Improve resolution of declaration-only enums
@ 2022-08-25 11:48 Giuliano Procida
  2022-08-25 11:48 ` [PATCH 1/3] abidw: fix --stats output for resolved classes and enums Giuliano Procida
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Giuliano Procida @ 2022-08-25 11:48 UTC (permalink / raw)
  To: libabigail; +Cc: dodji, kernel-team, gprocida, maennich, sidnayyar, vvvvvv

Hi Dodji.

We noticed this sort of output in Android kernel ABI XML:

    <enum-decl name='dax_access_mode' is-declaration-only='yes' id='241913bb'>
      <underlying-type type-id='52ba91e1'/>
    </enum-decl>
    ...
    <enum-decl name='dax_access_mode' filepath='include/linux/dax.h' line='17' column='1' id='241913ba'>
      <underlying-type type-id='9cac1fee'/>
      <enumerator name='DAX_ACCESS' value='0'/>
      <enumerator name='DAX_RECOVERY_WRITE' value='1'/>
    </enum-decl>

Note that they have distinct type ids and are both referenced by the
rest of the ABI.

This short series fixes the issue and another minor bug at the same
time.

Regards,
Giuliano.

Giuliano Procida (3):
  abidw: fix --stats output for resolved classes and enums
  abidw: remove always true test in resolve_declaration_only_classes
  abidw: resolve declaration-only enums the same as classes

 src/abg-dwarf-reader.cc | 84 ++++++++++++++++++++++++++++-------------
 1 file changed, 57 insertions(+), 27 deletions(-)

-- 
2.37.1.595.g718a3a8f04-goog


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-08-29 11:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-25 11:48 [PATCH 0/3] Improve resolution of declaration-only enums Giuliano Procida
2022-08-25 11:48 ` [PATCH 1/3] abidw: fix --stats output for resolved classes and enums Giuliano Procida
2022-08-29 11:19   ` Dodji Seketeli
2022-08-25 11:48 ` [PATCH 2/3] abidw: remove always true test in resolve_declaration_only_classes Giuliano Procida
2022-08-29 11:19   ` Dodji Seketeli
2022-08-25 11:48 ` [PATCH 3/3] abidw: resolve declaration-only enums the same as classes Giuliano Procida
2022-08-29 11:20   ` Dodji Seketeli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).