From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3797 invoked by alias); 26 Mar 2004 17:27:45 -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 3785 invoked from network); 26 Mar 2004 17:27:43 -0000 Received: from unknown (HELO neon-gw.transmeta.com) (63.209.4.196) by sources.redhat.com with SMTP; 26 Mar 2004 17:27:43 -0000 Received: (from root@localhost) by neon-gw.transmeta.com (8.9.3/8.9.3) id JAA26814 for ; Fri, 26 Mar 2004 09:27:40 -0800 Received: from mailhost.transmeta.com(10.1.1.15) by neon-gw.transmeta.com via smap (V2.1) id xma026787; Fri, 26 Mar 04 09:27:33 -0800 Received: from claire.transmeta.com (claire.transmeta.com [10.10.25.31]) by deepthought.transmeta.com (8.11.6/8.11.6) with ESMTP id i2QHRax20762 for ; Fri, 26 Mar 2004 09:27:36 -0800 (PST) Received: (from dje@localhost) by claire.transmeta.com (8.11.6/8.11.6) id i2QHRZU29384; Fri, 26 Mar 2004 09:27:35 -0800 Date: Mon, 29 Mar 2004 15:10:00 -0000 Message-Id: <200403261727.i2QHRZU29384@claire.transmeta.com> From: Doug Evans To: gdb@sources.redhat.com Subject: commands on tbreak breakpoints, should they work? X-SW-Source: 2004-03/txt/msg00276.txt.bz2 gdb = 5.2.1 I'm unable to add commands to tbreak breakpoints because gdb first deletes the breakpoint and then it looks for any breakpoints with commands to run. The docs say "You can give any breakpoint (or watchpoint or catchpoint) a series of commands to execute when your program stops due to that breakpoint." Is this a gdb bug or doc bug? --- bash$ gcc -g hello.c bash$ gdb-5.2.1 ./a.out (gdb) tbreak main (gdb) commands echo foo\n end (gdb) run