This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/84550] [8 Regression] stepping through gcc does not work with gdb 8.0.1


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84550

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aoliva at gcc dot gnu.org,
                   |                            |jakub at gcc dot gnu.org,
                   |                            |palves at redhat dot com

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I can reproduce it both with normal optimized built f951 and when trans-stmt.o
is built with -gno-statement-frontiers -gno-inline-points.
1646      gcc_assert (sym->assoc);
(gdb) s
1647      e = sym->assoc->target;
(gdb) s
1650                        && (gfc_is_class_scalar_expr (e)
(gdb) set debug infrun 1
(gdb) s
infrun: clear_proceed_status_thread (process 25164)
infrun: proceed (addr=0xffffffffffffffff, signal=GDB_SIGNAL_DEFAULT)
infrun: proceed: resuming process 25164
infrun: resume (step=1, signal=GDB_SIGNAL_0), trap_expected=0, current thread
[process 25164] at 0x98c855
infrun: infrun_async(1)
infrun: prepare_to_wait
infrun: target_wait (-1.0.0, status) =
infrun:   25164.25164.0 [process 25164],
infrun:   status->kind = stopped, signal = GDB_SIGNAL_TRAP
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x98c858
infrun: stepping inside range [0x98c855-0x98c868]
infrun: resume (step=1, signal=GDB_SIGNAL_0), trap_expected=0, current thread
[process 25164] at 0x98c858
infrun: prepare_to_wait
infrun: target_wait (-1.0.0, status) =
infrun:   25164.25164.0 [process 25164],
infrun:   status->kind = stopped, signal = GDB_SIGNAL_TRAP
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x98c85b
infrun: stepping inside range [0x98c855-0x98c868]
infrun: resume (step=1, signal=GDB_SIGNAL_0), trap_expected=0, current thread
[process 25164] at 0x98c85b
infrun: prepare_to_wait
infrun: target_wait (-1.0.0, status) =
infrun:   25164.25164.0 [process 25164],
infrun:   status->kind = stopped, signal = GDB_SIGNAL_TRAP
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x98c85e
infrun: stepping inside range [0x98c855-0x98c868]
infrun: resume (step=1, signal=GDB_SIGNAL_0), trap_expected=0, current thread
[process 25164] at 0x98c85e
infrun: prepare_to_wait
infrun: target_wait (-1.0.0, status) =
infrun:   25164.25164.0 [process 25164],
infrun:   status->kind = stopped, signal = GDB_SIGNAL_TRAP
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x98c862
infrun: stepping inside range [0x98c855-0x98c868]
infrun: resume (step=1, signal=GDB_SIGNAL_0), trap_expected=0, current thread
[process 25164] at 0x98c862
infrun: prepare_to_wait
infrun: target_wait (-1.0.0, status) =
infrun:   25164.25164.0 [process 25164],
infrun:   status->kind = stopped, signal = GDB_SIGNAL_TRAP
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x98cf08
infrun: keep going
infrun: resume (step=1, signal=GDB_SIGNAL_0), trap_expected=0, current thread
[process 25164] at 0x98cf08
infrun: prepare_to_wait
infrun: target_wait (-1.0.0, status) =
infrun:   25164.25164.0 [process 25164],
infrun:   status->kind = stopped, signal = GDB_SIGNAL_TRAP
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x98cf0b
infrun: stepping inside range [0x98cf08-0x98cf1b]
infrun: resume (step=1, signal=GDB_SIGNAL_0), trap_expected=0, current thread
[process 25164] at 0x98cf0b
infrun: prepare_to_wait
infrun: target_wait (-1.0.0, status) =
infrun:   25164.25164.0 [process 25164],
infrun:   status->kind = stopped, signal = GDB_SIGNAL_TRAP
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x853b60
infrun: stepped into subroutine
infrun: inserting step-resume breakpoint at 0x5b88b8
infrun: resume (step=0, signal=GDB_SIGNAL_0), trap_expected=0, current thread
[process 25164] at 0x853b60
infrun: prepare_to_wait
infrun: target_wait (-1.0.0, status) =
infrun:   -1.0.0 [process -1],
infrun:   status->kind = ignore
infrun: TARGET_WAITKIND_IGNORE
infrun: prepare_to_wait
a.f90:8:0:

 associate (n_array => b%array%n)

internal compiler error: in gfc_get_element_type, at fortran/trans-types.c:1278
0x5ba616 gfc_get_element_type(tree_node*)
        ../../gcc/fortran/trans-types.c:1278
0x98d1ee trans_associate_var
        ../../gcc/fortran/trans-stmt.c:1741
0x9921b1 gfc_trans_block_construct(gfc_code*)
        ../../gcc/fortran/trans-stmt.c:2064
0x915f37 trans_code
        ../../gcc/fortran/trans.c:1924
0x941d5d gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.c:6497
0x8ccc46 translate_all_program_units
        ../../gcc/fortran/parse.c:6121
0x8ccc46 gfc_parse_file()
        ../../gcc/fortran/parse.c:6324
0x9130ff gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:204
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
infrun: target_wait (-1.0.0, status) =
infrun:   25164.25164.0 [process 25164],
infrun:   status->kind = exited, status = 4
infrun: TARGET_WAITKIND_EXITED
[Inferior 1 (process 25164) exited with code 04]
infrun: stop_waiting

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]