[Bug symtab/25256] maint check-psymtab: Inline function only found in psymtab

vries at gcc dot gnu.org sourceware-bugzilla@sourceware.org
Sun Dec 8 11:50:00 GMT 2019


https://sourceware.org/bugzilla/show_bug.cgi?id=25256

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Tom de Vries from comment #1)
> I ran into this with target board cc-with-dwz and test-case
> gdb.ada/maint_with_ada.exp:

Using this patch:
...
diff --git a/gdb/testsuite/gdb.ada/maint_with_ada.exp
b/gdb/testsuite/gdb.ada/maint_with_ada.exp
index 6c1bac2c4ca..b50a63cfca5 100644
--- a/gdb/testsuite/gdb.ada/maint_with_ada.exp
+++ b/gdb/testsuite/gdb.ada/maint_with_ada.exp
@@ -31,6 +31,7 @@ clean_restart ${testfile}
 gdb_breakpoint "adainit"
 gdb_breakpoint "Var_Arr_Typedef"
 gdb_breakpoint "Do_Nothing"
+gdb_test_no_output "maint expand-symtabs"

 gdb_test_no_output "maintenance check-psymtabs"

...

I managed to reproduce it without cc-with-dwz :
...
(gdb) maintenance check-psymtabs
Static symbol `_Unwind_Find_registered_FDE' only found in
../../../libgcc/unwind-dw2-fde-dip.c psymtab
Static symbol `binary_search_mixed_encoding_fdes' only found in
../../../libgcc/unwind-dw2-fde-dip.c psymtab
Static symbol `binary_search_single_encoding_fdes' only found in
../../../libgcc/unwind-dw2-fde-dip.c psymtab
Static symbol `binary_search_unencoded_fdes' only found in
../../../libgcc/unwind-dw2-fde-dip.c psymtab
Static symbol `init_object' only found in ../../../libgcc/unwind-dw2-fde-dip.c
psymtab
Static symbol `end_fde_sort' only found in ../../../libgcc/unwind-dw2-fde-dip.c
psymtab
Static symbol `fde_merge' only found in ../../../libgcc/unwind-dw2-fde-dip.c
psymtab
Static symbol `fde_split' only found in ../../../libgcc/unwind-dw2-fde-dip.c
psymtab
Static symbol `fde_insert' only found in ../../../libgcc/unwind-dw2-fde-dip.c
psymtab
Static symbol `start_fde_sort' only found in
../../../libgcc/unwind-dw2-fde-dip.c psymtab
Static symbol `get_fde_encoding' only found in
../../../libgcc/unwind-dw2-fde-dip.c psymtab
Static symbol `__gthread_mutex_unlock' only found in
../../../libgcc/unwind-dw2-fde-dip.c psymtab
Static symbol `__gthread_mutex_lock' only found in
../../../libgcc/unwind-dw2-fde-dip.c psymtab
Static symbol `__gthread_active_p' only found in
../../../libgcc/unwind-dw2-fde-dip.c psymtab
Static symbol `last_fde' only found in ../../../libgcc/unwind-dw2-fde-dip.c
psymtab
Static symbol `next_fde' only found in ../../../libgcc/unwind-dw2-fde-dip.c
psymtab
Static symbol `get_cie' only found in ../../../libgcc/unwind-dw2-fde-dip.c
psymtab
Static symbol `read_sleb128' only found in ../../../libgcc/unwind-dw2-fde-dip.c
psymtab
Static symbol `read_uleb128' only found in ../../../libgcc/unwind-dw2-fde-dip.c
psymtab
Static symbol `uw_identify_context' only found in ../../../libgcc/unwind-dw2.c
psymtab
Static symbol `uw_frob_return_addr' only found in ../../../libgcc/unwind-dw2.c
psymtab
Static symbol `uw_advance_context' only found in ../../../libgcc/unwind-dw2.c
psymtab
Static symbol `_Unwind_SetSpColumn' only found in ../../../libgcc/unwind-dw2.c
psymtab
Static symbol `extract_cie_info' only found in ../../../libgcc/unwind-dw2.c
psymtab
Static symbol `x86_64_fallback_frame_state' only found in
../../../libgcc/unwind-dw2.c psymtab
Static symbol `_Unwind_GRByValue' only found in ../../../libgcc/unwind-dw2.c
psymtab
Static symbol `_Unwind_SetGRValue' only found in ../../../libgcc/unwind-dw2.c
psymtab
Static symbol `_Unwind_SetGRPtr' only found in ../../../libgcc/unwind-dw2.c
psymtab
Static symbol `_Unwind_GetGRPtr' only found in ../../../libgcc/unwind-dw2.c
psymtab
Static symbol `_Unwind_GetPtr' only found in ../../../libgcc/unwind-dw2.c
psymtab
Static symbol `_Unwind_IsExtendedContext' only found in
../../../libgcc/unwind-dw2.c psymtab
Static symbol `_Unwind_SetSignalFrame' only found in
../../../libgcc/unwind-dw2.c psymtab
Static symbol `_Unwind_IsSignalFrame' only found in
../../../libgcc/unwind-dw2.c psymtab
Static symbol `read_8s' only found in ../../../libgcc/unwind-dw2.c psymtab
Static symbol `read_8u' only found in ../../../libgcc/unwind-dw2.c psymtab
Static symbol `read_4s' only found in ../../../libgcc/unwind-dw2.c psymtab
Static symbol `read_4u' only found in ../../../libgcc/unwind-dw2.c psymtab
Static symbol `read_2s' only found in ../../../libgcc/unwind-dw2.c psymtab
Static symbol `read_2u' only found in ../../../libgcc/unwind-dw2.c psymtab
Static symbol `read_1s' only found in ../../../libgcc/unwind-dw2.c psymtab
Static symbol `read_1u' only found in ../../../libgcc/unwind-dw2.c psymtab
Static symbol `read_pointer' only found in ../../../libgcc/unwind-dw2.c psymtab
Static symbol `_Unwind_Get_Unwind_Context_Reg_Val' only found in
../../../libgcc/unwind-dw2.c psymtab
Static symbol `_Unwind_Get_Unwind_Word' only found in
../../../libgcc/unwind-dw2.c psymtab
Static symbol `__gthread_once' only found in ../../../libgcc/unwind-dw2.c
psymtab
Static symbol `__gthread_active_p' only found in ../../../libgcc/unwind-dw2.c
psymtab
Static symbol `next_fde' only found in ../../../libgcc/unwind-dw2.c psymtab
Static symbol `get_cie' only found in ../../../libgcc/unwind-dw2.c psymtab
Static symbol `read_encoded_value' only found in ../../../libgcc/unwind-dw2.c
psymtab
Static symbol `read_sleb128' only found in ../../../libgcc/unwind-dw2.c psymtab
Static symbol `read_uleb128' only found in ../../../libgcc/unwind-dw2.c psymtab
Static symbol `size_of_encoded_value' only found in
../../../libgcc/unwind-dw2.c psymtab
Static symbol `__udivmodti4' only found in ../../../libgcc/libgcc2.c psymtab
Static symbol `personality_body' only found in raise-gcc.c psymtab
Static symbol `continue_unwind' only found in raise-gcc.c psymtab
Static symbol `setup_to_install' only found in raise-gcc.c psymtab
Static symbol `get_action_description_for' only found in raise-gcc.c psymtab
Static symbol `is_handled_by' only found in raise-gcc.c psymtab
Static symbol `exception_class_eq' only found in raise-gcc.c psymtab
Static symbol `get_call_site_action_for' only found in raise-gcc.c psymtab
Static symbol `get_region_description_for' only found in raise-gcc.c psymtab
Static symbol `get_ttype_entry_for' only found in raise-gcc.c psymtab
Static symbol `db_region_for' only found in raise-gcc.c psymtab
Static symbol `get_ip_from_context' only found in raise-gcc.c psymtab
Static symbol `db_phases' only found in raise-gcc.c psymtab
Static symbol `read_encoded_value' only found in raise-gcc.c psymtab
Static symbol `read_sleb128' only found in raise-gcc.c psymtab
Static symbol `read_uleb128' only found in raise-gcc.c psymtab
Static symbol `size_of_encoded_value' only found in raise-gcc.c psymtab
Global symbol `system__wch_stw__get_next_code__get_utf_32' only found in
s-wchstw.adb psymtab
Global symbol `system__wch_stw__get_next_code__get_utf_32' only found in
s-wchstw.adb psymtab
Global symbol `system__wch_stw__get_next_code__get_utf_32' only found in
s-wchstw.adb psymtab
Global symbol `system__wch_stw__get_next_code__get_utf_32' only found in
s-wchstw.adb psymtab
Global symbol `system__wch_stw__get_next_code__get_utf_32__get_utf_byte' only
found in s-wchstw.adb psymtab
Global symbol `system__memory__c_free' only found in s-memory.adb psymtab
Global symbol `system__memory__c_malloc' only found in s-memory.adb psymtab
Global symbol `system__memory__c_realloc' only found in s-memory.adb psymtab
Global symbol `system__exception_table__get_registered_exceptions__get_all'
only found in s-exctab.adb psymtab
Global symbol `system__exception_table__get_registered_exceptions__get_all'
only found in s-exctab.adb psymtab
Global symbol `system__exception_table__get_registered_exceptions__get_one'
only found in s-exctab.adb psymtab
Global symbol `system__exception_table__registered_exceptions_count__count_all'
only found in s-exctab.adb psymtab
Global symbol `system__exception_table__registered_exceptions_count__count_all'
only found in s-exctab.adb psymtab
Global symbol
`system__exception_table__registered_exceptions_count__count_item' only found
in s-exctab.adb psymtab
(gdb) FAIL: gdb.ada/maint_with_ada.exp: maintenance check-psymtabs
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list