File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,7 @@ void CommandObjectDisassemble::CommandOptions::OptionParsingStarting(
190
190
// architecture. For now GetDisassemblyFlavor is really only valid for x86
191
191
// (and for the llvm assembler plugin, but I'm papering over that since that
192
192
// is the only disassembler plugin we have...
193
+ // this logic is also duplicated in `Handler/DisassembleRequestHandler`
193
194
if (target->GetArchitecture ().GetTriple ().getArch () == llvm::Triple::x86 ||
194
195
target->GetArchitecture ().GetTriple ().getArch () ==
195
196
llvm::Triple::x86_64) {
Original file line number Diff line number Diff line change @@ -119,7 +119,10 @@ void DisassembleRequestHandler::operator()(
119
119
120
120
std::string flavor_string{};
121
121
const auto target_triple = llvm::StringRef (dap.target .GetTriple ());
122
- if (target_triple.starts_with (" x86_64" ) || target_triple.starts_with (" x86" )) {
122
+ // this handles both 32 and 64bit x86 architecture.
123
+ // this logic is also duplicated in
124
+ // `CommandObjectDisassemble::CommandOptions::OptionParsingStarting`
125
+ if (target_triple.starts_with (" x86" )) {
123
126
const lldb::SBStructuredData flavor =
124
127
dap.debugger .GetSetting (" target.x86-disassembly-flavor" );
125
128
You can’t perform that action at this time.
0 commit comments