From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10504 invoked by alias); 9 Apr 2010 15:35:12 -0000 Received: (qmail 10495 invoked by uid 22791); 9 Apr 2010 15:35:11 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 09 Apr 2010 15:35:03 +0000 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o39FYXoc019960 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 9 Apr 2010 11:34:33 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o39FYWnA019277; Fri, 9 Apr 2010 11:34:32 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o39FYVO9021967; Fri, 9 Apr 2010 11:34:32 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id A8C4C379786; Fri, 9 Apr 2010 09:34:31 -0600 (MDT) From: Tom Tromey To: Joel Brobecker Cc: Pedro Alves , gdb-patches@sourceware.org, Phil Muldoon , Eli Zaretskii Subject: Re: [patch][python] Add breakpoint support. References: <4BB0B063.6000600@redhat.com> <4BBE4A34.3020301@redhat.com> <20100408214455.GM19194@adacore.com> <201004082321.01822.pedro@codesourcery.com> <20100408232547.GN19194@adacore.com> Reply-To: tromey@redhat.com Date: Fri, 09 Apr 2010 15:35:00 -0000 In-Reply-To: <20100408232547.GN19194@adacore.com> (Joel Brobecker's message of "Thu, 8 Apr 2010 16:25:47 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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-04/txt/msg00244.txt.bz2 >>>>> "Joel" == Joel Brobecker writes: Joel> I almost did implement things that way, and it's certainly better Joel> than nothing. Maybe I'm letting best be the enemy of good, but there Joel> are issues with a pure CLI script approach that a user cannot control. Joel> For instance, what if one of the breakpoints now fails? A CLI script Joel> would abort early, leaving some of the breakpoints not restored. Joel> If some of the breakpoints were in DSOs that only get loaded at runtime, Joel> should they be created as pending? I can't remember what the default Joel> is when from_tty is not set... I like the python approach because it Joel> allows us to provide a more configurable approach than a pure CLI script Joel> would give us. FWIW the existing "save breakpoints" command just writes out a script that can be "source"d. We just punted on all those problems -- definitely not ideal. Tom