Esempio n. 1
0
        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);
        }
Esempio n. 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;
        }