Debugging on mac osx problem
Posted: Tue May 27, 2014 4:15 am
Hi, i've been using codelite fairly successfully but i never stopped to try and debug on mac osx yet. i'm trying to debug an app now but it doesn't seem to be loading all the way..
I have downloaded codelite 5.4
Mac OSX Mavericks 10.9.3
I am using clang from xcode, where g++ --version says it's an alias for clang
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.2.0
Thread model: posix
I got gdb from homebrew -- GNU gdb (GDB) 7.7.1
Here's a log
Any ideas? the app doesn't ever appear, it is a gui app, and i haven't had any ideas how to continue. Any help appreciated!
Thanks,
-Colin
I have downloaded codelite 5.4
Mac OSX Mavericks 10.9.3
I am using clang from xcode, where g++ --version says it's an alias for clang
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.2.0
Thread model: posix
I got gdb from homebrew -- GNU gdb (GDB) 7.7.1
Here's a log
Code: Select all
Using gdbinit file: /var/folders/8j/qtk5zn7d0rs6cntg836j_kcc0000gn/T/codelite_gdbinit.txt
Current working dir: /Users/biocmd/Code/myapp-gui/MYAPP
Launching gdb from : ./Debug
Starting debugger : /usr/local/bin/gdb --command="/var/folders/8j/qtk5zn7d0rs6cntg836j_kcc0000gn/T/codelite_gdbinit.txt" --tty=/dev/ttys009 --interpreter=mi "./MYAPP.app/Contents/MacOS/MYAPP"
DEBUG>>set unwindonsignal on
DEBUG>>set breakpoint pending on
DEBUG>>set width 0
DEBUG>>set height 0
DEBUG>>set print elements 200
DEBUG>>file ./MYAPP.app/Contents/MacOS/MYAPP
Debug session started successfully!
DEBUG>>00000003-exec-arguments
DEBUG>>00000004-exec-run
DEBUG>>=thread-group-added,id="i1"
=thread-group-added,id="i1"
DEBUG>>~"GNU gdb (GDB) 7.7.1\n"
GNU gdb (GDB) 7.7.1
DEBUG>>~"Copyright (C) 2014 Free Software Foundation, Inc.\n"
Copyright (C) 2014 Free Software Foundation, Inc.
DEBUG>>~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n"
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type "show copying"\nand "show warranty" for details.
DEBUG>>~"This GDB was configured as \"x86_64-apple-darwin13.2.0\".\nType \"show configuration\" for configuration details."
This GDB was configured as "x86_64-apple-darwin13.2.0".\nType "show configuration" for configuration details.
DEBUG>>~"\nFor bug reporting instructions, please see:\n"
\nFor bug reporting instructions, please see:
DEBUG>>~"<http://www.gnu.org/software/gdb/bugs/>.\n"
<http://www.gnu.org/software/gdb/bugs/>.
DEBUG>>~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n"
Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.
DEBUG>>~"For help, type \"help\".\n"
For help, type "help".
DEBUG>>~"Type \"apropos word\" to search for commands related to \"word\"...\n"
Type "apropos word" to search for commands related to "word"...
DEBUG>>~"Reading symbols from ./MYAPP.app/Contents/MacOS/MYAPP..."
Reading symbols from ./MYAPP.app/Contents/MacOS/MYAPP...
Thanks,
-Colin