DBG: sync mnemdb with the latest idaref

This commit is contained in:
Duncan Ogilvie 2019-10-02 22:13:38 +02:00
parent 4272d3518f
commit 83e1705985
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
3 changed files with 1729 additions and 476 deletions

File diff suppressed because one or more lines are too long

View File

@ -672,7 +672,12 @@ bool cbInstrMnemonichelp(int argc, char* argv[])
else
{
auto padding = "================================================================";
auto logText = StringUtils::sprintf("%s%s%s\n", padding, description.c_str(), padding);
String logText = padding;
logText += '\n';
logText += description;
logText += '\n';
logText += padding;
logText += '\n';
GuiAddLogMessage(logText.c_str());
}
return true;

View File

@ -48,7 +48,7 @@ static bool loadFromText()
auto mnem = json_string_value(json_object_get(value, "mnem"));
auto description = json_string_value(json_object_get(value, "description"));
if(mnem && description)
MnemonicMap[StringUtils::ToLower(mnem)] = description;
MnemonicMap.emplace(StringUtils::ToLower(mnem), StringUtils::Trim(description));
}
}
@ -65,7 +65,7 @@ static bool loadFromText()
auto mnem = json_string_value(json_object_get(value, "mnem"));
auto description = json_string_value(json_object_get(value, "description"));
if(mnem && description)
MnemonicBriefMap[mnem] = description;
MnemonicBriefMap.emplace(mnem, StringUtils::Trim(description));
}
}