diff options
author | Mark Harmstone <mark@harmstone.com> | 2024-06-23 17:48:10 -0600 |
---|---|---|
committer | Jeff Law <jlaw@ventanamicro.com> | 2024-06-23 17:48:10 -0600 |
commit | a9df6bdef485a185a0911d103e7a456c2f22c16a (patch) | |
tree | b15080ab0af6a222f7e9d70ccb67e0bdd48df61a /gcc/dwarf2codeview.h | |
parent | eb647daa87b466d0a71246fad302cd81bfce9be5 (diff) | |
download | gcc-a9df6bdef485a185a0911d103e7a456c2f22c16a.zip gcc-a9df6bdef485a185a0911d103e7a456c2f22c16a.tar.gz gcc-a9df6bdef485a185a0911d103e7a456c2f22c16a.tar.bz2 |
[PATCH 01/11] Output CodeView data about variables
Parse the DW_TAG_variable DIEs, and outputs S_GDATA32 (for global variables)
and S_LDATA32 (static global variables) symbols into the .debug$S section.
gcc/
* dwarf2codeview.cc (S_LDATA32, S_GDATA32): Define.
(struct codeview_symbol): New structure.
(sym, last_sym): New variables.
(write_data_symbol): New function.
(write_codeview_symbols): Call write_data_symbol.
(add_variable, codeview_debug_early_finish): New functions.
* dwarf2codeview.h (codeview_debug_early_finish): Prototype.
* dwarf2out.cc
(dwarf2out_early_finish): Call codeview_debug_early_finish.
Diffstat (limited to 'gcc/dwarf2codeview.h')
-rw-r--r-- | gcc/dwarf2codeview.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/dwarf2codeview.h b/gcc/dwarf2codeview.h index b6421b6..ac4c2fd 100644 --- a/gcc/dwarf2codeview.h +++ b/gcc/dwarf2codeview.h @@ -30,5 +30,6 @@ extern void codeview_source_line (unsigned int, const char *); extern void codeview_start_source_file (const char *); extern void codeview_switch_text_section (); extern void codeview_end_epilogue (void); +extern void codeview_debug_early_finish (dw_die_ref die); #endif /* GCC_DWARF2CODEVIEW_H */ |