[Libreoffice] Couldn't debug fdo#30550 (WAS: Build failed in sfx2 in -3-3 branch)

Korrawit Pruegsanusak detective.conan.1412 at gmail.com
Mon Jun 20 09:52:31 PDT 2011

Hello Petr, Michael, *

Many thanks for your answer :) My build was success with --disable-systray
Anyway, may I ask some questions please?

On Fri, Jun 17, 2011 at 18:08, Petr Mladek <pmladek at suse.cz> wrote:
> This header should be provided by the module "libegg". Please, make sure
> that this module is built and delivered.

On Fri, Jun 17, 2011 at 19:40, Michael Meeks <michael.meeks at novell.com> wrote:
>        Do you have a libegg/ directory in clone/libs-extern/ ? Possibly your
> clone / download / unpack script failed mid-flow ?

How do I know that libegg module is built and delivered?
And yes, my clone/libs-extern/libegg does exists.

Just for a reminder: I was trying to fix fdo#30550: wordcount without
space counted incorrectly
Next, I was trying to use gdb debug by following [1], but it wasn't
success. This was my trying:

I ./autogen.sh with --enable-symbols[1], make, make dev-install, build
debug=true in sw[2], then run swriter
After attaching soffice.bin to gdb using
  gdb soffice.bin $LOPID[1]
libo writer was paused (which is normal, isn't it?)

Notice: there're many shouts from gdb at me after attached, like
  Reading symbol from /usr/lib/libk5crypto.so.3...(no debugging
symbols found)...done.
  Loaded symbols for /usr/lib/libk5crypto.so.3

So, if libo was paused, how could I select a word and click Tools > Word Count?
I've tried to set breakpoints in 3 functions named CountWords[3], but
it failed. The point is I can't click anything while it's paused.
If I typed 'continue' (while libo paused) in gdb, it released. (expected)
Then I select some text and click Tools > Word Count, but it didn't
pause or break (in any breakpoints), and I can't get libo paused

Did I walk through a right way? And sorry if any of my questions or
above procedure seem stupid.

[1] http://wiki.documentfoundation.org/Development/How_to_debug
[2] http://wiki.documentfoundation.org/Development/Native_Build#Partial_debug_build
[3] The three are: SwEditShell::CountWords, SwDoc::CountWords, and
SwTxtNode::CountWords, as found from (gdb) 'info fun CountWords'

Best Regards,
Korrawit Pruegsanusak

More information about the LibreOffice mailing list