aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2codeview.h
diff options
context:
space:
mode:
authorMark Harmstone <mark@harmstone.com>2024-05-11 08:15:43 -0600
committerJeff Law <jlaw@ventanamicro.com>2024-05-11 08:15:43 -0600
commited6690a0ca911138abd4d707510fd03ef188a28b (patch)
tree468ce8c7bb76ff29b4fb43267738fad2047846b4 /gcc/dwarf2codeview.h
parent36781ef8fd26eb9a0686957e7bac8f5ccc5ecc3f (diff)
downloadgcc-ed6690a0ca911138abd4d707510fd03ef188a28b.zip
gcc-ed6690a0ca911138abd4d707510fd03ef188a28b.tar.gz
gcc-ed6690a0ca911138abd4d707510fd03ef188a28b.tar.bz2
[PATCH v2 2/4] Output file checksums in CodeView section
Outputs the file name and MD5 hash of the main source file into the CodeView .debug$S section, along with that of any #include'd files. gcc/ * dwarf2codeview.cc (DEBUG_S_STRINGTABLE): Define. (DEBUG_S_FILECHKSMS, CHKSUM_TYPE_MD5, HASH_SIZE): Likewise. (codeview_string, codeview_source_file): New structures. (struct string_hasher): New class for codeview_string hashing. (files, last_file, num_files, string_offset): New variables. (strings_hstab, strings, last_string): Likewise. (add_string, codevie_start_source_file): New functions. (write_strings_tabe, write_soruce_files): Likewise. (codeview_debug_finish): Call new functions. * dwarf2codeview.h (codeview_start_source_file): Prototype. * dwarf2out.cc (dwarf2out_start_source_file): Handle codeview.
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 efda148..e2d732b 100644
--- a/gcc/dwarf2codeview.h
+++ b/gcc/dwarf2codeview.h
@@ -26,5 +26,6 @@ along with GCC; see the file COPYING3. If not see
/* Debug Format Interface. Used in dwarf2out.cc. */
extern void codeview_debug_finish (void);
+extern void codeview_start_source_file (const char *);
#endif /* GCC_DWARF2CODEVIEW_H */