Author Topic: wxWidgets debug mode?  (Read 4495 times)

Offline szurilo

  • Multiple posting newcomer
  • *
  • Posts: 37
wxWidgets debug mode?
« on: September 01, 2008, 11:37:32 am »
Hi!
I read this in many posts:
"You don't need to build a DEBUG version of wxWidgets to debug your program."
Well i only built a RELEASE version of wxWidgets but i cannot debug my program. Is there any option to set to debug?
Szurilo

Offline szurilo

  • Multiple posting newcomer
  • *
  • Posts: 37
Re: wxWidgets debug mode?
« Reply #1 on: September 01, 2008, 12:42:38 pm »
And of course i set the -g option on and set the -s option off.
Szurilo

Offline szurilo

  • Multiple posting newcomer
  • *
  • Posts: 37
Re: wxWidgets debug mode?
« Reply #2 on: September 01, 2008, 01:44:03 pm »
Here are my debugger messages:

Code
Building to ensure sources are up-to-date
Build succeeded
Selecting target:
FromWinDebug
Adding source dir: U:\home\szurilo\SVN_SRC3000\
Adding source dir: U:\home\szurilo\SVN_SRC3000\
Adding file: bin\FromWinDebug\SRC3000.exe
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb 6.7.50-20071022-cvs
Child process PID: 2664
Debugger finished with status 1

and the log:
Code
PATH=.;C:\wxWidgets288\lib\gcc_lib;U:\home\szurilo\SVN_SRC3000\lib;C:\ctb-0.13;C:\Program Files\boost\boost_1_33_1\libs;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\;C:\ProgramFiles\Xilinx\bin\nt;C:\MinGW\bin;C:\MinGW\mingw32\bin;c:\Program Files;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Graphviz2.20\Bin;C:\Program Files\doxygen\bin
Command-line: C:\MinGW\bin\gdb.exe -nx -fullname  -quiet -args bin/FromWinDebug/SRC3000.exe
Working dir : U:\home\szurilo\SVN_SRC3000\
> set prompt >>>>>>cb_gdb:
(gdb) >>>>>>cb_gdb:
> show version
GNU gdb 6.7.50-20071022-cvs
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "".
>>>>>>cb_gdb:
> set confirm off
>>>>>>cb_gdb:
> set width 0
>>>>>>cb_gdb:
> set height 0
>>>>>>cb_gdb:
> set breakpoint pending on
>>>>>>cb_gdb:
> set print asm-demangle on
>>>>>>cb_gdb:
> set unwindonsignal on
>>>>>>cb_gdb:
> set debugevents on
>>>>>>cb_gdb:
> set disassembly-flavor att
>>>>>>cb_gdb:
> catch throw
Catchpoint 1 (throw)
>>>>>>cb_gdb:
> directory U:/home/szurilo/SVN_SRC3000/
>>>>>>cb_gdb:
> break "U:/home/szurilo/SVN_SRC3000/WorkerThread.cpp:62"
Breakpoint 2 at 0x421178: file U:/home/szurilo/SVN_SRC3000/WorkerThread.cpp, line 62.
>>>>>>cb_gdb:
> break "U:/home/szurilo/SVN_SRC3000/WorkerThread.cpp:63"
Breakpoint 3 at 0x4211ce: file U:/home/szurilo/SVN_SRC3000/WorkerThread.cpp, line 63.
>>>>>>cb_gdb:
> run
gdb: win32_init_thread_list
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

I hope someone can help.
Szurilo

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5914
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: wxWidgets debug mode?
« Reply #3 on: December 14, 2008, 01:53:02 pm »
hi, have you solve your problem?
I also meet the problem that I can't debug into wxWidgets source code. the debugger can't locate the wxWidgets source folder.
see:

http://forums.codeblocks.org/index.php/topic,9744.msg68286.html#msg68286

Thanks.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.