* Can't "catch exception" in gdb on OS X
@ 2016-03-05 5:24 Jerry
2016-03-05 8:30 ` Simon Wright
0 siblings, 1 reply; 4+ messages in thread
From: Jerry @ 2016-03-05 5:24 UTC (permalink / raw)
I'm on OS X 10.9.5 trying to debug a GNAT program. When I type
catch exception
when the program is in the debugger but paused at the automatically inserted breakpoint at the first line, I get this:
Cannot insert Ada exception catchpoints in this configuration.
gdb reports this:
GNU gdb (GDB) 7.7 for GNAT GPL 2014 (20140405)
.
.
.
This GDB was configured as "x86_64-apple-darwin12.5.0".
Also (curse the line wraps),
(gdb) show configuration
This GDB was configured as follows:
configure --host=x86_64-apple-darwin12.5.0 --target=x86_64-apple-darwin12.5.0
--with-auto-load-dir=:${prefix}/share/auto-load
--with-auto-load-safe-path=:${prefix}/share/auto-load
--with-expat
--with-gdb-datadir=/gnatmail/sandbox/gpl-2014/x86_64-darwin/gdb/pkg/share/gdb-7.7 (relocatable)
--with-jit-reader-dir=/gnatmail/sandbox/gpl-2014/x86_64-darwin/gdb/pkg/lib/gdb (relocatable)
--without-libunwind-ia64
--without-lzma
--with-python=/gnatmail/sandbox/gpl-2014/x86_64-darwin/gdb/pkg/share/gdb-7.7/python-2.7.3 (relocatable)
--with-separate-debug-dir=/usr/lib/debug
--without-zlib
--without-babeltrace
Ideas?
Jerry
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Can't "catch exception" in gdb on OS X
2016-03-05 5:24 Can't "catch exception" in gdb on OS X Jerry
@ 2016-03-05 8:30 ` Simon Wright
2016-03-08 8:50 ` Jerry
0 siblings, 1 reply; 4+ messages in thread
From: Simon Wright @ 2016-03-05 8:30 UTC (permalink / raw)
Jerry <lanceboyle@qwest.net> writes:
> I'm on OS X 10.9.5 trying to debug a GNAT program. When I type
>
> catch exception
>
> when the program is in the debugger but paused at the automatically
> inserted breakpoint at the first line, I get this:
>
> Cannot insert Ada exception catchpoints in this configuration.
I wrote about this at [1]; there's a GDB Bugzilla entry about it[2].
The simplest solution I've found is to invoke gdb with -readnow.
[1] http://forward-in-code.blogspot.co.uk/2012/01/catching-exceptions-in-gdb.html
[2] https://sourceware.org/bugzilla/show_bug.cgi?id=11385
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Can't "catch exception" in gdb on OS X
2016-03-05 8:30 ` Simon Wright
@ 2016-03-08 8:50 ` Jerry
2016-03-08 11:29 ` Simon Wright
0 siblings, 1 reply; 4+ messages in thread
From: Jerry @ 2016-03-08 8:50 UTC (permalink / raw)
On Saturday, March 5, 2016 at 1:30:44 AM UTC-7, Simon Wright wrote:
> Jerry writes:
>
> > I'm on OS X 10.9.5 trying to debug a GNAT program. When I type
> >
> > catch exception
> >
> > when the program is in the debugger but paused at the automatically
> > inserted breakpoint at the first line, I get this:
> >
> > Cannot insert Ada exception catchpoints in this configuration.
>
> I wrote about this at [1]; there's a GDB Bugzilla entry about it[2].
>
> The simplest solution I've found is to invoke gdb with -readnow.
>
> [1] http://forward-in-code.blogspot.co.uk/2012/01/catching-exceptions-in-gdb.html
> [2] https://sourceware.org/bugzilla/show_bug.cgi?id=11385
Thanks, Simon. Google didn't point me to your blog because I entered the current gdb error text and it looks like the text has changed since you wrote.
Your suggestions including using -readnow in the gdb call and first telling gdb to "break __gnat_debug_raise_exception" work on GNAT GPL 2015 but not GPL 2014 on my machine running OS X 10.9.5. I also have FSF gcc-4.9.1 installed but it isn't codesigned and I didn't bother with trying it. If this would be useful feedback I will do that (codesign, reboot).
For GPL 2015, behavior was the same whether or not I used -readnow. In both cases, I had to first "start" before having "catch exception" recognized.
Jerry
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Can't "catch exception" in gdb on OS X
2016-03-08 8:50 ` Jerry
@ 2016-03-08 11:29 ` Simon Wright
0 siblings, 0 replies; 4+ messages in thread
From: Simon Wright @ 2016-03-08 11:29 UTC (permalink / raw)
Jerry <lanceboyle@qwest.net> writes:
> On Saturday, March 5, 2016 at 1:30:44 AM UTC-7, Simon Wright wrote:
>> Jerry writes:
>>
>> > I'm on OS X 10.9.5 trying to debug a GNAT program. When I type
>> >
>> > catch exception
>> >
>> > when the program is in the debugger but paused at the automatically
>> > inserted breakpoint at the first line, I get this:
>> >
>> > Cannot insert Ada exception catchpoints in this configuration.
>>
>> I wrote about this at [1]; there's a GDB Bugzilla entry about it[2].
>>
>> The simplest solution I've found is to invoke gdb with -readnow.
>>
>> [1]
>> http://forward-in-code.blogspot.co.uk/2012/01/catching-exceptions-in-gdb.html
>> [2] https://sourceware.org/bugzilla/show_bug.cgi?id=11385
>
> Thanks, Simon. Google didn't point me to your blog because I entered
> the current gdb error text and it looks like the text has changed
> since you wrote.
>
> Your suggestions including using -readnow in the gdb call and first
> telling gdb to "break __gnat_debug_raise_exception" work on GNAT GPL
> 2015 but not GPL 2014 on my machine running OS X 10.9.5. I also have
> FSF gcc-4.9.1 installed but it isn't codesigned and I didn't bother
> with trying it. If this would be useful feedback I will do that
> (codesign, reboot).
>
> For GPL 2015, behavior was the same whether or not I used -readnow. In
> both cases, I had to first "start" before having "catch exception"
> recognized.
I'm running 10.11.3 (El Capitan), which requires -readnow (or maybe the
break?) for both GNAT GPL 2015 and FSF GCC 5.2.0. I certainly don't have
to 'start'!
I can't investigate for earlier OS releases, sorry.
I don't think codesigning makes any difference to whether 'catch
exception' is accepted.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-03-08 11:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-05 5:24 Can't "catch exception" in gdb on OS X Jerry
2016-03-05 8:30 ` Simon Wright
2016-03-08 8:50 ` Jerry
2016-03-08 11:29 ` Simon Wright
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox