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

--- Comment #15 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
I now can build Firefox with gdb, but debugging experience is not optimal. Gdb
starts and when I start firefox it stops itself. After doing "fg" it complains
about dwarf headers
hubicka@lomikamen-jh:/aux/hubicka/firefox2018-release-trunktest2/dist/bin$ gdb
firefox
GNU gdb (GDB) 8.2.50.20181222-git
Copyright (C) 2018 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-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
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 firefox...
Dwarf Error: wrong version in compilation unit header (is 12062, should be 2,
3, 4 or 5) [in module
/aux/hubicka/firefox2018-release-trunktest2/dist/bin/firefox]
(No debugging symbols found in firefox)
warning: File "/aux/hubicka/firefox-2018/firefox/.gdbinit" auto-loading has
been declined by your `auto-load safe-path' set to
"$debugdir:$datadir/auto-load".
To enable execution of this file add
        add-auto-load-safe-path /aux/hubicka/firefox-2018/firefox/.gdbinit 
line to your configuration file "/home/hubicka/.gdbinit".
To completely disable this security protection add
        set auto-load safe-path /
line to your configuration file "/home/hubicka/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
        info "(gdb)Auto-loading safe path"
(gdb) run
Starting program: /aux/hubicka/firefox2018-release-trunktest2/dist/bin/firefox
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". 

[4]+  Stopped                 gdb firefox
hubicka@lomikamen-jh:/aux/hubicka/firefox2018-release-trunktest2/dist/bin$ fg
gdb firefox
Dwarf Error: wrong version in compilation unit header (is 82, should be 2, 3, 4
or 5) [in module
/aux/hubicka/firefox2018-release-trunktest2/dist/bin/libnspr4.so]

[4]+  Stopped                 gdb firefox
hubicka@lomikamen-jh:/aux/hubicka/firefox2018-release-trunktest2/dist/bin$ fg

Reply via email to