[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gud and shared objects
From: |
karsten . ahnert |
Subject: |
Re: gud and shared objects |
Date: |
Thu, 27 Dec 2012 11:53:59 -0800 (PST) |
User-agent: |
G2/1.0 |
Am Donnerstag, 27. Dezember 2012 04:54:17 UTC+1 schrieb Eli Zaretskii:
> > Date: Wed, 26 Dec 2012 21:53:01 +0100
>
> > From: Karsten Ahnert <karsten.ahnert@googlemail.com>
>
> >
>
> > I have a problem with debugging C++ with emacs and gdb. I can set
>
> > breakpoints in functions defined in shared objects by simply adding them
>
> > manually via
>
> >
>
> > b file_in_so.cpp:23
>
> >
>
> > But if I open file_in_so.cpp in an emacs window I can not use the
>
> > graphical debugging facilities. I guess, that emacs does not yet know
>
> > that this file belongs to the sources of the executable. Files belonging
>
> > not to the shared object are already usable for graphical debugging.
>
> > Files from the shared object are also usable if a manual breakpoint or
>
> > an uncaught exception are hit within the shared object.
>
> >
>
> > Is there a command telling emacs to reload the current list of all
>
> > sources, even the ones defined in shared objects?
>
>
>
> This is a GDB issue, not an Emacs issue. Try using the GDB command
>
> "set auto-solib add on".
That does also not work. I can see that the shared object has already been
loaded by gdb but the source files are not correctly shown in emacs. Maybe this
is a path issue?