1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-15 06:44:10 +02:00

Minor IDE fixes

This commit is contained in:
Brian Fiete 2019-09-26 08:26:49 -07:00
parent e4635f0f52
commit 4fcbdc423d
2 changed files with 7 additions and 4 deletions

View file

@ -511,6 +511,7 @@ namespace IDE.ui
mLineDatas.Clear(); mLineDatas.Clear();
String codeData = scope String(); String codeData = scope String();
if (addr != 0)
IDEApp.sApp.mDebugger.DisassembleAt(addr, codeData); IDEApp.sApp.mDebugger.DisassembleAt(addr, codeData);
int prevDisasmLineData = -1; int prevDisasmLineData = -1;
int lineIdx = 0; int lineIdx = 0;
@ -1248,6 +1249,7 @@ namespace IDE.ui
debugExpr.Replace('[', '('); debugExpr.Replace('[', '(');
debugExpr.Replace(']', ')'); debugExpr.Replace(']', ')');
debugExpr.Replace("xmmword ptr", "(int64[2]*)");
debugExpr.Replace("qword ptr", "(int64*)"); debugExpr.Replace("qword ptr", "(int64*)");
debugExpr.Replace("dword ptr", "(int32*)"); debugExpr.Replace("dword ptr", "(int32*)");
debugExpr.Replace("word ptr", "(int16*)"); debugExpr.Replace("word ptr", "(int16*)");

View file

@ -38,8 +38,9 @@ namespace IDE.ui
} }
var vals = scope List<StringView>(val.Split('\n')); var vals = scope List<StringView>(val.Split('\n'));
let addr = (int)int64.Parse(scope String(vals[0]), System.Globalization.NumberStyles.HexNumber); let addr = (int)int64.Parse(scope String(vals[0]), System.Globalization.NumberStyles.HexNumber).GetValueOrDefault();
let byteCount = int32.Parse(scope String(vals[1])).Get(); let byteCount = int32.Parse(scope String(vals[1])).GetValueOrDefault();
if (addr != 0)
mMemoryPanel.mBinaryDataWidget.SelectRange(addr, byteCount); mMemoryPanel.mBinaryDataWidget.SelectRange(addr, byteCount);
Close(); Close();
} }