public BaseCommand(VSDebugContext context, int cmdId, string strId) { Context = context; CommandId = cmdId; CommandStringId = strId; CommandHelpString = string.Empty; CommandDescription = string.Empty; CommandStatusFlag = ECommandStatus.CommandStatusEnabled; }
public BaseCommand(VSDebugContext context, int cmdID, string strID) { Context = context; CommandID = cmdID; CommandStringID = strID; CommandHelpString = string.Empty; CommandDescription = string.Empty; CommandStatusFlag = eCommandStatus.CommandStatus_Enabled; }
public MemAlloc(VSDebugContext context) : base(context, (int)PkgCmdIDList.CmdIDAbout, Resources.CmdMemAllocString) { CommandDescription = Resources.CmdMemAllocDesc; CommandHelpString = "Syntax: <" + CommandString + ">" + " <size>\n" + "\tEX: " + CommandString + " 200\n" + "\t<size> - size in bytes\n"; CommandStatusFlag = eCommandStatus.CommandStatus_Disabled; }
public MemFree(VSDebugContext context) : base(context, (int)PkgCmdIDList.CmdIDAbout, Resources.CmdMemFreeString) { CommandDescription = Resources.CmdMemFreeDesc; CommandHelpString = "Syntax: <" + CommandString + ">" + " <address>\n" + "\tEX: " + CommandString + " 0x00500000\n" + "\t<address> - allocation pointer address\n"; CommandStatusFlag = eCommandStatus.CommandStatus_Disabled; }
public SettingsWindow(VSDebugContext package) { InitializeComponent(); Context = package; m_generalSettings = new CGeneralSettings(); m_generalSettings.Import(Context.Settings.GeneralSettings); groupGeneralSettings.DataContext = m_generalSettings; groupExtensionSettings.DataContext = m_generalSettings; }
public AliasCommand(VSDebugContext context) : base(context, (int)PkgCmdIDList.CmdIDAbout, Resources.CmdAliasString) { CommandDescription = Resources.CmdAliasDesc; CommandHelpString = "Syntax: <" + CommandString + ">" + " <add/del/list> <name> <string>\n" + "\tEX: " + CommandString + " add imgcopy memcpy img1.data img0.data img0.height * img0.stride \n" + "\tEX: " + CommandString + " del imgcopy\n" + "\tEX: " + CommandString + " list\n"; CommandStatusFlag = eCommandStatus.CommandStatus_Enabled; }
public LoadMem(VSDebugContext context) : base(context, (int)PkgCmdIDList.CmdIDAbout, Resources.CmdLoadMemString) { CommandDescription = Resources.CmdLoadMemDesc; CommandHelpString = "Syntax: <" + CommandString + ">" + " <srcfile> <address> <size>\n" + "\tEX: " + CommandString + " c:\\memdata.bin 0x00656789 200\n" + "\t<srcfile> - source file\n" + "\t<address> - write address, must be a hex address / pointer, can be an expression\n" + "\t<size> - size in bytes, can be an expression\n"; CommandStatusFlag = ECommandStatus.CommandStatusDisabled; }
public MemDiff(VSDebugContext context) : base(context, (int)PkgCmdIDList.CmdIDAbout, Resources.CmdMemDiffString) { CommandDescription = Resources.CmdMemDiffDesc; CommandHelpString = "Syntax: <" + CommandString + ">" + " <addr1> <addr2> <size>\n" + "\tEX: " + CommandString + " 0x00656589 0x00656789 200\n" + "\t<addr1> - data source 1\n" + "\t<addr2> - data source 2\n" + "\t<size> - size in bytes\n"; CommandStatusFlag = ECommandStatus.CommandStatusDisabled; }
public MemCpy(VSDebugContext context) : base(context, (int)PkgCmdIDList.CmdIDAbout, Resources.CmdMemCpyString) { CommandDescription = Resources.CmdMemCpyDesc; CommandHelpString = "Syntax: <" + CommandString + ">" + " <dst> <src> <size>\n" + "\tEX: " + CommandString + " 0x00656589 0x00656789 200\n" + "\t<dst> - destination address\n" + "\t<src> - source address\n" + "\t<size> - size in bytes\n"; CommandStatusFlag = eCommandStatus.CommandStatus_Disabled; }
public MemSet(VSDebugContext context) : base(context, (int)PkgCmdIDList.CmdIDAbout, Resources.CmdMemSetString) { CommandDescription = Resources.CmdMemSetDesc; CommandHelpString = "Syntax: <" + CommandString + ">" + " <dst> <val> <size>\n" + "\tEX: " + CommandString + " 0x00656589 0xFF 200\n" + "\t<dst> - destination address\n" + "\t<val> - pattern value 0x00 - 0xFF\n" + "\t<size> - size in bytes\n"; CommandStatusFlag = ECommandStatus.CommandStatusDisabled; }
public ShellCommand(VSDebugContext context, Guid guid, int cmdID, string strID = "") : base(context, cmdID, strID) { try { // Create the command for the menu item. CommandID menuCommandID = new CommandID(guid, cmdID); MenuCommand menuItem = new MenuCommand(MenuCallback, menuCommandID); context.MenuCommandService.AddCommand(menuItem); } catch (Exception e) { System.Diagnostics.Debugger.Log(0, "Diag", e.ToString()); } }
///////////////////////////////////////////////////////////////////////////// // Overridden Context Implementation #region Context Members /// <summary> /// Initialization of the context; this method is called right after the context is sited, so this is the place /// where you can put all the initialization code that rely on services provided by VisualStudio. /// </summary> protected override void Initialize() { Trace.WriteLine(string.Format(CultureInfo.CurrentCulture, "Initialized: {0}", this.ToString())); // Initialize base class base.Initialize(); // Create extension context, this is used as global var for various stuff Context = new VSDebugContext(this, VSDAssembly) { IDE = (DTE2)GetService(typeof(DTE)), MenuCommandService = GetService(typeof(IMenuCommandService)) as OleMenuCommandService }; Context.Initialize(); }
public ShellCommand(VSDebugContext context, Guid guid, int cmdId, string strId = "") : base(context, cmdId, strId) { try { // Create the command for the menu item. var menuCommandId = new CommandID(guid, cmdId); var menuItem = new MenuCommand(MenuCallback, menuCommandId); context.MenuCommandService.AddCommand(menuItem); } catch (Exception e) { Debugger.Log(0, "Diag", e.ToString()); } }
public DumpMem(VSDebugContext context) : base(context, (int)PkgCmdIDList.CmdIDAbout, Resources.DumpMemString) { CommandDescription = Resources.CmdDumpMemDesc; CommandHelpString = "Syntax: <" + CommandString + ">" + " <optional flags> <filename> <address> <size>\n" + "\tEX: " + CommandString + " c:\\memdump.bin 0x00656789 200\n" + "\tEX: " + CommandString + " -f c:\\memdump.bin 0x00656789 200\n" + "\tFlags:\n" + "\t\t -" + TknForce + " - Force file overwrite.\n" + "\t\t -" + TknAppend + " - Append to the file.\n" + "\t<filename> - output filename\n" + "\t<address> - read address, must be a hex address / pointer, can be an expression\n" + "\t<size> - size in bytes, can be an expression\n"; CommandStatusFlag = ECommandStatus.CommandStatusDisabled; }
public AboutWindow(VSDebugContext context) { Context = context; InitializeComponent(); var asmProduct = Context.VSDAssembly; _labelProduct.Content = asmProduct.GetName().Name; _labelVersion.Content = asmProduct.GetName().Version; _labelLicense.Content = VSDebugCoreLib.Resources.ProductCopyright; _labelWWW.Content = VSDebugCoreLib.Resources.Website + " - " + VSDebugCoreLib.Resources.ContactInfo; _txtHistory.Text = VSDebugCoreLib.Resources.changelog; _txtHistory.IsReadOnly = true; _txtLicense.Text = VSDebugCoreLib.Resources.license; _txtLicense.IsReadOnly = true; _labelProduct.UpdateLayout(); _labelVersion.UpdateLayout(); _labelLicense.UpdateLayout(); _labelWWW.UpdateLayout(); }
public AboutCommand(VSDebugContext context) : base(context, GuidList.GuidVSDebugProAbout, (int)PkgCmdIDList.CmdIDAbout, Resources.AboutCommandString) { CommandDescription = Resources.CmdAboutDesc; }
public ConsoleEngine(VSDebugContext context, ICollection <BaseCommand> commands) { Context = context; _commands = commands; }
public SettingsCommand(VSDebugContext context) : base(context, GuidList.GuidVSDebugProSettings, (int)PkgCmdIDList.CmdIDSettings, Resources.CmdSettingsString) { CommandDescription = Resources.CmdSettingsDesc; }
public HelpCommand(VSDebugContext context) : base(context, GuidList.GuidVSDebugProHelp, (int)PkgCmdIDList.CmdIDHelp, Resources.HelpCmdString) { CommandDescription = Resources.CmdHelpDesc; }
public OpenConsoleCommand(VSDebugContext context) : base(context, GuidList.GuidVSDebugProConsole, (int)PkgCmdIDList.CmdIDConsole) { }
public ExploreWDCommand(VSDebugContext context) : base(context, GuidList.GuidVSDebugProExploreWD, (int)PkgCmdIDList.cmdIDExploreWD) { CommandDescription = Resources.CmdAboutDesc; }