From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19289 invoked by alias); 26 Jul 2002 19:01:31 -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 19282 invoked from network); 26 Jul 2002 19:01:31 -0000 Received: from unknown (HELO saturn.billgatliff.com) (209.251.101.200) by sources.redhat.com with SMTP; 26 Jul 2002 19:01:31 -0000 Received: by saturn.billgatliff.com (Postfix, from userid 500) id 9B54B4E018E; Fri, 26 Jul 2002 14:01:30 -0500 (CDT) Date: Fri, 26 Jul 2002 12:01:00 -0000 From: "William A. Gatliff" To: Joel Brobecker Cc: gdb@sources.redhat.com Subject: Re: "tbreak" and "commands" commands... Message-ID: <20020726140130.A15935@saturn.billgatliff.com> Reply-To: bgat@billgatliff.com References: <20020726185406.GG10000@gnat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020726185406.GG10000@gnat.com>; from brobecker@gnat.com on Fri, Jul 26, 2002 at 11:54:06AM -0700 X-SW-Source: 2002-07/txt/msg00286.txt.bz2 Joel: Does it work with "break" instead of "tbreak"? I've never tried it with tbreak, but "break" works in 5.1--- I use it a lot. b.g. On Fri, Jul 26, 2002 at 11:54:06AM -0700, Joel Brobecker wrote: > Hello, > > According to the documentation, we should be able to associate a list > of commands to execute when the inferior hits a temporary breakpoint. > It currently does not seem to be the case. Is there a limitation in this > area, or is this a regression (in which case I'll be happy to work on > this)? > > Here is a small copy of a simple session: > << > GNU gdb 2002-07-26-cvs > [snip] > This GDB was configured as "i686-pc-linux-gnu"... > (gdb) tbreak test.c:8 > Breakpoint 1 at 0x804854f: file test.c, line 8. > (gdb) command > Type commands for when breakpoint 1 is hit, one per line. > End with a line saying just "end". > >printf "+++ breakpoint hit\n" > >continue > >end > (gdb) run > Starting program: /nfs/paris/paris.a/brobecke/act/report/gdb/B726-014__cont_abbrev/test.bonn > main () at test.c:8 > 8 printf ("Hello world.\n"); > (gdb) > >> > > As you see, the inferior stopped at breakpoint 1, but the command list was > not executed... > > Thanks, > -- > Joel -- Bill Gatliff bgat@billgatliff.com