This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA/NEWS] Document condition at end of catch exception/assert commands


This is the news entry promised at:
http://www.sourceware.org/ml/gdb-patches/2012-02/msg00727.html

gdb/ChangeLog:

        * NEWS: Document the fact that one can provide a condition when
        creating an Ada exception catchpoint.

OK to commit?

Thanks,
-- 
Joel

---
 gdb/NEWS |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/gdb/NEWS b/gdb/NEWS
index 090a065..7a4812b 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -44,6 +44,16 @@
 * The command "info catch" has been removed.  It has been disabled
   since December 2007.
 
+* The "catch exception" and "catch assert" commands now accept
+  a condition at the end of the command, much like the "break"
+  command does. For instance:
+
+        (gdb) catch exception Constraint_Error if Barrier = True
+
+  Previously, it was possible to add a condition to such catchpoints,
+  but it had to be done as a second step, after the catchpoint had been
+  created, using the "condition" command.
+
 * New commands
 
   ** "catch load" and "catch unload" can be used to stop when a shared
-- 
1.7.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]