public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug corefiles/18187] New: gdb needs to write first page of segment to core file, even for unmodified segments
@ 2015-03-31 23:36 dje at google dot com
2015-04-01 20:12 ` [Bug corefiles/18187] " sergiodj at redhat dot com
0 siblings, 1 reply; 2+ messages in thread
From: dje at google dot com @ 2015-03-31 23:36 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=18187
Bug ID: 18187
Summary: gdb needs to write first page of segment to core file,
even for unmodified segments
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: corefiles
Assignee: unassigned at sourceware dot org
Reporter: dje at google dot com
It's useful to record the contents of .note.gnu.build-id in core files,
e.g., to verify with the corresponding executable.
Currently gdb will skip writing readonly segments that it detects as being
unmodified.
While it's potentially impossible to find where .note.gnu.build-id lives,
a good heuristic is to just write the first (4K) page.
--
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 corefiles/18187] gdb needs to write first page of segment to core file, even for unmodified segments
2015-03-31 23:36 [Bug corefiles/18187] New: gdb needs to write first page of segment to core file, even for unmodified segments dje at google dot com
@ 2015-04-01 20:12 ` sergiodj at redhat dot com
0 siblings, 0 replies; 2+ messages in thread
From: sergiodj at redhat dot com @ 2015-04-01 20:12 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=18187
Sergio Durigan Junior <sergiodj at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sergiodj at redhat dot com
--- Comment #1 from Sergio Durigan Junior <sergiodj at redhat dot com> ---
I pushed a patch (a few hours after you opened this bug) that completely
rewrites the way GDB deals with corefile generation. Take a look at Bug 16092.
Now GDB does not blindly skips readonly segments; it respects the value of
/proc/PID/coredump_filter which can be modified to make it dump segments that
were not being dumped before. I think this can help in this situation.
--
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:[~2015-04-01 20:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-31 23:36 [Bug corefiles/18187] New: gdb needs to write first page of segment to core file, even for unmodified segments dje at google dot com
2015-04-01 20:12 ` [Bug corefiles/18187] " sergiodj 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).