Drivers.Debugger.App.MainForm.UpdateNearestLabel()

Here are the examples of the csharp api class Drivers.Debugger.App.MainForm.UpdateNearestLabel() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

1. Example

Project: FlingOS
Source File: MainForm.cs
private void LoadASMPreview()
        {
            if (ViewBPASMCheckBox.Checked)
            {
                if (LabelsTreeView.SelectedNode != null)
                {
                    TreeNode TheNode = LabelsTreeView.SelectedNode;
                    if (TheNode.Parent != null)
                    {
                        TheNode = TheNode.Parent;
                    }

                    CurrentMethodASM = TheDebugger.GetMethodASM(TheNode.Text);
                }
                else if (CurrentMethodLabel != null)
                {
                    CurrentMethodASM = TheDebugger.GetMethodASM(CurrentMethodLabel);
                }
            }
            else if (CurrentMethodLabel != null)
            {
                CurrentMethodASM = TheDebugger.GetMethodASM(CurrentMethodLabel);
            }

            UpdateNearestLabel();
        }

2. Example

Project: FlingOS
Source File: MainForm.cs
private void RefreshNearestLabel()
        {
            if (Registers.ContainsKey("EIP"))
            {
                EIP = Registers["EIP"];
                NearestLabel = TheDebugger.GetNearestLabel(EIP);
                CurrentMethodLabel = TheDebugger.GetMethodLabel(NearestLabel.Item2);
                CurrentMethodASM = TheDebugger.GetMethodASM(CurrentMethodLabel);
            }
            else
            {
                EIP = 0xFFFFFFFF;
                NearestLabel = null;
                CurrentMethodLabel = "";
                CurrentMethodASM = "";
            }

            UpdateNearestLabel();

            RefreshStackData();
        }