[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[cdt-dev] problem while debugging a dll using cdt/gdb.
|
Hi
I have gdb6.8,cdt 5.0,eclipse 3.4.0.
I have created a launch configuration (run and debug) like CDT's Local C application launch. I am facing some problem while debugging a dll.
This is how I am setting up the values(in perfromApply()).
configuration.setAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_ID,"org.eclipse.cdt.debug.mi.core.MinGW"); configuration.setAttribute(ICDTLaunchConfigurationConstants.DEBUGGER_MODE_RUN,true); configuration.setAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_SPECIFIC_ATTRS_MAP,"c:\\.gdbinit");
configuration.setAttribute(IMILaunchConfigurationConstants.ATTR_DEBUG_NAME,"C:\\gdb\\\bin\\gdb.exe"); configuration.setAttribute(IMILaunchConfigurationConstants.ATTR_DEBUGGER_VERBOSE_MODE,true); configuration.setAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_STOP_AT_MAIN_SYMBOL,"XXXXXXXXXX");
but I got the error:
&"Function \"XXXXXXXXXX\" not defined in loaded symbols.\n"
When I debug the same dll from CLI using these commands:
set breakpoint pending on set new-console on set stop-on-solib-events 0 break XXXXXXXXXX file exefilepath run
In this case the breakpoint at funtion XXXXXXXXXX are hitted. Seems like i need to tell gdb that the symbol for this function will be available later.
Note: I have saved all the above commands in .gdbinit file,which I am specifying as ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_SPECIFIC_ATTRS_MAP in the debug
configuration.
1> set breakpoint pending on: how to do it from launch configuration menu? --I unchecked"Load Library symbols automatically"--but it didn't worked.
Secondly when I unchecked the "Stop on startup at" option,and set ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_SPECIFIC_ATTRS_MAP = empty.
I am getting this error:
Error: dll starting at 0xfc0000 not found.
I tried my hands with gdb 6.6, but faced same problem.
Am I missing something?
It will be really helpful if somebody guide me on "how to debug a dll using CDT/gdb"
Thanks Padam |
Download prohibited? No problem.
CHAT from any browser, without download.