aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2codeview.h
diff options
context:
space:
mode:
authorMark Harmstone <mark@harmstone.com>2024-11-02 15:31:12 +0000
committerMark Harmstone <mark@harmstone.com>2024-11-05 00:47:41 +0000
commit6177b45fcdc4273c5e94e8032644ca5807e7e93b (patch)
treef1dc6eca34d466a1a621b37a0685630679463584 /gcc/dwarf2codeview.h
parentb0f4f556ea9f07d0b6fb6407ab25a193d27c806e (diff)
downloadgcc-6177b45fcdc4273c5e94e8032644ca5807e7e93b.zip
gcc-6177b45fcdc4273c5e94e8032644ca5807e7e93b.tar.gz
gcc-6177b45fcdc4273c5e94e8032644ca5807e7e93b.tar.bz2
Handle T_HRESULT types in CodeView records
Follow MSVC in having a special type value, T_HRESULT, for (signed) longs that have been typedef'd with the name "HRESULT". This is so that the debugger can display user-friendly constant names when debugging COM code. gcc/ * dwarf2codeview.cc (get_type_num_typedef): New function. (get_type_num): Call get_type_num_typedef. * dwarf2codeview.h (T_HRESULT): Define.
Diffstat (limited to 'gcc/dwarf2codeview.h')
-rw-r--r--gcc/dwarf2codeview.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/dwarf2codeview.h b/gcc/dwarf2codeview.h
index c895ef3..52ffc6c 100644
--- a/gcc/dwarf2codeview.h
+++ b/gcc/dwarf2codeview.h
@@ -26,6 +26,7 @@ along with GCC; see the file COPYING3. If not see
/* Constants for in-built types. */
#define T_VOID 0x0003
+#define T_HRESULT 0x0008
#define T_CHAR 0x0010
#define T_SHORT 0x0011
#define T_LONG 0x0012