Apache OpenOffice uses both dmake and gnu-make build systems. We know
that is a PITA and the project will clean this historical mess up in the
future.

Enabling debug symbols is done by using a "debug=1" parameter in the
module of interest. For dmake modules you do
   build killobj ; build debug=1
in that module. For gnu-make modules you do
   make clean ; make debug=1
in that module.

The first command in each line makes sure that the object files are
removed so the source file gets recompiled.

Herbert

On 19.08.2013 13:52, Jie Zheng wrote:
> when you build something with gcc with -g option, gdb will find debugging
> symbols. So maybe soffice.bin has been optimized to some extent.
> 
> 
> 2013/8/19 ��仁瀚 <yohey03...@gmail.com>
> 
>> Hello everyone,
>>
>> Recent days I have tried to run AOO with GDB dor debugging. But
>> after I ran it(enter gdb ./soffice.bin), I got a message said no
>> debugging symbols found. And then I typed "list", I got "No symbol
>> table is loaded".
>>
>> Here is log:
>>
>> $ gdb ./soffice.bin
>> GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
>> Copyright (C) 2012 Free Software Foundation, Inc.
>> License GPLv3+: GNU GPL version 3 or later <
>> http://gnu.org/licenses/gpl.html
>>>
>> This is free software: you are free to change and redistribute it.
>> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
>> and "show warranty" for details.
>> This GDB was configured as "x86_64-linux-gnu".
>> For bug reporting instructions, please see:
>> <http://bugs.launchpad.net/gdb-linaro/>...
>> Reading symbols from /opt/openoffice4/program/soffice.bin...(no debugging
>> symbols found)...done.
>> (gdb) list
>> No symbol table is loaded.  Use the "file" command.
>>
>>
>> I have configured with --enable-symbols.
>> Here is my configure:
>>
>> $ ./configure \
>>       --with-dmake-url=
>> http://dmake.apache-extras.org.codespot.com/files/dmake-4.12.tar.bz2
>> \
>>       --with-epm-url=
>> http://www.msweet.org/files/project2/epm-3.7-source.tar.gz
>>                 \
>>
>>       --enable-symbols  \
>>       --disable-odk \
>>       --disable-binfilter
>>
>> It didn't show any error.
>>
>> And here is my build command:
>>
>> $ build debug=true dbg_build_only=true
>>
>> and I also tried
>>
>> build debug=true dbglevel=2
>>
>> or
>>
>> $ build debug=true dbg_build_only=true  dbglevel=2
>>
>>
>> No error showed but
>>
>> after I installed it and ran with gdb, I got the same result : no
>> debugging symbols founds.
>>
>> In fact, I am not very skillful in Linux system and AOO building system.
>>
>> Maybe I lost something important needed to be done.
>>
>> Thanks for your patience and help.
>>
>>
>> Regards,
>>
>>     Yohey.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org

Reply via email to