diff options
author | Pierre-Marie de Rodat <derodat@adacore.com> | 2015-12-17 14:09:26 +0000 |
---|---|---|
committer | Pierre-Marie de Rodat <pmderodat@gcc.gnu.org> | 2015-12-17 14:09:26 +0000 |
commit | 6592d14b43d21382d7876484d3ba90ba650fbc6e (patch) | |
tree | d3c4a684ec8da4b8efa794c5eccd75c8af29e425 /gcc/flag-types.h | |
parent | 70decafb4d3a0286fe03abee93d700a174488506 (diff) | |
download | gcc-6592d14b43d21382d7876484d3ba90ba650fbc6e.zip gcc-6592d14b43d21382d7876484d3ba90ba650fbc6e.tar.gz gcc-6592d14b43d21382d7876484d3ba90ba650fbc6e.tar.bz2 |
Add a flag to control the balance between GNAT encodings and std. DWARF
In order to accomodate the debugger's support evolution for "new" DWARF
constructs, we need to have an flag that controls the amount of GNAT
encodings/standard DWARF information that is emitted in the debug info.
Propagate this new parameter into the Ada front-end.
gcc/ChangeLog:
* common.opt (gnat_encodings): New variable
(dwarf_gnat_encodings): New enum type.
(fgnat_encodings): New option.
* flag-types.h (enum dwarf_gnat_encodings): New.
gcc/ada/ChangeLog:
* gcc-interface/misc.c (gnat_encodings): Undefine macro and
declare a global variable.
(gnat_post_options): Initialize this global from options.
From-SVN: r231761
Diffstat (limited to 'gcc/flag-types.h')
-rw-r--r-- | gcc/flag-types.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/flag-types.h b/gcc/flag-types.h index b130fc5..c81a8a2 100644 --- a/gcc/flag-types.h +++ b/gcc/flag-types.h @@ -91,6 +91,21 @@ enum debug_struct_file DINFO_STRUCT_FILE_ANY /* Debug structs defined in all files. */ }; +/* Balance between GNAT encodings and standard DWARF to emit. */ + +enum dwarf_gnat_encodings +{ + DWARF_GNAT_ENCODINGS_ALL = 0, /* Emit all GNAT encodings, then emit as + much standard DWARF as possible so it + does not conflict with GNAT + encodings. */ + DWARF_GNAT_ENCODINGS_GDB = 1, /* Emit as much standard DWARF as possible + as long as GDB handles them. Emit GNAT + encodings for the rest. */ + DWARF_GNAT_ENCODINGS_MINIMAL = 2 /* Emit all the standard DWARF we can. + Emit GNAT encodings for the rest. */ +}; + /* Enumerate Objective-c instance variable visibility settings. */ enum ivar_visibility |