https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84550
Bug ID: 84550 Summary: [8 Regression] stepping through gcc does not work with gdb 8.0.1 Product: gcc Version: 8.0.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- Not sure if this is a gdb or a gcc problem. With gdb 8.0.1, stepping through functions after breakpoints is often broken. This makes it hard to debug gcc itself. Example: ig25@linux-d6cw:/tmp> cat a.f90 type foo integer n end type type bar type(foo) array(2) end type type(bar) b associate (n_array => b%array%n) end associate end ig25@linux-d6cw:/tmp> gdb ~/Gcc/trunk-bin/gcc/f951 GNU gdb (GDB; openSUSE Tumbleweed) 8.0.1 Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-suse-linux". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://bugs.opensuse.org/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /home/ig25/Gcc/trunk-bin/gcc/f951...done. (gdb) b trans_associate_var Breakpoint 1 at 0x61b5d8: trans_associate_var. (2 locations) (gdb) r a.f90 Starting program: /home/ig25/Gcc/trunk-bin/gcc/f951 a.f90 Missing separate debuginfo for /lib64/ld-linux-x86-64.so.2 Try: zypper install -C "debuginfo(build-id)=c7984d7c453e2a2c4bc366d9d89fc917211b75f9" Missing separate debuginfo for /lib64/libdl.so.2 Try: zypper install -C "debuginfo(build-id)=06e6646102b8d98d37235a424a6e61c2c77e67df" Missing separate debuginfo for /lib64/libm.so.6 Try: zypper install -C "debuginfo(build-id)=cc9b5830d04cd57f92170f4c96a5006cad18cb6f" Missing separate debuginfo for /lib64/libc.so.6 Try: zypper install -C "debuginfo(build-id)=6bf7a2777459d783385115a67cfd24abba9efaf6" MAIN__ Breakpoint 1, trans_associate_var(gfc_symbol*, gfc_wrapped_block*) () at ../../trunk/gcc/fortran/trans-stmt.c:1642 1642 gcc_assert (sym->assoc); (gdb) s 1645 class_target = (e->expr_type == EXPR_VARIABLE) (gdb) s a.f90:8:0: associate (n_array => b%array%n) interner Compiler-Fehler: in gfc_get_element_type, bei fortran/trans-types.c:1278 0x61d336 gfc_get_element_type(tree_node*) ../../trunk/gcc/fortran/trans-types.c:1278 0x8f347e trans_associate_var ../../trunk/gcc/fortran/trans-stmt.c:1737 0x8f83d1 gfc_trans_block_construct(gfc_code*) ../../trunk/gcc/fortran/trans-stmt.c:2060 0x87c347 trans_code ../../trunk/gcc/fortran/trans.c:1924 0x8a80bd gfc_generate_function_code(gfc_namespace*) ../../trunk/gcc/fortran/trans-decl.c:6490 0x833046 translate_all_program_units ../../trunk/gcc/fortran/parse.c:6121 0x833046 gfc_parse_file() ../../trunk/gcc/fortran/parse.c:6324 0x87950f gfc_be_parse_file ../../trunk/gcc/fortran/f95-lang.c:204 Bitte senden Sie einen vollständigen Fehlerbericht auf Englisch ein; inclusive vorverarbeitetem Quellcode, wenn es dienlich ist. Please include the complete backtrace with any bug report. Weitere Hinweise finden Sie unter »<https://gcc.gnu.org/bugs/>«. [Inferior 1 (process 26671) exited with code 04] "n" works, but of course will not let you step into functions...