I now read the DWARF data in addition to the .conf files
authorDima Kogan <dima@secretsauce.net>
Wed, 23 Apr 2014 23:15:57 +0000 (16:15 -0700)
committerChanho Park <chanho61.park@samsung.com>
Fri, 22 Aug 2014 11:38:25 +0000 (20:38 +0900)
Previously if a .conf file for a library was available, the corresponding DWARF
data would not be parsed. Now I use one to complement the other

output.c

index f7d23ce..e3a5f2b 100644 (file)
--- a/output.c
+++ b/output.c
@@ -213,7 +213,9 @@ library_get_prototype(struct library *lib, const char *name)
                         && snip_period(buf));
 
 #if defined(HAVE_LIBDW)
-               if (lib->protolib == NULL && lib->dwfl != NULL &&
+               // DWARF data fills in the gaps in the .conf files, so I don't check for
+               // lib->protolib==NULL here
+               if (lib->dwfl != NULL &&
                        (filter_matches_library(options.plt_filter,    lib ) ||
                         filter_matches_library(options.static_filter, lib ) ||
                         filter_matches_library(options.export_filter, lib )))