EmbeddedBrain
February 11th, 2010, 11:23 AM
Hi All,
I am starting programming with Eclipse Galileo (C/C++). I made a new Hello World program and I debugged it with no problem.
Then I added a memset code line to the Hello world and I am not able to debug it anymore with gdb. The debug terminates with the following message:
"Stopped due to shared library event"
"Stopped due to shared library event"
I am using ubuntu 8.04LTS and gdb 6.8. Below the whole code.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void) {
char cArray[100];
memset(&cArray,0, sizeof(cArray));
puts("!!!Hello World!!!"); /* prints !!!Hello World!!! */
return EXIT_SUCCESS;
}
I am starting programming with Eclipse Galileo (C/C++). I made a new Hello World program and I debugged it with no problem.
Then I added a memset code line to the Hello world and I am not able to debug it anymore with gdb. The debug terminates with the following message:
"Stopped due to shared library event"
"Stopped due to shared library event"
I am using ubuntu 8.04LTS and gdb 6.8. Below the whole code.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void) {
char cArray[100];
memset(&cArray,0, sizeof(cArray));
puts("!!!Hello World!!!"); /* prints !!!Hello World!!! */
return EXIT_SUCCESS;
}