Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
HelloWorld Plugin on Ubuntu 11.04
hibbity:
Following OnExit, the gui app continues to execute into wxEntry(...) and never returns, as illustrated in debugging session:
GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2
This GDB was configured as "i686-linux-gnu".
Reading symbols from ../wx_test/bin/Debug/wx_test...done.
(gdb) break 78
Breakpoint 1 at 0x8050f5a: file ../wx_test/wx_testApp.cpp, line 78.
(gdb) run -i./test.ini
Starting program: ../wx_test/bin/Debug/wx_test -i./test.ini
[Thread debugging using libthread_db enabled]
OnInitCmdLine()
OnCmdLineParsed()
Parsing iniFile: ./test.ini
[New Thread 0xb7cb1b70 (LWP 14414)]
[New Thread 0xb72ffb70 (LWP 14415)]
OnInit()
Test GUI: pid 14411
OnExit()
Breakpoint 1, wx_testApp::OnExit (this=0x80ca958)
at ../wx_test/wx_testApp.cpp:78
78 return 0;
(gdb) step
79 }
(gdb) step
0x00840c87 in wxEntry(int&, wchar_t**) () from /usr/lib/libwx_baseu-2.8.so.0
(gdb) step
Single stepping until exit from function _Z7wxEntryRiPPw,
which has no line number information.
[Thread 0xb7cb1b70 (LWP 14414) exited]
<<<File->Quit causes OnExit(), (Thread 14415 has not exited); execution is hung here, no return to gdb command prompt.>>>
I would need to rebuild libwx_baseu-2.8 with debugging symbols to be able to trace into it.
hibbity:
I followed tips found in http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks
i.e. compiler build settings (enable debugging symbols), no optimization or symbol stripping.
Then rebuild wxCustomButton, reinstall wxCustomButton, Rebuild test GUI, Debug test GUI.
Result is the same as before. GUI app uses the same shared library as before.
--- Code: ---0x00840c87 in wxEntry(int&, wchar_t**) () from /usr/lib/libwx_baseu-2.8.so.0
--- End code ---
This should read, "libwx_baseud-2.8.so.0" instead (i.e. the debug version of the shared library). How do I change it?
Navigation
[0] Message Index
[*] Previous page
Go to full version