aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.ada/info_exc.exp
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@adacore.com>2013-11-15 21:46:34 +0400
committerJoel Brobecker <brobecker@adacore.com>2013-11-16 06:45:57 +0400
commitee4a1c63da74e471433dc6773108eceadef0315d (patch)
tree6debece441213b8eacc824a0e7000176a3b77b59 /gdb/testsuite/gdb.ada/info_exc.exp
parent75468c93c14e9f14dd9020712538c5303a455876 (diff)
downloadfsf-binutils-gdb-ee4a1c63da74e471433dc6773108eceadef0315d.zip
fsf-binutils-gdb-ee4a1c63da74e471433dc6773108eceadef0315d.tar.gz
fsf-binutils-gdb-ee4a1c63da74e471433dc6773108eceadef0315d.tar.bz2
gdb.ada/info_exc.exp,mi_exc_info.exp: Use more unique exception name.
In the case where the GNAT runtime was built with full debugging info, several of the exceptions defined there might have a name contain the word "global". To make this less likely, this patch renames the exception name, replacing "Global" by "Global_GDB". It still keeps the exeption name relatively short, while it is unlikely that the GNAT runtime has an exception whose name explicitly mentions GDB, and even less likely that it contains "Global_GDB". gdb/testsuite/ChangeLog: * info_exc/const.ads (Aint_Global_GDB_E): Renames Aint_Global_E. * info_exc/foo.adb: Adjust to new exception name. * info_exc.exp: Adjust after exception renaming in const.ads. Update "info exception global" test to test "info exceptions global_gdb" instead. * mi_exc_info/const.ads (Aint_Global_GDB_E): Renames Aint_Global_E. * mi_exc_info/foo.adb (Adjust to new exception name. * mi_exc_info.exp: Adjust after exception renaming in const.ads. Update "-info-ada-exceptions global" test to test "-info-ada-exceptions global_gdb" instead.
Diffstat (limited to 'gdb/testsuite/gdb.ada/info_exc.exp')
-rw-r--r--gdb/testsuite/gdb.ada/info_exc.exp10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/testsuite/gdb.ada/info_exc.exp b/gdb/testsuite/gdb.ada/info_exc.exp
index 9210029..087ae32 100644
--- a/gdb/testsuite/gdb.ada/info_exc.exp
+++ b/gdb/testsuite/gdb.ada/info_exc.exp
@@ -46,19 +46,19 @@ gdb_test "info exceptions" \
"storage_error: $hex" \
"tasking_error: $hex" \
".*" \
- "const.aint_global_e: $hex" \
+ "const.aint_global_gdb_e: $hex" \
".*"]
gdb_test "info exceptions task" \
[multi_line "All Ada exceptions matching regular expression \"task\":" \
"tasking_error: $hex"]
-gdb_test "info exceptions global" \
- [multi_line "All Ada exceptions matching regular expression \"global\":" \
- "const.aint_global_e: $hex"]
+gdb_test "info exceptions global_gdb" \
+ [multi_line "All Ada exceptions matching regular expression \"global_gdb\":" \
+ "const.aint_global_gdb_e: $hex"]
gdb_test "info exceptions const.aint" \
[multi_line "All Ada exceptions matching regular expression \"const\\.aint\":" \
"constraint_error: $hex" \
- "const.aint_global_e: $hex"]
+ "const.aint_global_gdb_e: $hex"]