[ltrace-commits] 33/40: added a bit more diagnostic printing
Petr Machata
pmachata-guest at moszumanska.debian.org
Sun May 11 22:38:55 UTC 2014
This is an automated email from the git hooks/post-receive script.
pmachata-guest pushed a commit to branch master
in repository ltrace.
commit b19f7eb2d116998489e153b7230d68314a7eb737
Author: Dima Kogan <dima at secretsauce.net>
Date: Thu May 1 17:21:55 2014 -0700
added a bit more diagnostic printing
---
dwarf_prototypes.c | 1 +
output.c | 4 ++++
2 files changed, 5 insertions(+)
diff --git a/dwarf_prototypes.c b/dwarf_prototypes.c
index f2de485..90e83ed 100644
--- a/dwarf_prototypes.c
+++ b/dwarf_prototypes.c
@@ -935,6 +935,7 @@ bool import_DWARF_prototypes(struct library* lib)
struct protolib* plib = lib->protolib;
Dwfl* dwfl = lib->dwfl;
+ debug(DEBUG_FUNCTION, "Importing DWARF prototypes from '%s'", lib->soname);
if (plib == NULL) {
const char* soname_dup = strdup(lib->soname);
diff --git a/output.c b/output.c
index e3a5f2b..cc45e52 100644
--- a/output.c
+++ b/output.c
@@ -50,6 +50,7 @@
#include "value.h"
#include "value_dict.h"
#include "filter.h"
+#include "debug.h"
#if defined(HAVE_LIBDW)
#include "dwarf_prototypes.h"
@@ -220,6 +221,9 @@ library_get_prototype(struct library *lib, const char *name)
filter_matches_library(options.static_filter, lib ) ||
filter_matches_library(options.export_filter, lib )))
import_DWARF_prototypes(lib);
+ else
+ debug(DEBUG_FUNCTION, "Filter didn't match prototype '%s' in lib '%s'. Not importing",
+ name, lib->soname);
#endif
if (lib->protolib == NULL)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/ltrace.git
More information about the ltrace-commits
mailing list