From 2218bba18c1ecf2392a2c4ebf724f3a2aba21d79 Mon Sep 17 00:00:00 2001 From: Nick Alcock Date: Thu, 22 Nov 2012 09:30:11 +0000 Subject: [PATCH] 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 --- scripts/dwarf2ctf/dwarf2ctf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.50.1