summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Hunt <hunt@redhat.com>2003-02-04 07:15:49 +0000
committerMartin Hunt <hunt@redhat.com>2003-02-04 07:15:49 +0000
commit82f26dff315599e868517e25ad3db5cd257a5f81 (patch)
tree74da41182df0492fe4d57629e4b5827538e5504f
parent8f3f33da14c48171c0f38568edb4c47a10545188 (diff)
downloadgdb-82f26dff315599e868517e25ad3db5cd257a5f81.tar.gz
2003-02-03 Martin M. Hunt <hunt@redhat.com>
* library/session.tcl (_recreate_bps): Catch errors.
-rw-r--r--gdb/gdbtk/ChangeLog4
-rw-r--r--gdb/gdbtk/library/session.tcl4
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/gdbtk/ChangeLog b/gdb/gdbtk/ChangeLog
index 6db03d1a620..f9ea921c43b 100644
--- a/gdb/gdbtk/ChangeLog
+++ b/gdb/gdbtk/ChangeLog
@@ -1,5 +1,9 @@
2003-02-03 Martin M. Hunt <hunt@redhat.com>
+ * library/session.tcl (_recreate_bps): Catch errors.
+
+2003-02-03 Martin M. Hunt <hunt@redhat.com>
+
* library/interface.tcl (gdbtk_locate_main): Rewrite for efficiency.
No longer uses gdb_search. Caches result.
(initialize_gdbtk): Initialize gdb_locate_main cache.
diff --git a/gdb/gdbtk/library/session.tcl b/gdb/gdbtk/library/session.tcl
index 6653760787f..158ffd245be 100644
--- a/gdb/gdbtk/library/session.tcl
+++ b/gdb/gdbtk/library/session.tcl
@@ -122,7 +122,9 @@ namespace eval Session {
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.