@@ -192,21 +192,6 @@ DisassembleRequestHandler::Run(const DisassembleArguments &args) const {
192
192
return llvm::make_error<DAPError>(
193
193
" Memory reference not found in the current binary." );
194
194
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
-
210
195
// Offset (in instructions) to be applied after the byte offset (if any)
211
196
// before disassembling. Can be negative.
212
197
int64_t instruction_offset = args.instructionOffset .value_or (0 );
@@ -219,7 +204,7 @@ DisassembleRequestHandler::Run(const DisassembleArguments &args) const {
219
204
" Unexpected error while disassembling instructions." );
220
205
221
206
lldb::SBInstructionList insts = dap.target .ReadInstructions (
222
- disassemble_start_addr, args.instructionCount , flavor_string. c_str () );
207
+ disassemble_start_addr, args.instructionCount );
223
208
if (!insts.IsValid ())
224
209
return llvm::make_error<DAPError>(
225
210
" Unexpected error while disassembling instructions." );
0 commit comments