Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Bootstrap with no wxWidgets packet installed
ollydbg:
Here is the log when I run C::B under GDB, and start the GDB under C::B, it works OK:
--- Code: ---Active debugger config: GDB/CDB debugger:Default
Selecting target:
Debug
Adding source dir: /home/zyh/code/test/console1/
Adding source dir: /home/zyh/code/test/console1/
Adding file: /home/zyh/code/test/console1/bin/Debug/console1
Changing directory to: /home/zyh/code/test/console1/.
Set variable: LD_LIBRARY_PATH=.::/home/zyh/code/wx3install/lib/
[debug]Command-line: /usr/bin/gdb -nx -fullname -quiet -args /home/zyh/code/test/console1/bin/Debug/console1
[debug]Working dir : /home/zyh/code/test/console1
Starting debugger: /usr/bin/gdb -nx -fullname -quiet -args /home/zyh/code/test/console1/bin/Debug/console1
Setting SHELL to '/bin/sh'
done
[debug]Reading symbols from /home/zyh/code/test/console1/bin/Debug/console1...
[debug]done.
[debug](gdb)
[debug]> set prompt >>>>>>cb_gdb:
Setting breakpoints
[debug]Using sleep command's PID as console PID 8483, TTY /dev/pts/22
[debug]Queued:[tty /dev/pts/22]
[debug]>>>>>>cb_gdb:
[debug]> show version
[debug]GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.3) 7.7.1
[debug]Copyright (C) 2014 Free Software Foundation, Inc.
[debug]License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
[debug]This is free software: you are free to change and redistribute it.
[debug]There is NO WARRANTY, to the extent permitted by law. Type "show copying"
[debug]and "show warranty" for details.
[debug]This GDB was configured as "x86_64-linux-gnu".
[debug]Type "show configuration" for configuration details.
[debug]For bug reporting instructions, please see:
[debug]<http://www.gnu.org/software/gdb/bugs/>.
[debug]Find the GDB manual and other documentation resources online at:
[debug]<http://www.gnu.org/software/gdb/documentation/>.
[debug]For help, type "help".
[debug]Type "apropos word" to search for commands related to "word".
[debug]>>>>>>cb_gdb:
[debug]> set confirm off
Debugger name and version: GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.3) 7.7.1
[debug]>>>>>>cb_gdb:
[debug]> set width 0
[debug]>>>>>>cb_gdb:
[debug]> set height 0
[debug]>>>>>>cb_gdb:
[debug]> set breakpoint pending on
[debug]>>>>>>cb_gdb:
[debug]> set print asm-demangle on
[debug]>>>>>>cb_gdb:
[debug]> set unwindonsignal on
[debug]>>>>>>cb_gdb:
[debug]> set print elements 200
[debug]>>>>>>cb_gdb:
[debug]> set disassembly-flavor intel
[debug]>>>>>>cb_gdb:
[debug]> catch throw
[debug]Catchpoint 1 (throw)
[debug]>>>>>>cb_gdb:
[debug]> directory /home/zyh/code/test/console1/
[debug]Source directories searched: /home/zyh/code/test/console1:$cdir:$cwd
[debug]>>>>>>cb_gdb:
[debug]> break "/home/zyh/code/test/console1/main.cpp:7"
[debug]Breakpoint 2 at 0x400861: file /home/zyh/code/test/console1/main.cpp, line 7.
[debug]>>>>>>cb_gdb:
[debug]> tty /dev/pts/22
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]Starting program: /home/zyh/code/test/console1/bin/Debug/console1
[debug]Breakpoint 2, main () at /home/zyh/code/test/console1/main.cpp:7
[debug]/home/zyh/code/test/console1/main.cpp:7:56:beg:0x400861
[debug]>>>>>>cb_gdb:
At /home/zyh/code/test/console1/main.cpp:7
--- End code ---
While, I see when I start C::B from command line, and start GDB from C::B just hangs, the debug log shows nothing after the line "Setting breakpoints", it sounds like GDB is already started?
oBFusCATed:
11415 and 11402
ollydbg:
--- Quote from: oBFusCATed on August 10, 2018, 10:21:32 am ---11415 and 11402
--- End quote ---
OK, I will revert those two commits next week when I'm on Ubuntu.
ollydbg:
--- Quote from: ollydbg on August 10, 2018, 11:56:45 am ---
--- Quote from: oBFusCATed on August 10, 2018, 10:21:32 am ---11415 and 11402
--- End quote ---
OK, I will revert those two commits next week when I'm on Ubuntu.
--- End quote ---
I just revert those two commits, and I see the hang bug still exists. :(
ollydbg:
--- Quote from: oBFusCATed on August 10, 2018, 08:05:46 am ---Can you build wx with symbols so we can see where exactly in their code stops?
--- End quote ---
I just build a wx library with symbols:
--- Code: ---mkdir gtk-build-debug
cd gtk-build-debug
../configure --enable-unicode --prefix=/home/zyh/code/wx3install-debug/ --enable-monolithic --enable-debug
make -j4
make install
--- End code ---
Then open a terminal, and run such command to let C::B use the new wx library
--- Code: ---export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/zyh/code/wx3install-debug/lib/
./codeblocks --multiply-instance --no-ipc &
--- End code ---
Now, I can use C::B to debug. So, this looks like a GCC optimization bug? ;)
Since I don't rebuild C::B against debug version of wx library.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version