comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: GDB - El Capitan
Date: Fri, 16 Oct 2015 18:33:39 +0100
Date: 2015-10-16T18:33:39+01:00	[thread overview]
Message-ID: <ly37xawwek.fsf@pushface.org> (raw)

Has anyone managed to get the AdaCore GDB to catch exceptions on El
Capitan?

The problem I reported back in 2011 at [1] is still there. The 'p
__gnat_debug_raise_exception' trick no longer works; the '-readnow'
trick at least lets you say 'catch exception', but if you try to catch a
specific exception it then reports

   (gdb) catch exception constraint_error
   warning: failed to reevaluate internal exception condition for
   catchpoint 0: A syntax error in expression, near `e) = long_integer
   (&standard.constraint_error)'.  Catchpoint 1: `constraint_error' Ada
   exception

and stops on all exceptions (I think it actually gets hung up, so 'c'
ends up at the same place).

At least this time it fails in the same way with GNAT GDB 2015, so we
*may* get a hint from AdaCore.

[1] https://sourceware.org/bugzilla/show_bug.cgi?id=11385

Also, it looks as though the Command Line Utilities don't include
Apple's gdb .. does anyone know whether Xcode does?

             reply	other threads:[~2015-10-16 17:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-16 17:33 Simon Wright [this message]
2015-10-17  7:38 ` GDB - El Capitan Simon Wright
2015-10-17 17:42   ` Jeffrey R. Carter
2015-10-17 20:14     ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox