This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

refine default dwarf settings on VxWorks


Hello,

The Vxworks ports have specific default settings controlling the
dwarf output to accomodate the possible use of old non-gdb debuggers
provided with the VxWorks environment.

Those settings are hardcoded today, even though different versions
of VxWorks come with different constraints.

This patch just introduces per-vxworks-version variations on the
defaults we enforce.

We have been using a very minor variant of this patch in house for a couple
of years now. I verified a powerpc-wrs-vxworks and a powerpc-wrs-vxworksae
build works on mainline with the change, and that it produces the expected
effect.

Committing to mainline.

2017-11-22  Olivier Hainque  <hainque@adacore.com>

        * vxworks.c (vxworks_override_options): Pick default
	dwarf version from macro value, VXWORKS_DWARF_VERSION_DEFAULT.
        * vxworks.h: Define VXWORKS_DWARF_VERSION_DEFAULT and
        DWARF_GNAT_ENCODINGS_DEFAULT.
        * vxworksae.h: Likewise.

Attachment: vxworks-dwarf.diff
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]