Read about our upcoming Code of Conduct on this issue

Commit 5a86b0d9 authored by alex@thinkpad's avatar alex@thinkpad
Browse files

GDB scripts: fix IDC names containing spaces

--HG--
branch : qemu
parent 219bdfa76325
......@@ -283,6 +283,7 @@ define named_func_add
printf "\n"
printf "static MakeAutoName(ea,name)\n"
printf "{\n"
printf " auto p; while ((p = strstr(name, \" \")) >= 0) name[p] = \"_\";\n"
printf " if (!hasUserName(GetFlags(ea))) {\n"
printf " if (!(MakeNameEx(ea,name,SN_AUTO|SN_CHECK))) {\n"
printf " if (!(MakeNameEx(ea,name+\"_0\",SN_AUTO|SN_CHECK))) {\n"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment