Bug 68934

Summary: Debug into dll doesn't work.
Product: [Tools] CDT Reporter: Tanya Wolff <twolff>
Component: cdt-debugAssignee: cdt-debug-inbox <cdt-debug-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sevoy
Version: 2.0   
Target Milestone: 2.0.1   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

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.