mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Minor IDE fixes
This commit is contained in:
parent
e4635f0f52
commit
4fcbdc423d
2 changed files with 7 additions and 4 deletions
|
@ -511,7 +511,8 @@ namespace IDE.ui
|
|||
mLineDatas.Clear();
|
||||
|
||||
String codeData = scope String();
|
||||
IDEApp.sApp.mDebugger.DisassembleAt(addr, codeData);
|
||||
if (addr != 0)
|
||||
IDEApp.sApp.mDebugger.DisassembleAt(addr, codeData);
|
||||
int prevDisasmLineData = -1;
|
||||
int lineIdx = 0;
|
||||
bool allowEmptyLine = false;
|
||||
|
@ -1248,6 +1249,7 @@ namespace IDE.ui
|
|||
|
||||
debugExpr.Replace('[', '(');
|
||||
debugExpr.Replace(']', ')');
|
||||
debugExpr.Replace("xmmword ptr", "(int64[2]*)");
|
||||
debugExpr.Replace("qword ptr", "(int64*)");
|
||||
debugExpr.Replace("dword ptr", "(int32*)");
|
||||
debugExpr.Replace("word ptr", "(int16*)");
|
||||
|
|
|
@ -38,9 +38,10 @@ namespace IDE.ui
|
|||
}
|
||||
|
||||
var vals = scope List<StringView>(val.Split('\n'));
|
||||
let addr = (int)int64.Parse(scope String(vals[0]), System.Globalization.NumberStyles.HexNumber);
|
||||
let byteCount = int32.Parse(scope String(vals[1])).Get();
|
||||
mMemoryPanel.mBinaryDataWidget.SelectRange(addr, byteCount);
|
||||
let addr = (int)int64.Parse(scope String(vals[0]), System.Globalization.NumberStyles.HexNumber).GetValueOrDefault();
|
||||
let byteCount = int32.Parse(scope String(vals[1])).GetValueOrDefault();
|
||||
if (addr != 0)
|
||||
mMemoryPanel.mBinaryDataWidget.SelectRange(addr, byteCount);
|
||||
Close();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue