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]

Re: [PATCH] gdb.ada/catch_ex.exp, gdb.ada/mi_catch_ex.exp and unsupported catchpoints


On Wednesday 07 December 2011 15:14:11, Pedro Alves wrote:
> On Wednesday 07 December 2011 10:01:01, Joel Brobecker wrote:
> > > (gdb) catch exception
> > > Cannot insert catchpoints in this configuration.
> > 
> > We're going to have to talk to the guys who decided to build the Ada
> > runtime without debugging info. The normal way to build the runtime
> > is no debug info *except* for a few files. This is really doing a
> > disservice to the users!
> 
> This is plain gcc/gnat as shipped on Ubuntu 11.04.  It may be
> that the idea is that since this is not necessary for backtracing,
> it's not crucial, and then one is expected to install some -dev
> or -dbg package to be able to fully debug Ada?  But then again,
> I've installed all gnat related -dev and -dbg packagets I could
> find now, and I still get catchpoints unsupported.  What library
> is supposed to have these symbols?

Oh silly me.  I forgot that we default to prefix=/usr/local, and
then we end up not picking the /usr/debug debug dir by default.
Building with --prefix=/usr made catchpoints now work.  And I had
stumbled on this before when I hacked on Ada catchpoints a
while back, and just forgot about it.  The good
news is that I still get all passes, sync and async.  :-)

Now I don't know if I needed any extra package compared to what
I had already installed, or if I did, which . :-P  In any case, it's
clear the necessary symbols aren't in any library's minimal symbols.

-- 
Pedro Alves


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