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

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

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
So, I guess we need help on how does gdb determine the initial file when
loading a program (i.e. when you run gdb ./program , when you get prompt, what
file is l showing or b <number> putting breakpoint in).
With the new LTO debug info, we have
.file   "<artificial>"
with both -f{,no-}reorder-blocks-and-partition.
The CU that imports the unit with main has:
        .long   .LASF1  # DW_AT_name: "<artificial>"
        .long   .LASF2  # DW_AT_comp_dir: "/usr/src/gcc/obj/gcc"
too.  Pedro/Jan, could you try this (I can provide binaries off-line) and say
where gdb sees the difference and why doesn't it make the file containing main
the default?

Reply via email to