[Libreoffice] getting debug symbols when running build unit tests under gdb?

Noel Grandin noelgrandin at gmail.com
Wed Dec 14 08:58:59 PST 2011

Thanks Markus, I'll try that in the morning.

Do you know of any trick for catching stack-overflow problems? The
trick I'm using is pretty painful.

On Wed, Dec 14, 2011 at 17:52, Markus Mohrhard
<markus.mohrhard at googlemail.com> wrote:
> Hello Noel,
> his is under Ubuntu Linux.
>> I'm trying to track down a stack overflow in my code, and I'm having some
>> trouble running the unit tests under GDB and getting debugging symbols.
>> I'm doing
>> then running the module build under /sc
>>   build
>> and then breaking the runaway process using
>>   kill -5
>> and then doing 'bt' in GDB
> I think you should enable symbols in sc by running make clean && make
> -sr debug=true in sc.
> Then normally
> EXPORT GDBCPPUNITTRACE="gdb --args" should open a gdb shell where you
> just type run and can debug the unit test like a normal program. It
> might be a bit tricky depending on which unit test you want to debug
> because this works only for the first one. So you might need to remove
> the second one from Module_sc.mk if you want to debug the other one.
> Markus
> _______________________________________________
> LibreOffice mailing list
> LibreOffice at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libreoffice

More information about the LibreOffice mailing list