DWARF parser now looks for exported types
authorDima Kogan <dima@secretsauce.net>
Mon, 28 Apr 2014 16:24:39 +0000 (09:24 -0700)
committerChanho Park <chanho61.park@samsung.com>
Fri, 22 Aug 2014 11:38:25 +0000 (20:38 +0900)
I now pass true to protolib_lookup_type(). Thus the user can now define a type
in .ltrace.conf, and it would be picked up

dwarf_prototypes.c

index 147f536..71f6e90 100644 (file)
@@ -512,7 +512,7 @@ static bool get_type(struct arg_type_info** info, Dwarf_Die* type_die, struct pr
        if (type_name != NULL) {
 
                struct named_type* already_defined_type =
-                       protolib_lookup_type(plib, type_name, false);
+                       protolib_lookup_type(plib, type_name, true);
 
                if (already_defined_type != NULL) {
                        complain(type_die,