CDT, DBG: debug C++ dll with VB60 executable [message #166934] |
Thu, 30 March 2006 07:05  |
Eclipse User |
|
|
|
Originally posted by: rene.nijboer.siemens.com
Hello,
Eclipse: Version: 3.1.2
CDT: 3.0.2
In Eclipse (CDT) I have created a DLL. The DLL compiles and can be debuged
within Eclipse using a testproject (C++).
I have also a VB60 executable that is using the c++ dll. When I run the
executable (without debugging) the DLL returns the correct values. But
when I want to debug the DLL using this VB60 executable a message box
pops-up with the following message:
Unable to set the temporary breakpoint in main.
Reason: Target request failed: No symbol table is loaded. Use the "file"
command...
Continue?
If I select the [Yes]: the program is running fine, but with debugging
functionality...
Additional info:
I have set the option -g in the debug option.
Part of the messages in the console when compiling/building.
Invoking: GCC C++ Compiler
g++ -O0 -g3 -g -Wall -c -fmessage-length=0 -oMain_C_Wrapper.o
../Main_C_Wrapper.cpp
What am I doing wrong?
Tanks in advance.
Rene
|
|
|
|
|
|
|
|
Re: CDT, DBG: debug C++ dll with VB60 executable [message #167993 is a reply to message #166934] |
Wed, 12 April 2006 15:33  |
Eclipse User |
|
|
|
Originally posted by: jancewicz.comcast.net
I had similar difficulties when trying to use Eclipse to debug a Java app
that called native C code in a DLL. I could not get the Eclipse C/C++
debugger to set the breakpoint in my C code in the DLL, even after the Java
JVM had loaded the DLL into its process space. I ended up having to use the
Insight debugger to debug my C DLL. This link explains how I did it:
http://www.kineteksystems.com/white-papers/mixedjavaandc.htm l
You might be able to do something similar by attaching the Insight debugger
to your VB process *after* it has loaded your DLL but *before* it calls the
C function or C++ method in your DLL that you want to debug.
Hope it helps,
Nick Jancewicz
"Rene Nijboer" <rene.nijboer@siemens.com> wrote in message
news:00c3ed519ea83664f4c98443cae3f6da$1@www.eclipse.org...
> Hello,
>
> Eclipse: Version: 3.1.2
> CDT: 3.0.2
>
> In Eclipse (CDT) I have created a DLL. The DLL compiles and can be debuged
> within Eclipse using a testproject (C++).
> I have also a VB60 executable that is using the c++ dll. When I run the
> executable (without debugging) the DLL returns the correct values. But
> when I want to debug the DLL using this VB60 executable a message box
> pops-up with the following message: Unable to set the temporary breakpoint
> in main.
> Reason: Target request failed: No symbol table is loaded. Use the "file"
> command...
> Continue?
>
> If I select the [Yes]: the program is running fine, but with debugging
> functionality...
> Additional info:
> I have set the option -g in the debug option.
>
> Part of the messages in the console when compiling/building.
> Invoking: GCC C++ Compiler
> g++ -O0 -g3 -g -Wall -c -fmessage-length=0 -oMain_C_Wrapper.o
> ./Main_C_Wrapper.cpp
>
> What am I doing wrong?
>
> Tanks in advance.
>
> Rene
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.05958 seconds