Skip to content

Commit aa53c71

Browse files
authored
Include setupCommand to set intel flavor (#8368)
This PR adds an additional setupCommand for launch.json to set the default disassembly flavor to intel since it is preferred over att.
1 parent 91ce65c commit aa53c71

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Extension/src/Debugger/configurationProvider.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,11 @@ class WindowsConfigurationProvider extends DefaultConfigurationProvider {
561561
"description": "${localize("enable.pretty.printing", "Enable pretty-printing for {0}", "gdb").replace(/\"/g, "\\\"")}",
562562
"text": "-enable-pretty-printing",
563563
"ignoreFailures": true
564+
},
565+
{
566+
"description": "${localize("enable.intel.disassembly.flavor", "Set Disassembly Flavor to {0}", "Intel").replace(/\"/g, "\\\"")},
567+
"text": "-gdb-set disassembly-flavor intel",
568+
"ignoreFailures": true
564569
}
565570
]`;
566571

@@ -595,6 +600,11 @@ class LinuxConfigurationProvider extends DefaultConfigurationProvider {
595600
"description": "${localize("enable.pretty.printing", "Enable pretty-printing for {0}", "gdb").replace(/\"/g, "\\\"")}",
596601
"text": "-enable-pretty-printing",
597602
"ignoreFailures": true
603+
},
604+
{
605+
"description": "${localize("enable.intel.disassembly.flavor", "Set Disassembly Flavor to {0}", "Intel").replace(/\"/g, "\\\"")},
606+
"text": "-gdb-set disassembly-flavor intel",
607+
"ignoreFailures": true
598608
}
599609
]`;
600610
private executable: string = "a.out";

0 commit comments

Comments
 (0)