Example #1
0
        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);
        }
Example #2
0
        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;
        }