dbg_dir = opt_debug_info_dir ? : DEFAULT_DEBUG_DIR;
- /* 2 characters per byte printed in hex, +1 for '/' and +1 for
- * '\0' */
+ /* 2 characters per byte printed in hex, +1 for '/' and +1 for '\0' */
build_id_file_len = (2 * bin->build_id_len) + 1 +
strlen(BUILD_ID_SUFFIX) + 1;
build_id_file = malloc(build_id_file_len);
return -1;
}
-
BT_HIDDEN
void source_location_destroy(struct source_location *src_loc)
{
free(src_loc->filename);
g_free(src_loc);
}
+
/**
* Append a string representation of an address offset to an existing
* string.
if (_func_name) {
*func_name = _func_name;
+ } else {
+ goto error;
}
bt_dwarf_cu_destroy(cu);