[ltrace-commits] 20/40: If a functions is defined in a .conf, I do not parse the DWARF
Petr Machata
pmachata-guest at moszumanska.debian.org
Sun May 11 22:38:54 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 ea98c94077201915e2894073c929139caf8ee5cb
Author: Dima Kogan <dima at secretsauce.net>
Date: Wed Apr 23 15:55:41 2014 -0700
If a functions is defined in a .conf, I do not parse the DWARF
Previously I would parse the DWARF data for such a function, but I wouldn't use
the result. Now I don't even parse
---
dwarf_prototypes.c | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/dwarf_prototypes.c b/dwarf_prototypes.c
index 2960da3..1068bbb 100644
--- a/dwarf_prototypes.c
+++ b/dwarf_prototypes.c
@@ -714,6 +714,12 @@ static bool import_subprogram(struct protolib* plib, struct library* lib,
return true;
}
+ if (!filter_matches_symbol(options.plt_filter, function_name, lib) &&
+ !filter_matches_symbol(options.static_filter, function_name, lib) &&
+ !filter_matches_symbol(options.export_filter, function_name, lib)) {
+ complain(die, "Prototype not requested by any filter");
+ return true;
+ }
complain(die, "subroutine_type: 0x%02x; function '%s'",
dwarf_tag(die), function_name);
@@ -726,13 +732,6 @@ static bool import_subprogram(struct protolib* plib, struct library* lib,
return true;
}
- if (!filter_matches_symbol(options.plt_filter, function_name, lib) &&
- !filter_matches_symbol(options.static_filter, function_name, lib) &&
- !filter_matches_symbol(options.export_filter, function_name, lib)) {
- complain(die, "Prototype not requested by any filter");
- return true;
- }
-
proto = malloc(sizeof(struct prototype));
if (proto == NULL) {
complain(die, "couldn't alloc prototype");
--
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