当前位置: 技术问答>linux和unix
UNIX程序编译通过后没法执行(急)
来源: 互联网 发布时间:2016-05-22
本文导语: dbx进去 Type 'help' for help. reading symbolic information ... (dbx) stop in main [1] stop in main (dbx) r execution completed (exit code 99) (dbx) where glink64._exit() at 0x900000000071848 exit(??) at 0x90000000005e184 __C_runtime_startup() at 0x100000f30 ...
dbx进去
Type 'help' for help.
reading symbolic information ...
(dbx) stop in main
[1] stop in main
(dbx) r
execution completed (exit code 99)
(dbx) where
glink64._exit() at 0x900000000071848
exit(??) at 0x90000000005e184
__C_runtime_startup() at 0x100000f30
直接退出,是不是环境没有设置好??
Type 'help' for help.
reading symbolic information ...
(dbx) stop in main
[1] stop in main
(dbx) r
execution completed (exit code 99)
(dbx) where
glink64._exit() at 0x900000000071848
exit(??) at 0x90000000005e184
__C_runtime_startup() at 0x100000f30
直接退出,是不是环境没有设置好??
|
[shouweil][~]$ cat ctest.c
#include
int main()
{
printf("Hello, world!n");
return 0;
}
[shouweil][~]$ CC -g -o ctest ctest.c
[shouweil][~]$ dbx -q ctest
(dbx) list
5 printf("Hello, world!n");
6 return 0;
7 }
(dbx) stop at 5
(2) stop at "ctest.c":5
(dbx) run
Running: ctest
(process id 11543)
stopped in main at line 5 in file "ctest.c"
5 printf("Hello, world!n");
(dbx) step
Hello, world!
stopped in main at line 6 in file "ctest.c"
6 return 0;
(dbx) step
stopped in main at line 7 in file "ctest.c"
7 }
(dbx) step
execution completed, exit code is 0
(dbx)