GDB调试程序报如下错误
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
int main()
{
int i=5;
char str[10]="dongyu";
printf("%s\t%d\n",str,i);
}
(gdb) b test.c:5
Breakpoint 1 at 0x2940: file test.c, line 5.
(gdb) r
Starting program: /indbbill/user/suiz/test
Program terminated with signal SIGBUS, Bus error.
The program no longer exists.
You can't do that without a process to debug.
以前从来没有遇到过.现在所有的程序调试都报这个错误了.请各位大侠帮忙看看被
就这么一个小程序都过不去,原来我主机的阵列掉了.现在已经挂上了,但挂上后系统就不好用了.