fn emit_script_prelude(&self, script: &mut String) {
        match self.kind {
            DebuggerKind::Cdb => {
                writeln!(script, ".lines -e").unwrap();
            }
            DebuggerKind::Gdb => {}
            DebuggerKind::Lldb => {
                todo!()
            }
            DebuggerKind::Mock => {
                // no prelude
            }
        };

        for command in &self.prelude {
            writeln!(script, "{}", command).unwrap();
        }
    }
/// Write a debugger (and version) specific prelude to the debugger script
/// Will be invoked before anything is written to the script.
Write a debugger (and version) specific prelude to the debugger script
Will be invoked before anything is written to the script.
Write a debugger ( and version ) specific prelude to the debugger script Will be invoked before anything is written to the script .
fn emit_script_prelude(&self, script: &mut String) {
        match self.kind {
            DebuggerKind::Cdb => {
                writeln!(script, ".lines -e").unwrap();
            }
            DebuggerKind::Gdb => {}
            DebuggerKind::Lldb => {
                todo!()
            }
            DebuggerKind::Mock => {
                // no prelude
            }
        };
        for command in &self.prelude {
            writeln!(script, "{}", command).unwrap();
        }
    }
fn emit_script_prelude ( & self , script : & mut String ) { match self . kind { DebuggerKind :: Cdb => { writeln ! ( script " " ) . unwrap ( ) ; } DebuggerKind :: Gdb => { } DebuggerKind :: Lldb => { todo ! ( ) } DebuggerKind :: Mock => { // no prelude } } ; for command in & self . prelude { writeln ! ( script " " command ) . unwrap ( ) ; } }
Write a debugger (and version) specific prelude to the debugger script
Will be invoked before anything is written to the script.
Write a debugger ( and version ) specific prelude to the debugger script Will be invoked before anything is written to the script .
&self
script
&mut String
&self
script
&mut String