src/developer/debug/zxdb/console/commands/verb_disassemble.cc
void CompleteDisassemble(const Err& err, MemoryDump dump, fxl::WeakPtr<Process> weak_process,
                         const FormatAsmOpts& options) {
  Console* console = Console::get();
  if (err.has_error()) {
    console->Output(err);
    return;
  }

  if (!weak_process)
    return;  // Give up if the process went away.

  OutputBuffer out;
  Err format_err =
      FormatAsmContext(weak_process->session()->arch_info(), dump, options, weak_process.get(),
                       SourceFileProviderImpl(weak_process->GetTarget()->settings()), &out);
  if (format_err.has_error()) {
    console->Output(err);
    return;
  }

  console->Output(out);
}
// Completion callback after reading process memory.
Completion callback after reading process memory.
Completion callback after reading process memory .
void CompleteDisassemble(const Err& err, MemoryDump dump, fxl::WeakPtr<Process> weak_process,
                         const FormatAsmOpts& options) {
  Console* console = Console::get();
  if (err.has_error()) {
    console->Output(err);
    return;
  }
  if (!weak_process)
    return;  
  OutputBuffer out;
  Err format_err =
      FormatAsmContext(weak_process->session()->arch_info(), dump, options, weak_process.get(),
                       SourceFileProviderImpl(weak_process->GetTarget()->settings()), &out);
  if (format_err.has_error()) {
    console->Output(err);
    return;
  }
  console->Output(out);
}
void CompleteDisassemble ( const Err & err , MemoryDump dump , fxl :: WeakPtr < Process > weak_process , const FormatAsmOpts & options ) { Console * console = Console :: get ( ) ; if ( err . has_error ( ) ) { console -> Output ( err ) ; return ; } if ( ! weak_process ) return ; OutputBuffer out ; Err format_err = FormatAsmContext ( weak_process -> session ( ) -> arch_info ( ) , dump , options , weak_process . get ( ) , SourceFileProviderImpl ( weak_process -> GetTarget ( ) -> settings ( ) ) , & out ) ; if ( format_err . has_error ( ) ) { console -> Output ( err ) ; return ; } console -> Output ( out ) ; }
Completion callback after reading process memory.
Completion callback after reading process memory .
// Give up if the process went away.