Author Topic: Code::Blocks Debugging Issue: Entering Text  (Read 5343 times)

Aetherist

  • Guest
Code::Blocks Debugging Issue: Entering Text
« on: April 29, 2013, 02:02:23 am »
I am on Mac OS X using Code::Blocks 12.11 and gdb 6.3.50. The only debugging option I have on is "Jump on Double-click to stack on trace window". I cannot figure out how to enter text so I can move past

cin >> identity;
I found the following posts that relate to having trouble entering text and the one error I get in the debug log:
http://forums.codebl...p?topic=16478.0
https://bugs.launchp...ks/+bug/1005864

Also, I have the compiler flags -g -Wall -c on (I made sure -s is off). Here is the debug log.

Selecting target:
Debug
Adding source dir: /Users/nathaniel/CodeBlocksProjects/PrinciplesPractice/FTLTKappV1/
Adding source dir: /Users/nathaniel/CodeBlocksProjects/PrinciplesPractice/FTLTKappV1/
Adding file: /Users/nathaniel/CodeBlocksProjects/PrinciplesPractice/FTLTKappV1/bin/Debug/FLTKappV1

Changing directory to: /Users/nathaniel/CodeBlocksProjects/PrinciplesPractice/FTLTKappV1/.
Set variable: DYLD_LIBRARY_PATH=.:
Starting debugger: /usr/bin/gdb -nx -fullname -quiet -args /Users/nathaniel/CodeBlocksProjects/PrinciplesPractice/FTLTKappV1/bin/Debug/FLTKappV1
done
Setting breakpoints
Can't launch console (osascript -e 'tell app "Terminal"' -e 'activate' -e 'do script ""' -e 'end tell' sleep 80001717)
Debugger name and version: GNU gdb 6.3.50-20050815 (Apple version gdb-1515) (Sat Jan 15 08:33:48 UTC 2011)

Thank you in advance.

Appendix, Full Debug Log:

Selecting target:
Debug
Adding source dir: /Users/nathaniel/CodeBlocksProjects/PrinciplesPractice/FTLTKappV1/
Adding source dir: /Users/nathaniel/CodeBlocksProjects/PrinciplesPractice/FTLTKappV1/
Adding file: /Users/nathaniel/CodeBlocksProjects/PrinciplesPractice/FTLTKappV1/bin/Debug/FLTKappV1
Changing directory to: /Users/nathaniel/CodeBlocksProjects/PrinciplesPractice/FTLTKappV1/.
Set variable: DYLD_LIBRARY_PATH=.:

[debug]Command-line: /usr/bin/gdb -nx -fullname -quiet -args /Users/nathaniel/CodeBlocksProjects/PrinciplesPractice/FTLTKappV1/bin/Debug/FLTKappV1
[debug]Working dir : /Users/nathaniel/CodeBlocksProjects/PrinciplesPractice/FTLTKappV1

Starting debugger: /usr/bin/gdb -nx -fullname -quiet -args /Users/nathaniel/CodeBlocksProjects/PrinciplesPractice/FTLTKappV1/bin/Debug/FLTKappV1
done

[debug]> set prompt >>>>>>cb_gdb:
[debug]Skip initializing the scripting!

Setting breakpoints
Can't launch console (osascript -e 'tell app "Terminal"' -e 'activate' -e 'do script ""' -e 'end tell' sleep 80001717)

[debug]Reading symbols for shared libraries .......... done
[debug](gdb) >>>>>>cb_gdb:
[debug]> show version
[debug]GNU gdb 6.3.50-20050815 (Apple version gdb-1515) (Sat Jan 15 08:33:48 UTC 2011)
[debug]Copyright 2004 Free Software Foundation, Inc.
[debug]GDB is free software, covered by the GNU General Public License, and you are
[debug]welcome to change it and/or distribute copies of it under certain conditions.
[debug]Type "show copying" to see the conditions.
[debug]There is absolutely no warranty for GDB. Type "show warranty" for details.
[debug]This GDB was configured as "x86_64-apple-darwin".
[debug]>>>>>>cb_gdb:
[debug]> set confirm off

Debugger name and version: GNU gdb 6.3.50-20050815 (Apple version gdb-1515) (Sat Jan 15 08:33:48 UTC 2011)

[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 0
[debug]>>>>>>cb_gdb:
[debug]> set disassembly-flavor intel
[debug]>>>>>>cb_gdb:
[debug]> directory /Users/nathaniel/CodeBlocksProjects/PrinciplesPractice/FTLTKappV1/
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]Reading symbols for shared libraries .+

[debug]..
[debug]Reading symbols for shared libraries . done
[debug]Enter identity:

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Code::Blocks Debugging Issue: Entering Text
« Reply #1 on: April 29, 2013, 09:33:12 am »
You have 3 problems:
1. you're using unbearably old gdb, try something with 7 as first version digit.
2. you're using 10.8 and this command
Code
Can't launch console (osascript -e 'tell app "Terminal"' -e 'activate' -e 'do script ""' -e 'end tell' sleep 80001717)
failed. You have to search the internet how to make the terminal show using scripts, then tell us.
3. you're not using code tags when you're posting.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]