Bug 68934 - Debug into dll doesn't work.
Summary: Debug into dll doesn't work.
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0.1   Edit
Assignee: cdt-debug-inbox@eclipse.org CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-29 17:30 EDT by Tanya Wolff CLA
Modified: 2004-07-02 16:38 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tanya Wolff CLA 2004-06-29 17:30:45 EDT
I am trying to debug a cygwin executable which has a function in a dll project.
I can debug the exec, but can't get into the dll code.
Parsers for both projects are CygwinPEparser.
I've also added to the debug configuration/source tab the source 
location .../ProjB. When I tried to add the directory containing the shared 
library to the Cygin GDB Debugger options/Shared Libraries tab, it gets 
forgotten, or erased when I apply and switch tabs and come back.
When I start debugging, the error dialog entitled "Errors Running Operations" 
appears with message:
Launching (Error: Faile Launching CDI Debugger)and I can't continue.

Here's the setup from Sean. 
If you want to test a simple DLL, create two projects, ProjA (executable) and 
ProjB (DLL). In ProjB add a *file* (classes can be done but you have to export 
an interface and that is probably a bit advanced for the basic test case) 
called hello.cpp and put the following code in it:

#include <iostream>

void hello() {
	using namespace std;
	cout << "Hello World!\n";
}  

Set the project's linker settigns to build a shared library (check shared and 
ignore the other settigns for now).

In ProjA, create a main.cpp file with the following contents:

extern void hello();
int main () {
	hello ();
	return (0);
}

In A's settings, set the linker library search path to ../../ProjB/Debug and 
its libraries to ProjB. 

Make ProjA reference ProjB and build. Copy the cygProjB.dll file into the 
build directory of ProjA and debug.
Comment 1 Nobody - feel free to take it CLA 2004-07-02 16:38:49 EDT
Fixed. 
The "solib-search-path" and "stop-on-solib-events" options are not supported by 
gdb on CygWin. The "Shared Libraries" tab has been removed from the "Debugger" 
page of the launch configuration dialog for the "CygWin Debugger" types.
Please, verify.