Skip to content

Commit

Permalink
Do not rename an existing function with an automatically generated name.
Browse files Browse the repository at this point in the history
  • Loading branch information
imbillow committed Aug 25, 2023
1 parent 10a90a7 commit 4867d57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion librz/analysis/dwarf_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -1886,7 +1886,7 @@ static bool dwarf_integrate_function(void *user, const ut64 k, const void *value
rz_meta_set_string(analysis, RZ_META_TYPE_COMMENT, fn->low_pc, sig);
}

if (fn->prefer_name) {
if (fn->prefer_name && !rz_str_startswith(fn->prefer_name, "anonymous")) {
char *dwf_name = rz_str_newf("dbg.%s", fn->prefer_name);
rz_analysis_function_rename((RzAnalysisFunction *)afn, dwf_name);
free(dwf_name);
Expand Down

0 comments on commit 4867d57

Please sign in to comment.