@@ -192,21 +192,6 @@ DisassembleRequestHandler::Run(const DisassembleArguments &args) const {
192192 return llvm::make_error<DAPError>(
193193 " Memory reference not found in the current binary." );
194194
195- std::string flavor_string;
196- const auto target_triple = llvm::StringRef (dap.target .GetTriple ());
197- // This handles both 32 and 64bit x86 architecture. The logic is duplicated in
198- // `CommandObjectDisassemble::CommandOptions::OptionParsingStarting`
199- if (target_triple.starts_with (" x86" )) {
200- const lldb::SBStructuredData flavor =
201- dap.debugger .GetSetting (" target.x86-disassembly-flavor" );
202-
203- const size_t str_length = flavor.GetStringValue (nullptr , 0 );
204- if (str_length != 0 ) {
205- flavor_string.resize (str_length + 1 );
206- flavor.GetStringValue (flavor_string.data (), flavor_string.length ());
207- }
208- }
209-
210195 // Offset (in instructions) to be applied after the byte offset (if any)
211196 // before disassembling. Can be negative.
212197 int64_t instruction_offset = args.instructionOffset .value_or (0 );
@@ -219,7 +204,7 @@ DisassembleRequestHandler::Run(const DisassembleArguments &args) const {
219204 " Unexpected error while disassembling instructions." );
220205
221206 lldb::SBInstructionList insts = dap.target .ReadInstructions (
222- disassemble_start_addr, args.instructionCount , flavor_string. c_str () );
207+ disassemble_start_addr, args.instructionCount );
223208 if (!insts.IsValid ())
224209 return llvm::make_error<DAPError>(
225210 " Unexpected error while disassembling instructions." );
0 commit comments