]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ctf: Improve debugging and indentation fixes
authorNick Alcock <nick.alcock@oracle.com>
Thu, 22 Nov 2012 09:30:11 +0000 (09:30 +0000)
committerNick Alcock <nick.alcock@oracle.com>
Mon, 29 Jun 2015 21:41:39 +0000 (22:41 +0100)
Reporting the type ID helps us determine when types used later on are
introduced.

Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
scripts/dwarf2ctf/dwarf2ctf.c

index aebd1eba94970b4a99b2af6fe7e09b79020bf82a..8bf7cf62e8b9aaf944934b5c31fbef0648d62141 100644 (file)
@@ -2282,6 +2282,7 @@ static ctf_id_t die_to_ctf(const char *module_name, const char *file_name,
                exit(1);
        }
 
+       dw_ctf_trace("New type ID: %p:%li\n", ctf, this_ctf_id);
        return this_ctf_id;
 }
 
@@ -3024,7 +3025,7 @@ static ctf_id_t assemble_ctf_su_member(const char *module_name,
             * Anonymous structure or union with no members. Silently skip.
             */
            if (dwarf_child(&type_die, &child_die) < 0)
-               return parent_ctf_id;
+                   return parent_ctf_id;
 
            die_to_ctf(module_name, file_name, &child_die, parent_die, ctf,
                       parent_ctf_id, offset, 0, skip, &dummy, NULL);