summaryrefslogtreecommitdiff
path: root/output.c
diff options
context:
space:
mode:
authorDima Kogan <dima@secretsauce.net>2014-04-23 16:15:57 -0700
committerChanho Park <chanho61.park@samsung.com>2014-08-22 20:38:25 +0900
commit6892eafd9704dfd84f8a5bdabfb53c51b993118e (patch)
treeaa99c0fd8da586914ac8edc54235012819bdf434 /output.c
parentbbf56636fb1e0c893251a562ee47c80c3fc577ba (diff)
downloadltrace-6892eafd9704dfd84f8a5bdabfb53c51b993118e.tar.gz
ltrace-6892eafd9704dfd84f8a5bdabfb53c51b993118e.tar.bz2
ltrace-6892eafd9704dfd84f8a5bdabfb53c51b993118e.zip
I now read the DWARF data in addition to the .conf files
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
Diffstat (limited to 'output.c')
-rw-r--r--output.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/output.c b/output.c
index f7d23ce..e3a5f2b 100644
--- 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 )))