Commend out prints

This commit is contained in:
Jeremy 2023-11-08 14:59:53 -05:00
parent 5bf66156cd
commit 6fbedd0ed6
No known key found for this signature in database
GPG Key ID: BE03111EB7ED6E2E

View File

@ -318,7 +318,7 @@ namespace libdwarf {
const auto file = ""; // die.get_string_attribute(DW_AT_call_file); const auto file = ""; // die.get_string_attribute(DW_AT_call_file);
const auto line = die.get_unsigned_attribute(DW_AT_call_line); const auto line = die.get_unsigned_attribute(DW_AT_call_line);
const auto col = die.get_unsigned_attribute(DW_AT_call_column); const auto col = die.get_unsigned_attribute(DW_AT_call_column);
printf(" %s %s:%u:%u\n", name.c_str(), file, (unsigned)line.value_or(0), (unsigned)col.value_or(0)); // printf(" %s %s:%u:%u\n", name.c_str(), file, (unsigned)line.value_or(0), (unsigned)col.value_or(0));
inlines.push_back(stacktrace_frame{ inlines.push_back(stacktrace_frame{
0, 0,
(unsigned int)line.value_or(0), (unsigned int)line.value_or(0),
@ -342,9 +342,9 @@ namespace libdwarf {
std::vector<stacktrace_frame>& inlines std::vector<stacktrace_frame>& inlines
) { ) {
ASSERT(die.get_tag() == DW_TAG_subprogram); ASSERT(die.get_tag() == DW_TAG_subprogram);
if(pc) printf("============================\n"); // if(pc) printf("============================\n");
const auto name = subprogram_symbol(die, pc, dwversion); const auto name = subprogram_symbol(die, pc, dwversion);
if(pc) printf("%s\n", name.c_str()); // if(pc) printf("%s\n", name.c_str());
get_inlines_info(die, pc, dwversion, inlines); get_inlines_info(die, pc, dwversion, inlines);
return name; return name;
} }