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

Fixed IDE "Find on Stack" functionality

This commit is contained in:
Brian Fiete 2024-11-20 11:32:56 -05:00
parent 237b507745
commit ac67046afc
5 changed files with 21 additions and 8 deletions

View file

@ -879,6 +879,10 @@ namespace IDE.ui
{
String.NewOrSet!(watch.mEditInitialize, scope String(memberVals[1]));
}
else if (memberVals0 == ":pointer")
{
String.NewOrSet!(watch.mPointer, scope String(memberVals[1]));
}
else if (memberVals0 == ":break")
{
watch.mMemoryBreakpointAddr = (int)Int64.Parse(memberVals[1], .HexNumber);

View file

@ -47,7 +47,8 @@ namespace IDE.ui
public String mAddrValueExpr ~ delete _;
public String mPointeeExpr ~ delete _;
public bool mCanEdit;
public String mEditInitialize ~ delete _;
public String mPointer ~ delete _;
public String mEditInitialize ~ delete _;
public bool mHadValue;
public bool mHasValue;
public bool mIsNewExpression;
@ -4487,7 +4488,7 @@ namespace IDE.ui
if (watchEntry.mResultType.HasFlag(.Pointer))
{
if (int.Parse(watchEntry.mEditInitialize) case .Ok(let addr))
if (int.Parse(watchEntry.mPointer ?? watchEntry.mEditInitialize, .AllowHexSpecifier) case .Ok(let addr))
{
int threadId;
gApp.mDebugger.GetStackAllocInfo(addr, out threadId, null);