Re: [darktable-dev] Debugging of darktable.
Am Montag, 4. Dezember 2017, 22:38:31 CET schrieb Jørn Villesen Christensen: > Hi Roman, > > Thank you for your quick answer :-) > > On 2017-12-04 22:34, Roman Lebedev wrote: > > On Tue, Dec 5, 2017 at 12:28 AM, Jørn Villesen Christensen > > > >wrote: > >> I have been trying to debug darktable (with gdb) but without any luck. > > > > It's not designed to be runnable without installation. > > Ok. Is there then something I am missing or doing wrong since gdb cannot > debug into other files than main.c? Is there a special trick? There shouldn't be. What does gdb show you for other files? Maybe check if the .so are stripped. This will tell you: file /opt/darktable/lib/darktable/libdarktable.so Apart from that there is no magic involved, it always just worked for me. > ~Jørn Tobias signature.asc Description: This is a digitally signed message part.
Re: [darktable-dev] Debugging of darktable.
Hi Roman, Thank you for your quick answer :-) On 2017-12-04 22:34, Roman Lebedev wrote: On Tue, Dec 5, 2017 at 12:28 AM, Jørn Villesen Christensenwrote: I have been trying to debug darktable (with gdb) but without any luck. It's not designed to be runnable without installation. Ok. Is there then something I am missing or doing wrong since gdb cannot debug into other files than main.c? Is there a special trick? ~Jørn ___ darktable developer mailing list to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org
Re: [darktable-dev] Debugging of darktable.
On Tue, Dec 5, 2017 at 12:28 AM, Jørn Villesen Christensenwrote: > Hi there, > > I have been trying to debug darktable (with gdb) but without any luck. > My main problem of running darktable from the build directory is that it > will not load any modules. I have tried to play with --datadir, --moduledir, > and symlinks, but without any luck. I can get the UI up 'n' running - but no > modules are loaded. It's not designed to be runnable without installation. You may want to $ sudo mkdir -p /opt/darktable $ sudo chown youruser:yourgroup -R /opt/darktable And now when you do ./build.sh --install it will end up in there. (Of course, you can pick any other directory, but then you need to pass it e.g. via --prefix to build.sh) > Alternatively I have tried to install darktable in a temporary directory > next to the build dir, but that fails as well. It launches well, but then > gdb fails to debug any other files than main.c and I suspect it is due to > the changed file structure. > > So... is it possible for any of you to sketch up how you debug darktable? > > BR > Jørn Christensen Roman. > ___ > darktable developer mailing list > to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org > ___ darktable developer mailing list to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org
[darktable-dev] Debugging of darktable.
Hi there, I have been trying to debug darktable (with gdb) but without any luck. My main problem of running darktable from the build directory is that it will not load any modules. I have tried to play with --datadir, --moduledir, and symlinks, but without any luck. I can get the UI up 'n' running - but no modules are loaded. Alternatively I have tried to install darktable in a temporary directory next to the build dir, but that fails as well. It launches well, but then gdb fails to debug any other files than main.c and I suspect it is due to the changed file structure. So... is it possible for any of you to sketch up how you debug darktable? BR Jørn Christensen ___ darktable developer mailing list to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org