From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21386 invoked by alias); 10 Mar 2010 17:37:37 -0000 Received: (qmail 21376 invoked by uid 22791); 10 Mar 2010 17:37:36 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_SORBS_WEB,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout22.012.net.il (HELO mtaout22.012.net.il) (80.179.55.172) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 10 Mar 2010 17:37:31 +0000 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0KZ200A00U9P9V00@a-mtaout22.012.net.il> for gdb-patches@sourceware.org; Wed, 10 Mar 2010 19:37:18 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.126.34.234]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KZ2004NWUA5KLE0@a-mtaout22.012.net.il>; Wed, 10 Mar 2010 19:37:18 +0200 (IST) Date: Wed, 10 Mar 2010 17:37:00 -0000 From: Eli Zaretskii Subject: Re: [2/2] RFC: let "commands" affect multiple breakpoints In-reply-to: To: tromey@redhat.com Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83bpew2i3y.fsf@gnu.org> References: X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-03/txt/msg00391.txt.bz2 > From: Tom Tromey > Date: Tue, 09 Mar 2010 20:54:28 -0700 > > *** Changes since GDB 7.1 > > +* The `commands' command now accepts a range of breakpoints to modify. > + A plain `commands' following an `rbreak' will affect all the > + breakpoints set by `rbreak'. This is okay, but maybe it will need a slight modification, see below. > -@item commands @r{[}@var{bnum}@r{]} > +@item commands @r{[}@var{range}@dots{}@r{]} > @itemx @dots{} @var{command-list} @dots{} > @itemx end > -Specify a list of commands for breakpoint number @var{bnum}. The commands > +Specify a list of commands for the given breakpoints. The commands > themselves appear on the following lines. Type a line containing just > @code{end} to terminate the commands. You never say what is the valid syntax of RANGE. Do I understand correctly that RANGE could be "12-34"? Can it also be "1 2 3 4", i.e. a list of numbers? What about mixing those ("1-10 25 35")? Depending on the answers, the NEWS entry might need some clarification or maybe just an example. Thanks.