From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25524 invoked by alias); 10 Jun 2002 16:25:36 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 25484 invoked from network); 10 Jun 2002 16:25:33 -0000 Received: from unknown (HELO gash2.peakpeak.com) (207.174.178.17) by sources.redhat.com with SMTP; 10 Jun 2002 16:25:33 -0000 Received: from creche.cygnus.com (ta0205.peakpeak.com [204.144.244.205]) by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id KAA17538; Mon, 10 Jun 2002 10:25:24 -0600 Received: (from tromey@localhost) by creche.cygnus.com (8.9.3/8.9.3) id KAA10685; Mon, 10 Jun 2002 10:38:25 -0600 To: phi Cc: Robin Rowe , gdb@sources.redhat.com Subject: Re: Just-in-time debugging on Linux References: <3D0312BB.7080701@il.ibm.com> <001a01c20f93$bd784460$0301a8c0@rowboat> <3D0321A5.90FC7EDC@hpfrcu81.france.hp.com> From: Tom Tromey Reply-To: tromey@redhat.com X-Attribution: Tom X-Zippy: Did I do an INCORRECT THING?? Date: Mon, 10 Jun 2002 09:25:00 -0000 In-Reply-To: phi's message of "Sun, 09 Jun 2002 11:36:37 +0200" Message-ID: <878z5nt7gf.fsf@creche.redhat.com> X-SW-Source: 2002-06/txt/msg00082.txt.bz2 >>>>> "phi" == phi writes: phi> Then wrap them up in a script phi> rename prog xyz into xyz.ori this doesn't modify the prog? phi> then implement the script xyz that does phi> xyz:: phi> #! your shell phi> gdb xyz.ori $@ This doesn't really work. One problem is that the inferior won't start running automatically. The other problem is that I/O redirections get hosed (I think). I do think this would be a useful feature for gdb. I've wanted it for a number of years now, but haven't had the time to implement it. Incidentally your script is missing a `--args'. Tom