1 /* dwarf2codeview.h - DWARF interface for CodeView generation.
2 Copyright (C) 2023 Free Software Foundation, Inc.
4 This file is part of GCC.
6 GCC is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 3, or (at your option) any later
11 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING3. If not see
18 <http://www.gnu.org/licenses/>. */
20 #ifndef GCC_DWARF2CODEVIEW_H
21 #define GCC_DWARF2CODEVIEW_H 1
23 #include "dwarf2out.h"
26 /* Constants for in-built types. */
30 #define T_SHORT 0x0011
33 #define T_UCHAR 0x0020
34 #define T_USHORT 0x0021
35 #define T_ULONG 0x0022
36 #define T_UQUAD 0x0023
37 #define T_BOOL08 0x0030
38 #define T_REAL32 0x0040
39 #define T_REAL64 0x0041
40 #define T_REAL80 0x0042
41 #define T_REAL128 0x0043
42 #define T_RCHAR 0x0070
43 #define T_WCHAR 0x0071
45 #define T_UINT4 0x0075
46 #define T_CHAR16 0x007a
47 #define T_CHAR32 0x007b
48 #define T_CHAR8 0x007c
50 #define CV_POINTER_32 0x0400
51 #define CV_POINTER_64 0x0600
52 #define T_32PVOID (T_VOID | CV_POINTER_32)
53 #define T_64PVOID (T_VOID | CV_POINTER_64)
55 /* LF_POINTER attributes. */
56 #define CV_PTR_NEAR32 0x0a
57 #define CV_PTR_64 0x0c
58 #define CV_PTR_MODE_LVREF 0x20
59 #define CV_PTR_MODE_RVREF 0x80
61 /* LF_MODIFIER values. */
63 #define MOD_volatile 0x2
65 #define CV_ACCESS_PRIVATE 1
66 #define CV_ACCESS_PROTECTED 2
67 #define CV_ACCESS_PUBLIC 3
69 /* CV_methodprop_e values in cvinfo.h, shifted by 2 for CV_fldattr_t. */
70 #define CV_METHOD_VANILLA 0x00
71 #define CV_METHOD_VIRTUAL 0x04
72 #define CV_METHOD_STATIC 0x08
73 #define CV_METHOD_FRIEND 0x0c
74 #define CV_METHOD_INTRO 0x10
75 #define CV_METHOD_PUREVIRT 0x14
76 #define CV_METHOD_PUREINTRO 0x18
78 #define CV_PROP_FWDREF 0x80
80 /* Debug Format Interface. Used in dwarf2out.cc. */
82 extern void codeview_debug_finish (void);
83 extern void codeview_source_line (unsigned int, const char *);
84 extern void codeview_start_source_file (const char *);
85 extern void codeview_switch_text_section ();
86 extern void codeview_end_epilogue (void);
87 extern void codeview_debug_early_finish (dw_die_ref die
);
89 #endif /* GCC_DWARF2CODEVIEW_H */