From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5921 invoked by alias); 18 Aug 2003 13:11:08 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 5891 invoked from network); 18 Aug 2003 13:11:07 -0000 Received: from unknown (HELO maxipes.logix.cz) (81.0.234.97) by sources.redhat.com with SMTP; 18 Aug 2003 13:11:07 -0000 Received: from suse.cz (styx.suse.cz [213.210.157.162]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "Michal Ludvig", Issuer "Personal Freemail RSA 2000.8.30" (verified OK)) by maxipes.logix.cz (Postfix) with ESMTP id 2861A299C6; Mon, 18 Aug 2003 15:11:06 +0200 (CEST) Message-ID: <3F40D067.6030205@suse.cz> Date: Mon, 18 Aug 2003 13:11:00 -0000 From: Michal Ludvig Organization: SuSE CR, s.r.o. User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.5b) Gecko/20030813 X-Accept-Language: cs, cz, en MIME-Version: 1.0 To: Daniel Jacobowitz Cc: GDB Patches , Mark Kettenis Subject: Re: RFA: Actual support for tracing forks on GNU/Linux References: <20030618232942.GA982@nevyn.them.org> <20030628163444.GB9716@nevyn.them.org> <20030709215713.GA25331@nevyn.them.org> <20030724184849.GC1842@nevyn.them.org> <200308101611.h7AGBfnh058626@elgar.kettenis.dyndns.org> <20030817182245.GA24800@nevyn.them.org> <3F4097E1.6000706@suse.cz> <20030818125943.GA20472@nevyn.them.org> In-Reply-To: <20030818125943.GA20472@nevyn.them.org> Content-Type: multipart/mixed; boundary="------------070005010303060308080803" X-SW-Source: 2003-08/txt/msg00293.txt.bz2 This is a multi-part message in MIME format. --------------070005010303060308080803 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 982 Daniel Jacobowitz told me that: > On Mon, Aug 18, 2003 at 11:09:53AM +0200, Michal Ludvig wrote: >>Index: x86-64-linux-nat.c >>=================================================================== >>RCS file: /cvs/src/src/gdb/x86-64-linux-nat.c,v >>retrieving revision 1.23.6.2 >>diff -u -p -r1.23.6.2 x86-64-linux-nat.c >>--- x86-64-linux-nat.c 17 Jul 2003 12:51:55 -0000 1.23.6.2 >>+++ x86-64-linux-nat.c 18 Aug 2003 09:05:51 -0000 >>@@ -347,3 +347,9 @@ ps_get_thread_area (const struct ps_proc >> return PS_ERR; /* ptrace failed. */ >> } >> >>+void >>+child_post_startup_inferior (ptid_t ptid) >>+{ >>+ i386_cleanup_dregs (); >>+ linux_child_post_startup_inferior (ptid); >>+} >> >>Right? OK to apply? > > Along with defining LINUX_CHILD_POST_STARTUP_INFERIOR, I assume? Yes, > this is OK. Sorry about breaking amd64. Thanks, committed the attached. Michal Ludvig -- * SuSE CR, s.r.o * mludvig@suse.cz * (+420) 296.545.373 * http://www.suse.cz --------------070005010303060308080803 Content-Type: text/plain; name="cpsi-2.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="cpsi-2.diff" Content-length: 2145 Index: ChangeLog =================================================================== RCS file: /cvs/src/src/gdb/ChangeLog,v retrieving revision 1.4439.2.107 diff -u -p -r1.4439.2.107 ChangeLog --- ChangeLog 17 Aug 2003 18:53:12 -0000 1.4439.2.107 +++ ChangeLog 18 Aug 2003 13:08:44 -0000 @@ -1,3 +1,10 @@ +2003-08-18 Michal Ludvig + + * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): + Define. + * i386-linux-nat.c: Include "linux-nat.h". + (child_post_startup_inferior): New function. + 2003-08-17 Daniel Jacobowitz * lin-lwp.c (child_wait): Call linux_record_stopped_pid. Index: x86-64-linux-nat.c =================================================================== RCS file: /cvs/src/src/gdb/x86-64-linux-nat.c,v retrieving revision 1.23.6.2 diff -u -p -r1.23.6.2 x86-64-linux-nat.c --- x86-64-linux-nat.c 17 Jul 2003 12:51:55 -0000 1.23.6.2 +++ x86-64-linux-nat.c 18 Aug 2003 13:08:44 -0000 @@ -25,6 +25,7 @@ #include "inferior.h" #include "gdbcore.h" #include "regcache.h" +#include "linux-nat.h" #include "gdb_assert.h" #include "gdb_string.h" @@ -347,3 +348,9 @@ ps_get_thread_area (const struct ps_proc return PS_ERR; /* ptrace failed. */ } +void +child_post_startup_inferior (ptid_t ptid) +{ + i386_cleanup_dregs (); + linux_child_post_startup_inferior (ptid); +} Index: config/i386/nm-x86-64linux.h =================================================================== RCS file: /cvs/src/src/gdb/config/i386/nm-x86-64linux.h,v retrieving revision 1.3 diff -u -p -r1.3 nm-x86-64linux.h --- config/i386/nm-x86-64linux.h 19 Jun 2003 15:04:58 -0000 1.3 +++ config/i386/nm-x86-64linux.h 18 Aug 2003 13:08:44 -0000 @@ -61,4 +61,9 @@ extern unsigned long x86_64_linux_dr_get /* Override copies of {fetch,store}_inferior_registers in `infptrace.c'. */ #define FETCH_INFERIOR_REGISTERS +/* `linux-nat.c' and `i386-nat.c' have their own versions of + child_post_startup_inferior. Define this to use the copy in + `x86-86-linux-nat.c' instead, which calls both. */ +#define LINUX_CHILD_POST_STARTUP_INFERIOR + #endif /* NM_X86_64_LINUX_H */ --------------070005010303060308080803--