CodeLit version: binary 3365
GDB version: 6.8 -debian
OS: Linux
As shown in the figure below, when I run the program "hello world", the program will stay in such status, never change. The output window "./d" is blank.
The debugger log is as below:
Using gdbinit file: /home/z-wei/.gdbinit
Current working dir: /home/z-wei
Launching gdb from : ./Debug
Starting debugger : gdb --tty=/dev/pts/7 --interpreter=mi "./d"
Debug session started successfully!
GNU gdb 6.8-debian
Copyright (C) 2008 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 "x86_64-linux-gnu"...
Continuing...
Debug session ended
Using gdbinit file: /home/z-wei/.gdbinit
Current working dir: /home/z-wei
Launching gdb from : ./Debug
Starting debugger : gdb --tty=/dev/pts/7 --interpreter=mi "./d"
DEBUG>>set unwindonsignal on
DEBUG>>set breakpoint pending on
DEBUG>>set width 0
DEBUG>>set height 0
DEBUG>>set print pretty on
DEBUG>>set print elements 200
Debug session started successfully!
DEBUG>>00000002-exec-run
DEBUG>>~"GNU gdb 6.8-debian\n"
GNU gdb 6.8-debian
DEBUG>>~"Copyright (C) 2008 Free Software Foundation, Inc.\n"
Copyright (C) 2008 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 \"x86_64-linux-gnu\"...\n"
This GDB was configured as "x86_64-linux-gnu"...
DEBUG>>&"./d: No such file or directory.\n"
DEBUG>>&"set unwindonsignal on\n"
DEBUG>>^done
DEBUG>>&"set breakpoint pending 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>>00000002^running
Continuing...
DEBUG>>&"No executable file specified.\n"
DEBUG>>&"Use the \"file\" or \"exec-file\" command.\n"
DEBUG>>00000002^error,msg="No executable file specified.\nUse the \"file\" or \"exec-file\" command."
No executable file specified.\nUse the "file" or "exec-file" command.
Thank you for your reply in advance.
one problem with the "hello world" program
-
- CodeLite Curious
- Posts: 4
- Joined: Mon Mar 22, 2010 8:33 am
- Genuine User: Yes
- IDE Question: c++
- Contact:
one problem with the "hello world" program
You do not have the required permissions to view the files attached to this post.
-
- CodeLite Plugin
- Posts: 819
- Joined: Wed Sep 03, 2008 7:26 pm
- Contact:
Re: one problem with the "hello world" program
Hi,
If not, do you have spaces or non-ansi characters in the filepath?
If that's not it, look in the first tab of the 'Project Settings' dialog, in the 'Program to Debug / Run' section. What does the 'Program:' field contain?
Regards,
David
gdb thinks you're trying to run a program called 'd'. Is that really the name of your 'Hello world' app?Starting debugger : gdb --tty=/dev/pts/7 --interpreter=mi "./d"
If not, do you have spaces or non-ansi characters in the filepath?
If that's not it, look in the first tab of the 'Project Settings' dialog, in the 'Program to Debug / Run' section. What does the 'Program:' field contain?
Regards,
David
-
- CodeLite Curious
- Posts: 4
- Joined: Mon Mar 22, 2010 8:33 am
- Genuine User: Yes
- IDE Question: c++
- Contact:
Re: one problem with the "hello world" program
Thanks, David.
Yes, 'd' is the name of the "hello world" program. Actually, all the programs of mine can not run due to the same problem.
The field of "program" you mentioned is ./$(ProjectName) Best regards,
Zhang Wei
Yes, 'd' is the name of the "hello world" program. Actually, all the programs of mine can not run due to the same problem.
The field of "program" you mentioned is ./$(ProjectName) Best regards,
Zhang Wei
You do not have the required permissions to view the files attached to this post.
-
- CodeLite Curious
- Posts: 4
- Joined: Mon Mar 22, 2010 8:33 am
- Genuine User: Yes
- IDE Question: c++
- Contact:
Re: one problem with the "hello world" program
I tried to use full path in the "program" field and "Working Directory" field you metioned. The full path means the path for the folder including my project. The problem still appeared.
-
- CodeLite Curious
- Posts: 4
- Joined: Mon Mar 22, 2010 8:33 am
- Genuine User: Yes
- IDE Question: c++
- Contact:
Re: one problem with the "hello world" program
Problem solved. Just rebuild the project. After the OS and codelite are reinstalled, the workspace is recoveried automatically. Then I faced such problem.
Thank you very much.
Thank you very much.