From fadef8a886f28c6826c827ec2c91c565f3077591 Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Tue, 7 Oct 2025 11:03:18 -0700 Subject: [PATCH] log source of dwarf info more specifically --- src/radbin/radbin.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/radbin/radbin.c b/src/radbin/radbin.c index 966dcde4..9788b5f7 100644 --- a/src/radbin/radbin.c +++ b/src/radbin/radbin.c @@ -613,13 +613,16 @@ rb_thread_entry_point(void *p) RDIM_BakeParams dwarf_bake_params = {0}; { //- rjf: PE inputs w/ DWARF, or ELF inputs => DWARF -> RDI conversion - if(((input_files_from_format_table[RB_FileFormat_PE].count != 0 && - input_files_from_format_table[RB_FileFormat_PE].first->v->format_flags & RB_FileFormatFlag_HasDWARF) || - (input_files_from_format_table[RB_FileFormat_ELF32].count != 0 || - input_files_from_format_table[RB_FileFormat_ELF64].count != 0))) + B32 pe_w_dwarf = (input_files_from_format_table[RB_FileFormat_PE].count != 0 && + input_files_from_format_table[RB_FileFormat_PE].first->v->format_flags & RB_FileFormatFlag_HasDWARF); + B32 elf_w_dwarf = (input_files_from_format_table[RB_FileFormat_ELF32].count != 0 || + input_files_from_format_table[RB_FileFormat_ELF64].count != 0); + if(pe_w_dwarf || elf_w_dwarf) { convert_done = 1; - log_infof("PEs w/ DWARF, or ELFs specified; converting DWARF data to RDI\n"); + if(0){} + else if(pe_w_dwarf) { log_infof("PEs w/ DWARF specified; converting DWARF data to RDI\n"); } + else if(elf_w_dwarf) { log_infof("ELFs specified; converting DWARF data to RDI\n"); } // rjf: convert D2R_ConvertParams convert_params = {0};