- XBT_DEBUG("Load DWARF for %s from %s", info->file_name.c_str(), debug_file.c_str());
- fd = open(debug_file.c_str(), O_RDONLY);
- xbt_assert(fd >= 0, "Could not open file %s", debug_file.c_str());
- dwarf = dwarf_begin(fd, DWARF_C_READ);
- xbt_assert(dwarf != nullptr, "No DWARF info in %s for %s", debug_file.c_str(), info->file_name.c_str());
+ XBT_DEBUG("Load DWARF for %s", info->file_name.c_str());
+ Dwarf* dwarf = dwarf_begin(fd, DWARF_C_READ);
+ xbt_assert(dwarf != nullptr, "No DWARF info for %s", info->file_name.c_str());