diff options
| author | Jan Altenberg <jan@linutronix.de> | 2011-01-28 12:36:36 +0100 |
|---|---|---|
| committer | Jan Altenberg <jan@linutronix.de> | 2011-01-28 12:36:36 +0100 |
| commit | dfc8ac76d16bc874d3110bc8934e0475fed2c471 (patch) | |
| tree | 71d95362cd2176f64f53cc4fc3dd2354ad535501 /application-devel | |
| parent | a0dae75b137a16b70a1ba324cf961178ba748b71 (diff) | |
Debugging: Fixed ''core dump'' and duma example
Diffstat (limited to 'application-devel')
| -rw-r--r-- | application-devel/app-debugging/pres_app-debugging_de.tex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/application-devel/app-debugging/pres_app-debugging_de.tex b/application-devel/app-debugging/pres_app-debugging_de.tex index f90c551..d95cfde 100644 --- a/application-devel/app-debugging/pres_app-debugging_de.tex +++ b/application-devel/app-debugging/pres_app-debugging_de.tex @@ -187,7 +187,7 @@ Loaded symbols for /lib64/ld-linux-x86-64.so.2 Core was generated by `./hello_segfault'. Program terminated with signal 11, Segmentation fault. #0 0x0000000000400538 in main () at hello_crash.c:6 -6 printf("Hello segfaulting world\n", +6 printf("Hello segfaulting world %s\n", *arthur_dent); (gdb) bt #0 0x0000000000400538 in main () at hello_crash.c:6 @@ -394,7 +394,7 @@ int main(void) { int *my_array = (int*) malloc(10 * sizeof(int)); int i = 0; - memset(my_array, 0, 10); + memset(my_array, 0, 10 * sizeof(int)); for(i = 0; i < 11; i++) printf("%d ", my_array[i]); |
