return false;
if (dwarf_tag(&scope_die) == DW_TAG_subprogram
+ || dwarf_tag(&scope_die) == DW_TAG_subroutine_type
|| dwarf_tag(&scope_die) == DW_TAG_array_type)
return get_scope_die(ctxt, &scope_die, where_offset, scope_die);
return true;
test-read-dwarf/PR22015-libboost_iostreams.so.abi \
test-read-dwarf/PR22122-libftdc.so \
test-read-dwarf/PR22122-libftdc.so.abi \
+test-read-dwarf/PR24378-fn-is-not-scope.abi \
+test-read-dwarf/PR24378-fn-is-not-scope.o \
\
test-annotate/test0.abi \
test-annotate/test1.abi \
--- /dev/null
+<abi-corpus path='data/test-read-dwarf/PR24378-fn-is-not-scope.o'>
+ <elf-function-symbols>
+ <elf-symbol name='_ZN4stac14buggy_functionEPFvPFfiiEE' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/>
+ </elf-function-symbols>
+ <abi-instr version='1.0' address-size='64' path='dwarf_bug.cpp' comp-dir-path='/remote/users/lstacul' language='LANG_C_plus_plus'>
+ <namespace-decl name='stac'>
+ <function-decl name='buggy_function' mangled-name='_ZN4stac14buggy_functionEPFvPFfiiEE' filepath='/remote/users/lstacul/dwarf_bug.cpp' line='10' column='1' visibility='default' binding='global' size-in-bits='64' elf-symbol-id='_ZN4stac14buggy_functionEPFvPFfiiEE'>
+ <parameter type-id='type-id-1'/>
+ <return type-id='type-id-2'/>
+ </function-decl>
+ </namespace-decl>
+ <type-decl name='void' id='type-id-2'/>
+ <pointer-type-def type-id='type-id-3' size-in-bits='64' id='type-id-1'/>
+ <function-type size-in-bits='64' id='type-id-3'>
+ <return type-id='type-id-2'/>
+ </function-type>
+ </abi-instr>
+</abi-corpus>
"data/test-read-dwarf/PR22122-libftdc.so.abi",
"output/test-read-dwarf/PR22122-libftdc.so.abi",
},
+ {
+ "data/test-read-dwarf/PR24378-fn-is-not-scope.o",
+ "",
+ "data/test-read-dwarf/PR24378-fn-is-not-scope.abi",
+ "output/test-read-dwarf/PR24378-fn-is-not-scope.abi",
+ },
// This should be the last entry.
{NULL, NULL, NULL, NULL}
};