[PATCH] Command-line options to set debugger "target"

David Blaikie dblaikie at gmail.com
Wed Mar 25 11:00:14 PDT 2015


================
Comment at: include/clang/Driver/Options.td:1051
@@ -1047,1 +1050,3 @@
+def gsce : Flag<["-"], "gsce">, Group<g_flags_Group>,
+  HelpText<"Tune debug info for an SCE target (e.g. PS4)">, Flags<[CC1Option]>;
 def gdwarf_2 : Flag<["-"], "gdwarf-2">, Group<g_Group>,
----------------
Is SCE usually pronounced with each letter separately, or as a word ("ski" or similar)? (wondering whether "an SCE target" or "a SCE target" is correct)

================
Comment at: include/clang/Frontend/CodeGenOptions.def:159
@@ +158,3 @@
+/// Which debugger we are targeting.
+ENUM_CODEGENOPT(Debugger, llvm::DebuggerKind, 2, llvm::DebuggerKind::GDB)
+
----------------
I take it that GDB is the default here? But ignored in the frontend or driver in favor of platform-specific defaults?

================
Comment at: lib/Frontend/CompilerInvocation.cpp:408
@@ -407,1 +407,3 @@
 
+  if (Args.hasArg(OPT_ggdb))
+    Opts.setDebugger(llvm::DebuggerKind::GDB);
----------------
Should this handling be up in the driver? Then it should be easy to write tests for the defaults.

http://reviews.llvm.org/D8599

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list