public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch]  Downgrade DWARF_VERSION_DEFAULT to 3 for VxWorks >= 7
@ 2022-10-07  6:57 Olivier Hainque
  0 siblings, 0 replies; only message in thread
From: Olivier Hainque @ 2022-10-07  6:57 UTC (permalink / raw)
  To: gcc-patches; +Cc: Olivier Hainque

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

Hello,

Using 4 as the DWARF_VERSION_DEFAULT value for VxWorks observably
still hangs recent system debuggers on tbreak for some contructs,
and downgrading to 3 improves the situation.

Committing to mainline shortly.

Cheers,

Olivier

2022-03-06  Olivier Hainque  <hainque@adacore.com>

gcc/
        * config/vxworks.h (DWARF_VERSION_DEFAULT): Adjust from
        4 to 3 for VxWorks >= 7.


[-- Attachment #2: 0013-Downgrade-DWARF_VERSION_DEFAULT-to-3-for-VxWorks-7.patch --]
[-- Type: application/octet-stream, Size: 1165 bytes --]

From 47ce0f1883c6bfe003b83d7c1bc2d57b0dedcfc2 Mon Sep 17 00:00:00 2001
From: Olivier Hainque <hainque@adacore.com>
Date: Thu, 3 Mar 2022 16:58:51 +0000
Subject: [PATCH 13/18] Downgrade DWARF_VERSION_DEFAULT to 3 for VxWorks >= 7

Using 4 as the DWARF_VERSION_DEFAULT value for VxWorks observably
still hangs recent system debuggers on tbreak for some contructs,
and downgrading to 3 improves the situation.

2022-03-06  Olivier Hainque  <hainque@adacore.com>

gcc/
	* config/vxworks.h (DWARF_VERSION_DEFAULT): Adjust from
	4 to 3 for VxWorks >= 7.
---
 gcc/config/vxworks.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/vxworks.h b/gcc/config/vxworks.h
index 1ad927e8aba..13c616829c4 100644
--- a/gcc/config/vxworks.h
+++ b/gcc/config/vxworks.h
@@ -410,7 +410,7 @@ extern void vxworks_emit_call_builtin___clear_cache (rtx begin, rtx end);
    with VxWorks.  */
 
 #undef DWARF_VERSION_DEFAULT
-#define DWARF_VERSION_DEFAULT (TARGET_VXWORKS7 ? 4 : 2)
+#define DWARF_VERSION_DEFAULT (TARGET_VXWORKS7 ? 3 : 2)
 
 #undef DWARF_GNAT_ENCODINGS_DEFAULT
 #define DWARF_GNAT_ENCODINGS_DEFAULT \
-- 
2.25.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-07  6:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-07  6:57 [patch] Downgrade DWARF_VERSION_DEFAULT to 3 for VxWorks >= 7 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).