summaryrefslogtreecommitdiff
path: root/application-devel/debugging-tools/pres_debugging-tools_de.tex
diff options
context:
space:
mode:
authorJohn Ogness <john.ogness@linutronix.de>2018-04-19 11:03:45 +0200
committerJohn Ogness <john.ogness@linutronix.de>2018-04-19 11:03:45 +0200
commitea793b23c98403cefb38670d02a778b843bdf997 (patch)
treeabef3328bd017512394c315ddff9a3bd4b40a2be /application-devel/debugging-tools/pres_debugging-tools_de.tex
parent6c4b8bc457831a351875ec1415d37ccb471bfc20 (diff)
replace *all* tabs with spaces
There are times when tabs are allowed and times when they are not. Let's just simply never use tabs for anything. This makes it easy to find presentations where tabs were accidentally inserted. Signed-off-by: John Ogness <john.ogness@linutronix.de>
Diffstat (limited to 'application-devel/debugging-tools/pres_debugging-tools_de.tex')
-rw-r--r--application-devel/debugging-tools/pres_debugging-tools_de.tex36
1 files changed, 18 insertions, 18 deletions
diff --git a/application-devel/debugging-tools/pres_debugging-tools_de.tex b/application-devel/debugging-tools/pres_debugging-tools_de.tex
index 8e5feac..a49d9ee 100644
--- a/application-devel/debugging-tools/pres_debugging-tools_de.tex
+++ b/application-devel/debugging-tools/pres_debugging-tools_de.tex
@@ -324,13 +324,13 @@ Program exited normally.
\frametitle{Wichtige GDB Kommandos}
\begin{verbatim}
(gdb) list
-1 #include <stdio.h>
-2
-3 int main (void)
-4 {
-5 printf("Hello world\n");
-6 return 0;
-7 }
+1 #include <stdio.h>
+2
+3 int main (void)
+4 {
+5 printf("Hello world\n");
+6 return 0;
+7 }
(gdb) break 5
Breakpoint 1 at 0x400528: file hello.c, line 5.
\end{verbatim}
@@ -343,10 +343,10 @@ Breakpoint 1 at 0x400528: file hello.c, line 5.
Starting program: /home/jan/work/examples/hello
Breakpoint 1, main () at hello.c:5
-5 printf("Hello world\n");
+5 printf("Hello world\n");
(gdb) next
Hello world
-6 return 0;
+6 return 0;
(gdb) continue
Continuing.
\end{verbatim}
@@ -427,8 +427,8 @@ 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 %s\n",
- *arthur_dent);
+6 printf("Hello segfaulting world %s\n",
+ *arthur_dent);
(gdb) bt
#0 0x0000000000400538 in main () at hello_crash.c:6
\end{lstlisting}
@@ -757,12 +757,12 @@ int main(void)
{
int *my_array = (int*) malloc(10 * sizeof(int));
int i = 0;
- memset(my_array, 0, 10 * sizeof(int));
+ memset(my_array, 0, 10 * sizeof(int));
for(i = 0; i < 11; i++)
printf("%d ", my_array[i]);
- printf("\n");
+ printf("\n");
return 0;
}
\end{lstlisting}
@@ -1236,7 +1236,7 @@ Hardware assisted breakpoint 1 at 0x20011c: file main.c, line 68.
(gdb) c
Continuing.
Breakpoint 1, main () at main.c:68
-68 hw_init();
+68 hw_init();
\end{verbatim}
\end{frame}
@@ -1247,14 +1247,14 @@ Breakpoint 1, main () at main.c:68
(gdb) c
Continuing.
Breakpoint 1, main () at main.c:68
-68 hw_init();
+68 hw_init();
(gdb) next
-83 load_nandflash(IMG_ADDRESS, IMG_SIZE, JUMP_ADDR);
+83 load_nandflash(IMG_ADDRESS, IMG_SIZE, JUMP_ADDR);
(gdb) next
-84 dbg_print(">NANDflash ready\r\n");
+84 dbg_print(">NANDflash ready\r\n");
(gdb) step
dbg_print (ptr=0x200e2c ">NANDflash ready\r\n") at driver/debug.c:90
-90 }
+90 }
\end{verbatim}
\end{frame}