Ejemplo n.º 1
0
 private static void InitializeGdbDialect()
 {
     Dialect = new CommandDialect(CommandDialect.Gdb, new Dictionary<string, ICommand>
     {
         { "help", new HelpCommand() },
         { "quit", new ExitCommand() },
         { "log", new LogCommand() },
         { "cd", new CurrentDirectoryCommand() },
         { "init", new InitializeCommand() },
         { "run", new StartCommand() },
         { "continue", new ContinueCommand() },
         { "cont", new ContinueCommand() },
         { "c", new ContinueCommand() },
         { "step", new StepCommand() },
         { "s", new StepCommand() },
         { "next", new NextCommand() },
         { "n", new NextCommand() },
         { "stepi", new StepInstructionCommand() },
         { "si", new StepInstructionCommand() },
         { "nexti", new NextInstructionCommand() },
         { "ni", new NextInstructionCommand() },
     { "f", new FinishCommand () },
     { "finish", new FinishCommand () },
         { "stop", new StopCommand() },
         { "b", new BreakpointCommand() },
         { "break", new BreakpointCommand() },
         { "catch", new CatchpointCommand() },
         { "db", new DatabaseCommand() },
         { "fc", new FirstChanceCommand() },
         { "backtrace", new BacktraceCommand() },
         { "bt", new BacktraceCommand() },
         { "frame", new FrameCommand() },
         { "disassemble", new DisassembleCommand() },
         { "disas", new DisassembleCommand() },
         { "source", new SourceCommand() },
         { "decompile", new DecompileCommand() },
         { "locals", new LocalsCommand() },
         { "print", new EvaluationCommand() },
         { "p", new EvaluationCommand() },
         { "watch", new WatchCommand() },
         { "thread", new ThreadCommand() },
     });
 }
Ejemplo n.º 2
0
 private static void InitializeSdbDialect()
 {
     Dialect = new CommandDialect(CommandDialect.Sdb, new Dictionary<string, ICommand>
     {
         { "Help", new HelpCommand() },
         { "Exit", new ExitCommand() },
         { "Log", new LogCommand() },
         { "CD", new CurrentDirectoryCommand() },
         { "Init", new InitializeCommand() },
         { "Start", new StartCommand() },
         { "Continue", new ContinueCommand() },
         { "Step", new StepCommand() },
         { "Stop", new StopCommand() },
         { "BP", new BreakpointCommand() },
         { "CP", new CatchpointCommand() },
         { "DB", new DatabaseCommand() },
         { "FC", new FirstChanceCommand() },
         { "BT", new BacktraceCommand() },
         { "Frame", new FrameCommand() },
         { "Disasm", new DisassembleCommand() },
         { "Source", new SourceCommand() },
         { "Decompile", new DecompileCommand() },
         { "Locals", new LocalsCommand() },
         { "Eval", new EvaluationCommand() },
         { "Watch", new WatchCommand() },
         { "Thread", new ThreadCommand() },
     });
 }