public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/23034] Lack of info in outside of ELF segments message
       [not found] <bug-23034-4717@http.sourceware.org/bugzilla/>
@ 2020-11-13 17:44 ` cvs-commit at gcc dot gnu.org
  2020-11-13 17:47 ` keiths at redhat dot com
  1 sibling, 0 replies; 2+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-11-13 17:44 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Keith Seitz <kseitz@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9d3ab915be4548c6fee80c0b2f79a509fd4150b8

commit 9d3ab915be4548c6fee80c0b2f79a509fd4150b8
Author: Keith Seitz <keiths@redhat.com>
Date:   Fri Nov 13 09:28:50 2020 -0800

    Add file name to "Loadable section ... outside of ELF segments" warning

    As requested in gdb/23034, I would like to extend the warning message
    GDB displays when it detects a loadable section that is outside any
    ELF segment.

    Before:

    $ gdb -q --ex "b systemctl_main" -ex "r" -batch --args systemctl kexec
    Breakpoint 1 at 0xc24d: file ../src/systemctl/systemctl.c, line 8752.
    warning: Loadable section ".note.gnu.property" outside of ELF segments
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib64/libthread_db.so.1".
    warning: Loadable section ".note.gnu.property" outside of ELF segments
    warning: Loadable section ".note.gnu.property" outside of ELF segments
    warning: Loadable section ".note.gnu.property" outside of ELF segments
    warning: Loadable section ".note.gnu.property" outside of ELF segments
    [snip]

    Breakpoint 1, systemctl_main (argv=0x7fffffffd348, argc=2) at
../src/systemctl/systemctl.c:8752
    8752                    r = systemctl_main(argc, argv);

    After:

    warning: Loadable section ".note.gnu.property" outside of ELF segments
      in .gnu_debugdata for /lib64/libcap.so.2
    warning: Loadable section ".note.gnu.property" outside of ELF segments
      in .gnu_debugdata for /lib64/libacl.so.1
    [snip]

    I think this is eminently more useful output.

    gdb/ChangeLog
    2020-11-13  Keith Seitz  <keiths@redhat.com>

            PR gdb/23034
            * elfread.c (elf_symfile_segments): Output a BFD file name
            for the "Loadable section ... outside of ELF segments" warning.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug gdb/23034] Lack of info in outside of ELF segments message
       [not found] <bug-23034-4717@http.sourceware.org/bugzilla/>
  2020-11-13 17:44 ` [Bug gdb/23034] Lack of info in outside of ELF segments message cvs-commit at gcc dot gnu.org
@ 2020-11-13 17:47 ` keiths at redhat dot com
  1 sibling, 0 replies; 2+ messages in thread
From: keiths at redhat dot com @ 2020-11-13 17:47 UTC (permalink / raw)
  To: gdb-prs

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

Keith Seitz <keiths at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |keiths at redhat dot com
           Assignee|unassigned at sourceware dot org   |keiths at redhat dot com
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Keith Seitz <keiths at redhat dot com> ---
Better late than never...

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-13 17:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-23034-4717@http.sourceware.org/bugzilla/>
2020-11-13 17:44 ` [Bug gdb/23034] Lack of info in outside of ELF segments message cvs-commit at gcc dot gnu.org
2020-11-13 17:47 ` keiths at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).