From 6177b45fcdc4273c5e94e8032644ca5807e7e93b Mon Sep 17 00:00:00 2001 From: Mark Harmstone Date: Sat, 2 Nov 2024 15:31:12 +0000 Subject: 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. --- gcc/dwarf2codeview.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/dwarf2codeview.h') 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 -- cgit v1.1