Example #1
0
        public ContextForm(xdc.XDebug.Client client, string text)
        {
            InitializeComponent();
            this.Text = this.TabText = text;

            properyControl1.Client = client;
        }
Example #2
0
        public override bool OpenFile(xdc.Forms.SourceFileForm targetForm, string filename)
        {
            string sourceCode = _client.Source(filename);

            targetForm.LoadSourceAsFile(sourceCode);

            return true;
        }
Example #3
0
        public override bool OpenFile(xdc.Forms.SourceFileForm targetForm, string filename)
        {
            try
            {
                targetForm.LoadFile(filename);
            } catch (Exception e)
            {
                MessageBox.Show("Unable to open file: " + filename + "(" + e.Message + ")" );
                return false;
            }

            return true;
        }
Example #4
0
        public PropertyForm(xdc.XDebug.Client client)
        {
            InitializeComponent();

            properyControl1.Client = client;
        }
Example #5
0
 public abstract bool OpenFile(xdc.Forms.SourceFileForm targetForm, string filename);
Example #6
0
        void _callstackFrm_StackSelected(object sender, xdc.Forms.StackEventArgs e)
        {
            Location loc = new Location();
            loc.filename = e.StackEntry.fileName;
            loc.line = e.StackEntry.lineNumber - 1;

            _client.StackDepth = e.StackEntry.level;

            this.PrepareFileForAccess(loc.filename);
            this.SetActiveFileAndLine(loc);
            // re get context
            List<Property> ctx = _client.GetContext("0");
            _localContextFrm.LoadPropertyList(ctx);
            ctx = _client.GetContext("1");
            _globalContextFrm.LoadPropertyList(ctx);
        }