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

2011-06-24 Thread Korrawit Pruegsanusak
Hello Petr, *
Thanks again and again!

Best Regards,
--
Korrawit Pruegsanusak
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


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

2011-06-22 Thread Petr Mladek
Korrawit Pruegsanusak píše v St 22. 06. 2011 v 20:26 +0700:
> Hello Petr, all,
> 
> On Wed, Jun 22, 2011 at 02:19, Petr Mladek  wrote:
> > Korrawit Pruegsanusak píše v Po 20. 06. 2011 v 23:52 +0700:
> >> How do I know that libegg module is built and delivered?
> >
> > You should see solver/330/unxlng?6.pro/inc/eggtray/eggtrayicon.h
> > The delivered files are described in libegg/prj/d.lst. They are
> > delivered from libegg/ to solver/
> >
> >> And yes, my clone/libs-extern/libegg does exists.
> >
> > if it is built, you will find there the libegg/unxlng* subdirectory
> 
> Thanks again :-)
> Indeed, my libegg module didn't build. There're no
> solver/.../eggtray/... nor libegg/unxlng*
> But how could this happen? (to prevent it happen again in future ...)

It is built only when the systray stuff is enabled. There must be listed
SYSTRAY_GTK in the BUILD_TYPE variable. The variable is set by the
profile  Linux*Env.Set.sh. The profile is generated by the top level
configure, ...

Note that this build dependency is defined in sfx2/prj/build.lst, see
the SYSTRAY_GTK:libegg on the first line.


Best Regards,
Petr

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


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

2011-06-22 Thread Korrawit Pruegsanusak
Hello Petr, all,

On Wed, Jun 22, 2011 at 02:19, Petr Mladek  wrote:
> Korrawit Pruegsanusak píše v Po 20. 06. 2011 v 23:52 +0700:
>> How do I know that libegg module is built and delivered?
>
> You should see solver/330/unxlng?6.pro/inc/eggtray/eggtrayicon.h
> The delivered files are described in libegg/prj/d.lst. They are
> delivered from libegg/ to solver/
>
>> And yes, my clone/libs-extern/libegg does exists.
>
> if it is built, you will find there the libegg/unxlng* subdirectory

Thanks again :-)
Indeed, my libegg module didn't build. There're no
solver/.../eggtray/... nor libegg/unxlng*
But how could this happen? (to prevent it happen again in future ...)

Best Regards,
--
Korrawit Pruegsanusak
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


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

2011-06-21 Thread Petr Mladek
Korrawit Pruegsanusak píše v Po 20. 06. 2011 v 23:52 +0700:
> Hello Petr, Michael, *
> How do I know that libegg module is built and delivered?

You should see solver/330/unxlng?6.pro/inc/eggtray/eggtrayicon.h
The delivered files are described in libegg/prj/d.lst. They are
delivered from libegg/ to solver/

> And yes, my clone/libs-extern/libegg does exists.

if it is built, you will find there the libegg/unxlng* subdirectory

> 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?)

Yes, it is normal. You need to write "continue" in gdb to make the
application runnig again.

> 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
> etc.

It is normal. You would need to install debug packages for these system
libraries. Well. you do not need them, if you do not want to trace the
code in this libraries. It should not be needed.

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

Do not worry. You are on the right way :-)


Best Regards,
Petr

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


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

2011-06-21 Thread Korrawit Pruegsanusak
Hello Caolán, all,

On Tue, Jun 21, 2011 at 15:24, Caolán McNamara  wrote:
> If you were setting breakpoints by symbolname, then set breakpoints by
> sourcefile:linenumber instead, that's a lot more reliable.

It works! Many thanks for your answer.
Best Regards,
--
Korrawit Pruegsanusak
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


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

2011-06-21 Thread Caolán McNamara
On Mon, 2011-06-20 at 23:52 +0700, Korrawit Pruegsanusak wrote:
> ...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?)

Yes, when you attach like that gdb stops the app, type cont to get it to
continue.

> 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
> etc.

Those are ok, just telling you that libk5crypto.so.3 doesn't have any
symbols in it, you don't need/want those.

> 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.

If you were setting breakpoints by symbolname, then set breakpoints by
sourcefile:linenumber instead, that's a lot more reliable.

C.

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice