You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by aronsoyol <ar...@gmail.com> on 2015/01/21 03:44:00 UTC
Question about partial build with debug
Hi all
Hi I want to partial build a debuggable dll for sw module
First, I did a entire build on Windows with configure switches:
./configure \
--with-cl-home="/cygdrive/c/Program Files (x86)/Microsoft Visual Studio
9.0/VC" \
--with-midl-path="/cygdrive/c/Program Files (x86)/Microsoft
SDKs/Windows/v7.0A/Bin" \
--with-frame-home="/cygdrive/c/Program Files (x86)/Microsoft
SDKs/Windows/v7.0A" \
--with-asm-home="/cygdrive/c/Program Files (x86)/Microsoft Visual Studio
9.0/VC/Bin" \
--with-csc-path="/cygdrive/c/Windows/Microsoft.NET/Framework/v3.5" \
--with-ant-home=/cygdrive/E/lo/apache-ant-1.9.4 \
--with-jdk-home=/cygdrive/E/lo/jdk1.7.0_71 \
--with-nsis-path="/cygdrive/c/Program Files (x86)/NSIS" \
--without-junit \
--disable-directx \
--disable-atl \
--disable-activex \
--disable-nss-module \
--enable-category-b
Then I did
cd instsetoo_native
build --from sw --prepare
build debug=t --html --from sw
And copied new sw.dll into install directory then attached visual studio,
but vs could not stopped at any break point.
I don' t know where was wrong and how should I do.
Best regards.
--
Aron
Re: Question about partial build with debug
Posted by Ariel Constenla-Haile <ar...@apache.org>.
Hi Aron,
On Wed, Jan 21, 2015 at 11:44:00AM +0900, aronsoyol wrote:
> Hi all
>
> Hi I want to partial build a debuggable dll for sw module
>
> First, I did a entire build on Windows with configure switches:
>
> ./configure \
> --with-cl-home="/cygdrive/c/Program Files (x86)/Microsoft Visual Studio
> 9.0/VC" \
> --with-midl-path="/cygdrive/c/Program Files (x86)/Microsoft
> SDKs/Windows/v7.0A/Bin" \
> --with-frame-home="/cygdrive/c/Program Files (x86)/Microsoft
> SDKs/Windows/v7.0A" \
> --with-asm-home="/cygdrive/c/Program Files (x86)/Microsoft Visual Studio
> 9.0/VC/Bin" \
> --with-csc-path="/cygdrive/c/Windows/Microsoft.NET/Framework/v3.5" \
> --with-ant-home=/cygdrive/E/lo/apache-ant-1.9.4 \
> --with-jdk-home=/cygdrive/E/lo/jdk1.7.0_71 \
> --with-nsis-path="/cygdrive/c/Program Files (x86)/NSIS" \
> --without-junit \
> --disable-directx \
> --disable-atl \
> --disable-activex \
> --disable-nss-module \
> --enable-category-b
Add --disable-strip-solver and --with-package-format="installed"
--disable-strip-solver is needed because debugging symbols are stripped
when delivering from the module to the solver
--with-package-format="installed" will produce a ready-to-use folder in
main/instsetoo_native/<unxlngx6>/Apache_OpenOffice/installed/install/en-US/
Move that installation to another place closer to C:\ so that you don't
have to type all the path. Then rebuild the modules you need with
debugging symbols, and copy the libraries in the program folder of the
installation.
> Then I did
>
> cd instsetoo_native
> build --from sw --prepare
> build debug=t --html --from sw
>
> And copied new sw.dll into install directory then attached visual studio,
> but vs could not stopped at any break point.
> I don' t know where was wrong and how should I do.
Most likely that symbols are stripped. Build with package-format
installed; once finished, move the installation to the place where you
will used it; then, the easiest is to rebuild with debugging symbols
*only* the needed modules, inside the module, not in instsetoo_native
with build --from.
cd main/sw
make -srj3 clean
make -srj3 DEBUG=yes
If the module is converted to gbuild, like sw, copy the libraries from
the solver (main/solver/<420>/<unxlngx6>/workdir/LinkTarget/Library) to
<installtion>/program
If the module is an old dmake based module:
cd <module>
rm -rf <unxlngx6>
build debug=true dbglevel=3 && deliver
Then just copy the libraries from <module>/<unxlngx6>/lib|bin or from
the solver (main/solver/<420>/<unxlngx6>/bin|lib)
Regards
--
Ariel Constenla-Haile
La Plata, Argentina
RE: Question about partial build with debug
Posted by "Dennis E. Hamilton" <de...@acm.org>.
-- replying below to --
From: aronsoyol [mailto:aronsoyol@gmail.com]
Sent: Tuesday, January 20, 2015 19:50
To: dev@openoffice.apache.org; dennis.hamilton@acm.org
Subject: Re: Question about partial build with debug
>
> You probably need to build an .exe that uses that DLL. You need something
> that will call entry points in the DLL so you can debug into them. Do you
> already have something for that?
Are you saying soffice.exe or soffice.bin, I attached VS to soffice.bin, Do
you mean that I should rebuild soffice.exe or soffice.bin with debug=true
<orcmid>
Well, rebuilding soffice.exe with debug might certainly do it.
I guess I need to wonder why you are building a standalone sw.dll?
What is it you hope to learn? Why are you using a debugger on it?
If you want to inspect its operation, you need to have something that
binds to that shared library and uses functions it exposes.
Writing some sort of test or demonstration program would do that.
That is always my first thought. I should have asked what you were
up to first. Sorry.
</orcmid>
2015-01-21 12:21 GMT+09:00 Dennis E. Hamilton <de...@acm.org>:
> You probably need to build an .exe that uses that DLL. You need something
> that will call entry points in the DLL so you can debug into them. Do you
> already have something for that?
>
> You will need to somehow tie that to the sourcecode of the DLL and
> whatever debug information was provided when the files that create the .obj
> files it contains were compiled.
>
> You might be able to figure that out by finding the makefiles and such
> that get you just sw.dll in the generated build structure.
>
> - Dennis
>
> -----Original Message-----
> From: aronsoyol [mailto:aronsoyol@gmail.com]
> Sent: Tuesday, January 20, 2015 18:44
> To: dev@openoffice.apache.org
> Subject: Question about partial build with debug
>
> Hi all
>
> Hi I want to partial build a debuggable dll for sw module
>
> First, I did a entire build on Windows with configure switches:
>
> [ ... ]
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org
Re: Question about partial build with debug
Posted by aronsoyol <ar...@gmail.com>.
Thank you very much, I' ll try it.
2015-01-21 13:28 GMT+09:00 Ariel Constenla-Haile <ar...@apache.org>:
> On Wed, Jan 21, 2015 at 12:50:09PM +0900, aronsoyol wrote:
> > >
> > > You probably need to build an .exe that uses that DLL. You need
> something
> > > that will call entry points in the DLL so you can debug into them. Do
> you
> > > already have something for that?
> >
> > Are you saying soffice.exe or soffice.bin, I attached VS to soffice.bin,
> Do
> > you mean that I should rebuild soffice.exe or soffice.bin with debug=true
>
> You are right, you need to attach the debugger to soffice.bin, not
> soffice.exe, and there is no need to build them with debugging symbols,
> just the modules you want to debug (in case you want to debug them, they
> are built on main/desktop).
>
>
> Regards
> --
> Ariel Constenla-Haile
> La Plata, Argentina
>
--
Aron
Re: Question about partial build with debug
Posted by Ariel Constenla-Haile <ar...@apache.org>.
On Wed, Jan 21, 2015 at 12:50:09PM +0900, aronsoyol wrote:
> >
> > You probably need to build an .exe that uses that DLL. You need something
> > that will call entry points in the DLL so you can debug into them. Do you
> > already have something for that?
>
> Are you saying soffice.exe or soffice.bin, I attached VS to soffice.bin, Do
> you mean that I should rebuild soffice.exe or soffice.bin with debug=true
You are right, you need to attach the debugger to soffice.bin, not
soffice.exe, and there is no need to build them with debugging symbols,
just the modules you want to debug (in case you want to debug them, they
are built on main/desktop).
Regards
--
Ariel Constenla-Haile
La Plata, Argentina
Re: Question about partial build with debug
Posted by aronsoyol <ar...@gmail.com>.
>
> You probably need to build an .exe that uses that DLL. You need something
> that will call entry points in the DLL so you can debug into them. Do you
> already have something for that?
Are you saying soffice.exe or soffice.bin, I attached VS to soffice.bin, Do
you mean that I should rebuild soffice.exe or soffice.bin with debug=true
2015-01-21 12:21 GMT+09:00 Dennis E. Hamilton <de...@acm.org>:
> You probably need to build an .exe that uses that DLL. You need something
> that will call entry points in the DLL so you can debug into them. Do you
> already have something for that?
>
> You will need to somehow tie that to the sourcecode of the DLL and
> whatever debug information was provided when the files that create the .obj
> files it contains were compiled.
>
> You might be able to figure that out by finding the makefiles and such
> that get you just sw.dll in the generated build structure.
>
> - Dennis
>
> -----Original Message-----
> From: aronsoyol [mailto:aronsoyol@gmail.com]
> Sent: Tuesday, January 20, 2015 18:44
> To: dev@openoffice.apache.org
> Subject: Question about partial build with debug
>
> Hi all
>
> Hi I want to partial build a debuggable dll for sw module
>
> First, I did a entire build on Windows with configure switches:
>
> [ ... ]
>
> Then I did
>
> cd instsetoo_native
> build --from sw --prepare
> build debug=t --html --from sw
>
> And copied new sw.dll into install directory then attached visual studio,
> but vs could not stopped at any break point.
> I don' t know where was wrong and how should I do.
>
> Best regards.
>
> --
> Aron
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
> For additional commands, e-mail: dev-help@openoffice.apache.org
>
>
--
Aron
RE: Question about partial build with debug
Posted by "Dennis E. Hamilton" <de...@acm.org>.
You probably need to build an .exe that uses that DLL. You need something that will call entry points in the DLL so you can debug into them. Do you already have something for that?
You will need to somehow tie that to the sourcecode of the DLL and whatever debug information was provided when the files that create the .obj files it contains were compiled.
You might be able to figure that out by finding the makefiles and such that get you just sw.dll in the generated build structure.
- Dennis
-----Original Message-----
From: aronsoyol [mailto:aronsoyol@gmail.com]
Sent: Tuesday, January 20, 2015 18:44
To: dev@openoffice.apache.org
Subject: Question about partial build with debug
Hi all
Hi I want to partial build a debuggable dll for sw module
First, I did a entire build on Windows with configure switches:
[ ... ]
Then I did
cd instsetoo_native
build --from sw --prepare
build debug=t --html --from sw
And copied new sw.dll into install directory then attached visual studio,
but vs could not stopped at any break point.
I don' t know where was wrong and how should I do.
Best regards.
--
Aron
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org