From 4fcbdc423d04c76e79c23bbd9e73307711da0fa5 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Thu, 26 Sep 2019 08:26:49 -0700 Subject: [PATCH] Minor IDE fixes --- IDE/src/ui/DisassemblyPanel.bf | 4 +++- IDE/src/ui/GoToAddressDialog.bf | 7 ++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/IDE/src/ui/DisassemblyPanel.bf b/IDE/src/ui/DisassemblyPanel.bf index 3c127c75..be1d33da 100644 --- a/IDE/src/ui/DisassemblyPanel.bf +++ b/IDE/src/ui/DisassemblyPanel.bf @@ -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*)"); diff --git a/IDE/src/ui/GoToAddressDialog.bf b/IDE/src/ui/GoToAddressDialog.bf index 5ff58f80..27035e34 100644 --- a/IDE/src/ui/GoToAddressDialog.bf +++ b/IDE/src/ui/GoToAddressDialog.bf @@ -38,9 +38,10 @@ namespace IDE.ui } var vals = scope List(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(); }