* [patch] catch errors restoring breakpoints
@ 2003-02-04 7:17 Martin M. Hunt
0 siblings, 0 replies; only message in thread
From: Martin M. Hunt @ 2003-02-04 7:17 UTC (permalink / raw)
To: insight
[-- Attachment #1: Type: text/plain, Size: 270 bytes --]
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 <hunt@redhat.com>
* library/session.tcl (_recreate_bps): Catch errors.
[-- Attachment #2: p --]
[-- Type: text/x-patch, Size: 671 bytes --]
Index: library/session.tcl
===================================================================
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
# Create the breakpoint
- gdb_cmd $create
+ if {[catch {gdb_cmd $create} txt]} {
+ dbug W $txt
+ }
# Below we use `\$bpnum'. This means we don't have to figure out
# the number of the breakpoint when doing further manipulations.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-02-04 7:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-04 7:17 [patch] catch errors restoring breakpoints Martin M. Hunt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).