[Bug gdb/19712] New: AT_EXECFN and trimmed "Core was generated by"

palves at redhat dot com sourceware-bugzilla@sourceware.org
Tue Feb 23 12:06:00 GMT 2016


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

            Bug ID: 19712
           Summary: AT_EXECFN and trimmed "Core was generated by"
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: palves at redhat dot com
  Target Milestone: ---

If the program's original command line was long enough, it'll end up trimmed in
the core's prpsinfo:

 gdb -c ./testsuite/core.12722
 GNU gdb (GDB) 7.11.50.20160219-git
 Core was generated by
`/home/pedro/gdb/mygit/build/gdb/testsuite/outputs/gdb.base/foll-vfork/foll-vfor'.

(This is a core dump structure limitation.)

However, there are other places gdb could source to try to complete that
information.  E.g., in auxv/AT_EXECFN:

 (gdb) info auxv
 31   AT_EXECFN            File name of executable        0x7fffffffefa2
"/home/pedro/gdb/mygit/build/gdb/testsuite/outputs/gdb.base/foll-vfork/foll-vfork-exit"
 (gdb)

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


More information about the Gdb-prs mailing list