public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-2397] debug: Add new function ctf_debuginfo_p
@ 2021-07-19 17:35 Indu Bhagat
  0 siblings, 0 replies; only message in thread
From: Indu Bhagat @ 2021-07-19 17:35 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:483dd64546f1c7aa6ad8986eee570849d25f15e3

commit r12-2397-g483dd64546f1c7aa6ad8986eee570849d25f15e3
Author: Indu Bhagat <indu.bhagat@oracle.com>
Date:   Mon Jul 19 10:23:27 2021 -0700

    debug: Add new function ctf_debuginfo_p
    
    gcc/
    
            * flags.h (ctf_debuginfo_p): New function declaration.
            * opts.c (ctf_debuginfo_p): New function definition.

Diff:
---
 gcc/flags.h | 4 ++++
 gcc/opts.c  | 8 ++++++++
 2 files changed, 12 insertions(+)

diff --git a/gcc/flags.h b/gcc/flags.h
index 85fd228a20c..afedef0abea 100644
--- a/gcc/flags.h
+++ b/gcc/flags.h
@@ -44,6 +44,10 @@ const char * debug_set_names (uint32_t w_symbols);
 
 extern bool btf_debuginfo_p ();
 
+/* Return true iff CTF debug info is enabled.  */
+
+extern bool ctf_debuginfo_p ();
+
 /* Return true iff DWARF2 debug info is enabled.  */
 
 extern bool dwarf_debuginfo_p ();
diff --git a/gcc/opts.c b/gcc/opts.c
index 25282f71a3b..93366e6eb2d 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -135,6 +135,14 @@ btf_debuginfo_p ()
   return (write_symbols & BTF_DEBUG);
 }
 
+/* Return TRUE iff CTF debug info is enabled.  */
+
+bool
+ctf_debuginfo_p ()
+{
+  return (write_symbols & CTF_DEBUG);
+}
+
 /* Return TRUE iff dwarf2 debug info is enabled.  */
 
 bool


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

only message in thread, other threads:[~2021-07-19 17:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-19 17:35 [gcc r12-2397] debug: Add new function ctf_debuginfo_p Indu Bhagat

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).