From 4867d57222073a67ccb1c9a9eeec97a7049acf5c Mon Sep 17 00:00:00 2001 From: billow Date: Thu, 24 Aug 2023 15:43:54 +0800 Subject: [PATCH] Do not rename an existing function with an automatically generated name. --- librz/analysis/dwarf_process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/librz/analysis/dwarf_process.c b/librz/analysis/dwarf_process.c index d0a9dcfda25..3c9339bebe8 100644 --- a/librz/analysis/dwarf_process.c +++ b/librz/analysis/dwarf_process.c @@ -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);