コード例 #1
0
ファイル: MICommandFactory.cs プロジェクト: adalon/MIEngine
        public static MICommandFactory GetInstance(MIMode mode, Debugger debugger)
        {
            MICommandFactory commandFactory;

            switch (mode)
            {
            case MIMode.Gdb:
                commandFactory = new GdbMICommandyFactory();
                break;

            case MIMode.Lldb:
                commandFactory = new LlldbMICommandFactory();
                break;

            case MIMode.Clrdbg:
                commandFactory = new ClrdbgMICommandFactory();
                break;

            default:
                throw new ArgumentException("mode");
            }

            commandFactory._debugger = debugger;
            commandFactory.Mode      = mode;
            commandFactory.Radix     = 10;
            return(commandFactory);
        }
コード例 #2
0
ファイル: MICommandFactory.cs プロジェクト: orestst/MIEngine
        public static MICommandFactory GetInstance(MIMode mode, Debugger debugger)
        {
            MICommandFactory commandFactory;

            switch (mode)
            {
                case MIMode.Gdb:
                    commandFactory = new GdbMICommandFactory();
                    break;
                case MIMode.Lldb:
                    commandFactory = new LlldbMICommandFactory();
                    break;
                case MIMode.Clrdbg:
                    commandFactory = new ClrdbgMICommandFactory();
                    break;
                default:
                    throw new ArgumentException("mode");
            }
            commandFactory._debugger = debugger;
            commandFactory.Mode = mode;
            commandFactory.Radix = 10;
            return commandFactory;
        }