Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


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
  EXPORT GDBCPPUNITTRACE="gdb --args"
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

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.