From: Nick Alcock Date: Thu, 22 Nov 2012 09:30:11 +0000 (+0000) Subject: ctf: Improve debugging and indentation fixes X-Git-Tag: v4.1.12-92~313^2~97 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=2218bba18c1ecf2392a2c4ebf724f3a2aba21d79;p=users%2Fjedix%2Flinux-maple.git ctf: Improve debugging and indentation fixes Reporting the type ID helps us determine when types used later on are introduced. Signed-off-by: Nick Alcock --- diff --git a/scripts/dwarf2ctf/dwarf2ctf.c b/scripts/dwarf2ctf/dwarf2ctf.c index aebd1eba9497..8bf7cf62e8b9 100644 --- a/scripts/dwarf2ctf/dwarf2ctf.c +++ b/scripts/dwarf2ctf/dwarf2ctf.c @@ -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);