public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* DWARF unwind info is supported on VxWorks
@ 2017-06-02 14:43 Olivier Hainque
  2017-06-02 14:54 ` Olivier Hainque
  0 siblings, 1 reply; 2+ messages in thread
From: Olivier Hainque @ 2017-06-02 14:43 UTC (permalink / raw)
  To: GCC Patches; +Cc: Nathan Sidwell

[-- Attachment #1: Type: text/plain, Size: 233 bytes --]

VxWorks has had support for dwarf unwinding for many years now. This patch
adjusts our configuration accordingly.

2017-06-02  Olivier Hainque  <hainque@adacore.com>

	* config/vx-common.h (DWARF_UNWIND_INFO): Switch #define to 1. 


[-- Attachment #2: vx-unwind.diff --]
[-- Type: application/octet-stream, Size: 480 bytes --]

Index: config/vx-common.h
===================================================================
--- config/vx-common.h	(revision 248673)
+++ config/vx-common.h	(working copy)
@@ -61,9 +61,9 @@
 #undef WINT_TYPE_SIZE
 #define WINT_TYPE_SIZE 16
 
-/* Dwarf2 unwind info is not supported.  */
+/* Dwarf2 unwind info is supported.  */
 #undef DWARF2_UNWIND_INFO
-#define DWARF2_UNWIND_INFO 0
+#define DWARF2_UNWIND_INFO 1
 
 /* VxWorks uses DWARF2.  */
 #define DWARF2_DEBUGGING_INFO 1

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: DWARF unwind info is supported on VxWorks
  2017-06-02 14:43 DWARF unwind info is supported on VxWorks Olivier Hainque
@ 2017-06-02 14:54 ` Olivier Hainque
  0 siblings, 0 replies; 2+ messages in thread
From: Olivier Hainque @ 2017-06-02 14:54 UTC (permalink / raw)
  To: GCC Patches; +Cc: Olivier Hainque, Nathan Sidwell


> On Jun 2, 2017, at 16:43 , Olivier Hainque <hainque@adacore.com> wrote:
> 
> VxWorks has had support for dwarf unwinding for many years now. This patch
> adjusts our configuration accordingly.

A few extra details:

I noticed this while trying to build an Ada runtime for VxWorks from the
current mainline.

A few sources referenced by the Makefile are missing and I'm about to add them.
Some of them rely on having a definition for EH_FRAME_DEBUG_SECTION, which we
don't have with DWARF_UNWIND_INFO defined to 0, causing the build to fail.

We have been using the patch in-house for years, and I verified that it allows
the runtime build to go past the failure point with mainline.

Olivier


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-02 14:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-02 14:43 DWARF unwind info is supported on VxWorks Olivier Hainque
2017-06-02 14:54 ` Olivier Hainque

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).