diff options
author | Mark Harmstone <mark@harmstone.com> | 2024-10-28 22:32:29 +0000 |
---|---|---|
committer | Mark Harmstone <mark@harmstone.com> | 2024-11-30 14:53:41 +0000 |
commit | 4ed189854eae2d243557c9405f654bd9a16dadaa (patch) | |
tree | 866eee3bd388cc2da4fd46416116043390551a0b /gcc/debug.cc | |
parent | 214985f6b35ea8038c4e96590b435aaef2919769 (diff) | |
download | gcc-4ed189854eae2d243557c9405f654bd9a16dadaa.zip gcc-4ed189854eae2d243557c9405f654bd9a16dadaa.tar.gz gcc-4ed189854eae2d243557c9405f654bd9a16dadaa.tar.bz2 |
Add block parameter to begin_block debug hook
Add a parameter to the begin_block debug hook that is a pointer to the
tree_node of the block in question. CodeView needs this as it records
line numbers of inlined functions in a different manner, so we need to
be able to tell if the block is actually the start of an inlined
function.
gcc/
* debug.cc (do_nothing_debug_hooks): Change begin_block
function pointer.
(debug_nothing_int_int_tree): New function.
* debug.h (struct gcc_debug_hooks): Add tree parameter to begin_block.
(debug_nothing_int_int_tree): Add declaration.
* dwarf2out.cc (dwarf2out_begin_block): Add tree parameter.
(dwarf2_lineno_debug_hooks): Use new dummy function for begin_block.
* final.cc (final_scan_insn_1): Pass insn block through to
debug_hooks->begin_block.
* vmsdbgout.cc (vmsdbgout_begin_block): Add tree parameter.
Diffstat (limited to 'gcc/debug.cc')
-rw-r--r-- | gcc/debug.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/debug.cc b/gcc/debug.cc index 81f6683..65725de 100644 --- a/gcc/debug.cc +++ b/gcc/debug.cc @@ -32,7 +32,7 @@ const struct gcc_debug_hooks do_nothing_debug_hooks = debug_nothing_int_charstar, debug_nothing_int_charstar, debug_nothing_int, - debug_nothing_int_int, /* begin_block */ + debug_nothing_int_int_tree, /* begin_block */ debug_nothing_int_int, /* end_block */ debug_true_const_tree, /* ignore_block */ debug_nothing_int_int_charstar_int_bool, /* source_line */ @@ -147,6 +147,13 @@ debug_nothing_int_int (unsigned int line ATTRIBUTE_UNUSED, } void +debug_nothing_int_int_tree (unsigned int line ATTRIBUTE_UNUSED, + unsigned int n ATTRIBUTE_UNUSED, + tree block ATTRIBUTE_UNUSED) +{ +} + +void debug_nothing_tree_int (tree decl ATTRIBUTE_UNUSED, int local ATTRIBUTE_UNUSED) { |