Developer forums (C::B DEVELOPMENT STRICTLY!) > Contributions to C::B
Debugger initialization commands to debug in wxWidgets
Feneck91:
I have a projet with paths :
--- Quote ---RootProjet
|--------Application-----Debug
| |--Release
|--------MyProjet
|--------wxWidgets-2.8.12
--- End quote ---
All compiled dll/exe/resouce (xrc)/translation(mo) are copied to Application/Debug (or release) by project post build steps
All is working fine.
WxWidgets is compiled with :
--- Code: ---mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=debug VENDOR=%WX_WIDGETS_VENDOR_NAME% USE_XRC=1
mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=release VENDOR=%WX_WIDGETS_VENDOR_NAME% USE_XRC=1
--- End code ---
The problem I have, is I cannot debug into wxWidgets source code, only inline code (into header only), all wxWidgets-2.8.12\src are not taken into account into the debugger.
How can I make gdb know where read source code of WxWidgets to be able to debug into this lib ?
I have see, into settings/compiler and debugger/debugger setting that there is a Debugger initialization commands that should run command at gdb start. What kind of command should I put ? Like "source $(#wx)\src" ?
ollydbg:
which wxWidgets library did you link?
It should be a debug wx library.
Feneck91:
Of course I link with debug dynamic library.
I think it is a path problem, gdb doesn't found where src are loated. I'm trying to add :
--- Code: ---directory [i]"D:\Dev\TTGest\trunk\wxWidgets-2.8.12\lib\gcc_dll"[/i]
--- End code ---
where the are compiled wxWidgets but no effect !
I know the source are located to "D:\Dev\TTGest\trunk\wxWidgets-2.8.12\src" When I write command
--- Code: ---info sources
--- End code ---
I can see that all wxWidgets .cpp sources are located to "../../xxxxxxx"
The only thing that working is inline functions present into header files
Other idea ?
ollydbg:
I encountered the same problem before.
one solution is report the Debugger problem about the tracking into wxWidgets source
And the remaining problem: how to debug into wxwidget source code?
hope someone have other solutions. :D
ollydbg:
The final explanation is from jens, see here:
Re: Debugger cannot open files
Navigation
[0] Message Index
[#] Next page
Go to full version