User forums > Help
Debugging problem in a console application with ncurses library. Old question..
kyokof:
I solved this problem.
I start CB from console and everything is OK.
debug log is here:
LD_LIBRARY_PATH=.:
Command-line: /usr/bin/gdb -nx -fullname -quiet -args bin/Debug/ConsoleTest
Working dir : /tmp/ConsoleTest/
Reading symbols from /tmp/ConsoleTest/bin/Debug/ConsoleTest...
done.
(gdb)
> set prompt >>>>>>cb_gdb:
Executing: gnome-terminal -t 'Program Console' -x sleep 96278
>>>>>>cb_gdb:
> show version
GNU gdb (GDB) Fedora (7.1-30.fc13)
Copyright (C) 2010 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 "i686-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
>>>>>>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 disassembly-flavor intel
>>>>>>cb_gdb:
> catch throw
Function "__cxa_throw" not defined.
Catchpoint 1 (throw)
>>>>>>cb_gdb:
> source /usr/share/codeblocks/scripts/stl-views-1.0.3.gdb
>>>>>>cb_gdb:
> directory /tmp/ConsoleTest/
>>>>>>cb_gdb:
> tty /dev/pts/4
>>>>>>cb_gdb:
Executing: ps x -o tty,pid,command
PS result: pts/0 16310 ps x -o tty,pid,command
PS result: pts/1 16308 sleep 96278
TTY is[/dev/pts/1]
GetConsoleTTY[/dev/pts/1]ConsolePid[16307]
> tty /dev/pts/1
Queued:[tty /dev/pts/1]
>>>>>>cb_gdb:
> run
oBFusCATed:
Hm, can you try to specify the full path to xterm in "Terminal to launch console programs" ?
p.s. please use the code tags to surround your logs
kyokof:
I will use code tag next time.
"Hm, can you try to specify the full path to xterm"
I will try it later.
I used to start CB from double-click CB icon and it didn't work fine.
Yesterday, I start CB from console and everything is OK.
Navigation
[0] Message Index
[*] Previous page
Go to full version