From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18389 invoked by alias); 4 Feb 2003 07:17:35 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 18382 invoked from network); 4 Feb 2003 07:17:34 -0000 Received: from unknown (HELO mx1.redhat.com) (172.16.49.200) by 172.16.49.205 with SMTP; 4 Feb 2003 07:17:34 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h147HYf07741 for ; Tue, 4 Feb 2003 02:17:34 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h147HYa09602 for ; Tue, 4 Feb 2003 02:17:34 -0500 Received: from dragon (romulus-int.sfbay.redhat.com [172.16.27.46]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h147HYX13881 for ; Tue, 4 Feb 2003 02:17:34 -0500 Subject: [patch] catch errors restoring breakpoints From: "Martin M. Hunt" To: "insight@sources.redhat.com" Content-Type: multipart/mixed; boundary="=-Du0+Vpbntbm4kbZIQeVD" Date: Tue, 04 Feb 2003 07:17:00 -0000 Message-Id: <1044343059.2679.4.camel@Dragon> Mime-Version: 1.0 X-SW-Source: 2003-q1/txt/msg00070.txt.bz2 --=-Du0+Vpbntbm4kbZIQeVD Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-length: 270 In rare cases, session breakpoints cannot be restored because sources changed or symbols are not yet loaded. Instead of displaying a backtrace, just log the error. 2003-02-03 Martin M. Hunt * library/session.tcl (_recreate_bps): Catch errors. --=-Du0+Vpbntbm4kbZIQeVD Content-Disposition: attachment; filename=p Content-Transfer-Encoding: quoted-printable Content-Type: text/x-patch; name=p; charset=UTF-8 Content-length: 795 Index: library/session.tcl =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/src/src/gdb/gdbtk/library/session.tcl,v retrieving revision 1.13 diff -u -r1.13 session.tcl --- library/session.tcl 10 Oct 2002 19:39:28 -0000 1.13 +++ library/session.tcl 4 Feb 2003 07:15:24 -0000 @@ -122,7 +122,9 @@ lassign $spec create enabled condition commands =20 # Create the breakpoint - gdb_cmd $create + if {[catch {gdb_cmd $create} txt]} { + dbug W $txt + } =20 # Below we use `\$bpnum'. This means we don't have to figure out # the number of the breakpoint when doing further manipulations. --=-Du0+Vpbntbm4kbZIQeVD--