Debugger exits: No executable specified, use 'target exec'
Posted: Fri Feb 25, 2011 6:25 pm
I'm using CodeLite V2.9.0.4684 on VistaSP2 with one workspace and two projects, a DLL and a console app that uses the DLL called in as a library.
I can compile the DLL and the console app, and I get a .EXE file that I can run in a DOS window. However, when I try to run it under CodeLite to debug it, I get in the debugger window:
Using gdbinit file: C:\Users\paulkinz\AppData\Local\Temp\codelite_gdbinit.txt
Current working dir: C:\apk\adev\gadll
Launching gdb from : ./Debug
Starting debugger : gdb --command="C:\Users\paulkinz\AppData\Local\Temp\codelite_gdbinit.txt" --interpreter=mi ""
DEBUG>>set new-console on
DEBUG>>set unwindonsignal on
DEBUG>>set width 0
DEBUG>>set height 0
DEBUG>>set print pretty on
DEBUG>>set print elements 200
Debug session started successfully!
DEBUG>>00000028-exec-arguments
DEBUG>>00000029-exec-run
DEBUG>>~"GNU gdb (GDB) 7.0\n"
GNU gdb (GDB) 7.0
DEBUG>>~"Copyright (C) 2009 Free Software Foundation, Inc.\n"
Copyright (C) 2009 Free Software Foundation, Inc.
DEBUG>>~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\n"
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.\n"
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\"\n"
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
DEBUG>>~"and \"show warranty\" for details.\n"
and "show warranty" for details.
DEBUG>>~"This GDB was configured as \"mingw32\".\n"
This GDB was configured as "mingw32".
DEBUG>>~"For bug reporting instructions, please see:\n"
For bug reporting instructions, please see:
DEBUG>>~"<http://www.gnu.org/software/gdb/bugs/>...\n"
<http://www.gnu.org/software/gdb/bugs/>...
DEBUG>>&": No such file or directory.\n" <-------------------- this is probably where the problem is
DEBUG>>&"set new-console on\n"
DEBUG>>^done
DEBUG>>&"set unwindonsignal on\n"
DEBUG>>^done
DEBUG>>&"set width 0\n"
DEBUG>>^done
DEBUG>>&"set height 0\n"
DEBUG>>^done
DEBUG>>&"set print pretty on\n"
DEBUG>>^done
DEBUG>>&"set print elements 200\n"
DEBUG>>^done
DEBUG>>00000028^done
DEBUG>>00000029^error,msg="No executable specified, use `target exec'."
DEBUG>>00000030-var-update "*"
DEBUG>>00000030^done,changelist=[]
Debug session ended
No executable specified, use `target exec'.
There's probably something simple that I don't have set up but I can't find it.
I also tried compiling all the sources together (no DLL) and I get the same error when I try to debug.
I can compile the DLL and the console app, and I get a .EXE file that I can run in a DOS window. However, when I try to run it under CodeLite to debug it, I get in the debugger window:
Using gdbinit file: C:\Users\paulkinz\AppData\Local\Temp\codelite_gdbinit.txt
Current working dir: C:\apk\adev\gadll
Launching gdb from : ./Debug
Starting debugger : gdb --command="C:\Users\paulkinz\AppData\Local\Temp\codelite_gdbinit.txt" --interpreter=mi ""
DEBUG>>set new-console on
DEBUG>>set unwindonsignal on
DEBUG>>set width 0
DEBUG>>set height 0
DEBUG>>set print pretty on
DEBUG>>set print elements 200
Debug session started successfully!
DEBUG>>00000028-exec-arguments
DEBUG>>00000029-exec-run
DEBUG>>~"GNU gdb (GDB) 7.0\n"
GNU gdb (GDB) 7.0
DEBUG>>~"Copyright (C) 2009 Free Software Foundation, Inc.\n"
Copyright (C) 2009 Free Software Foundation, Inc.
DEBUG>>~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\n"
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.\n"
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\"\n"
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
DEBUG>>~"and \"show warranty\" for details.\n"
and "show warranty" for details.
DEBUG>>~"This GDB was configured as \"mingw32\".\n"
This GDB was configured as "mingw32".
DEBUG>>~"For bug reporting instructions, please see:\n"
For bug reporting instructions, please see:
DEBUG>>~"<http://www.gnu.org/software/gdb/bugs/>...\n"
<http://www.gnu.org/software/gdb/bugs/>...
DEBUG>>&": No such file or directory.\n" <-------------------- this is probably where the problem is
DEBUG>>&"set new-console on\n"
DEBUG>>^done
DEBUG>>&"set unwindonsignal on\n"
DEBUG>>^done
DEBUG>>&"set width 0\n"
DEBUG>>^done
DEBUG>>&"set height 0\n"
DEBUG>>^done
DEBUG>>&"set print pretty on\n"
DEBUG>>^done
DEBUG>>&"set print elements 200\n"
DEBUG>>^done
DEBUG>>00000028^done
DEBUG>>00000029^error,msg="No executable specified, use `target exec'."
DEBUG>>00000030-var-update "*"
DEBUG>>00000030^done,changelist=[]
Debug session ended
No executable specified, use `target exec'.
There's probably something simple that I don't have set up but I can't find it.
I also tried compiling all the sources together (no DLL) and I get the same error when I try to debug.