public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
* [Bug gdb/14766] New: vfork child exit with "set follow-fork-mode child" broken @ 2012-10-25 15:17 palves at redhat dot com 2012-10-25 15:18 ` [Bug gdb/14766] " palves at redhat dot com ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: palves at redhat dot com @ 2012-10-25 15:17 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=14766 Bug #: 14766 Summary: vfork child exit with "set follow-fork-mode child" broken Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: gdb AssignedTo: unassigned@sourceware.org ReportedBy: palves@redhat.com Classification: Unclassified #include <stdio.h> #include <unistd.h> int main () { int pid; pid = vfork (); if (pid == 0) { printf ("I'm the child!\n"); _exit (0); } else { printf ("I'm the proud parent of child #%d!\n", pid); } return 0; } $ ./gdb ./testsuite/gdb.base/foll-vfork-exit -ex "set follow-fork-mode child" GNU gdb (GDB) 7.5.50.20121008-cvs ... (gdb) r Starting program: /home/pedro/gdb/mygit/build/gdb/testsuite/gdb.base/foll-vfork-exit [New process 4673] I'm the child! I'm the proud parent of child #4673! Couldn't get registers: No such process. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Couldn't get registers: No such process. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Couldn't get registers: No such process. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (gdb) -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug gdb/14766] vfork child exit with "set follow-fork-mode child" broken 2012-10-25 15:17 [Bug gdb/14766] New: vfork child exit with "set follow-fork-mode child" broken palves at redhat dot com @ 2012-10-25 15:18 ` palves at redhat dot com 2012-10-25 15:19 ` palves at redhat dot com ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: palves at redhat dot com @ 2012-10-25 15:18 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=14766 Pedro Alves <palves at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED AssignedTo|unassigned at sourceware |palves at redhat dot com |dot org | -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug gdb/14766] vfork child exit with "set follow-fork-mode child" broken 2012-10-25 15:17 [Bug gdb/14766] New: vfork child exit with "set follow-fork-mode child" broken palves at redhat dot com 2012-10-25 15:18 ` [Bug gdb/14766] " palves at redhat dot com @ 2012-10-25 15:19 ` palves at redhat dot com 2012-10-25 17:58 ` palves at redhat dot com ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: palves at redhat dot com @ 2012-10-25 15:19 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=14766 --- Comment #1 from Pedro Alves <palves at redhat dot com> 2012-10-25 15:19:37 UTC --- GDB is trying to read the registers of the child that just exited. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug gdb/14766] vfork child exit with "set follow-fork-mode child" broken 2012-10-25 15:17 [Bug gdb/14766] New: vfork child exit with "set follow-fork-mode child" broken palves at redhat dot com 2012-10-25 15:18 ` [Bug gdb/14766] " palves at redhat dot com 2012-10-25 15:19 ` palves at redhat dot com @ 2012-10-25 17:58 ` palves at redhat dot com 2012-11-02 18:13 ` cvs-commit at gcc dot gnu.org 2012-11-05 16:39 ` palves at redhat dot com 4 siblings, 0 replies; 6+ messages in thread From: palves at redhat dot com @ 2012-10-25 17:58 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=14766 --- Comment #2 from Pedro Alves <palves at redhat dot com> 2012-10-25 17:58:34 UTC --- Test and fix at: http://sourceware.org/ml/gdb-patches/2012-10/msg00504.html -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug gdb/14766] vfork child exit with "set follow-fork-mode child" broken 2012-10-25 15:17 [Bug gdb/14766] New: vfork child exit with "set follow-fork-mode child" broken palves at redhat dot com ` (2 preceding siblings ...) 2012-10-25 17:58 ` palves at redhat dot com @ 2012-11-02 18:13 ` cvs-commit at gcc dot gnu.org 2012-11-05 16:39 ` palves at redhat dot com 4 siblings, 0 replies; 6+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2012-11-02 18:13 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=14766 --- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2012-11-02 18:13:49 UTC --- CVSROOT: /cvs/src Module name: src Changes by: palves@sourceware.org 2012-11-02 18:13:38 Modified files: gdb : ChangeLog infrun.c gdb/testsuite : ChangeLog gdb/testsuite/gdb.base: foll-vfork.exp Log message: gdb/ 2012-11-02 Pedro Alves <palves@redhat.com> PR gdb/14766 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to null_ptid before handling a vfork child exec or exit. Switch to the event ptid afterwards. gdb/testsuite/ 2012-11-02 Pedro Alves <palves@redhat.com> PR gdb/14766 * gdb.base/foll-vfork.exp (vfork_child_follow_to_exit): Remove setup_kfail. (tcatch_vfork_then_child_follow_exit): No longer expect "Couldn't get registers". Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.14776&r2=1.14777 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/infrun.c.diff?cvsroot=src&r1=1.562&r2=1.563 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3436&r2=1.3437 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/foll-vfork.exp.diff?cvsroot=src&r1=1.25&r2=1.26 -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug gdb/14766] vfork child exit with "set follow-fork-mode child" broken 2012-10-25 15:17 [Bug gdb/14766] New: vfork child exit with "set follow-fork-mode child" broken palves at redhat dot com ` (3 preceding siblings ...) 2012-11-02 18:13 ` cvs-commit at gcc dot gnu.org @ 2012-11-05 16:39 ` palves at redhat dot com 4 siblings, 0 replies; 6+ messages in thread From: palves at redhat dot com @ 2012-11-05 16:39 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=14766 Pedro Alves <palves at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #4 from Pedro Alves <palves at redhat dot com> 2012-11-05 16:39:14 UTC --- Patch checked in. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-11-05 16:39 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-10-25 15:17 [Bug gdb/14766] New: vfork child exit with "set follow-fork-mode child" broken palves at redhat dot com 2012-10-25 15:18 ` [Bug gdb/14766] " palves at redhat dot com 2012-10-25 15:19 ` palves at redhat dot com 2012-10-25 17:58 ` palves at redhat dot com 2012-11-02 18:13 ` cvs-commit at gcc dot gnu.org 2012-11-05 16:39 ` palves 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).