Benutzer-Werkzeuge

Webseiten-Werkzeuge


note

Notizen

Download

Raspbian Stretch Lite unter: https://downloads.raspberrypi.org/raspbian_lite_latest
Version: April 2019, Release Date: 2019-04-08, Kernel Version: 4.14

Checksumme prüfen:

sha256sum 2019-04-08-raspbian-stretch-lite.zip

SHA-256: 03ec326d45c6eb6cef848cf9a1d6c7315a9410b49a276a6b28e67a40b11fdfcf

Entpacken der ZIP Datei:

unzip 2019-04-08-raspbian-stretch-lite.zip

SD Laufwerk suchen

lsblk

2019-04-08-raspbian-stretch-lite.img

mike@main:~/code$ gdb -q ./a.out
Reading symbols from ./a.out...fertig.
(gdb) break main
Haltepunkt 1 at 0x642: file firstprog.c, line 5.
(gdb) run
Starting program: /home/mike/code/a.out 

Breakpoint 1, main () at firstprog.c:5
5	for(i=0; i<10; i++) 			// Durchlaufe Schleife 10 mal
(gdb) info registers
rax            0x55555555463a	93824992233018
rbx            0x0	0
rcx            0x555555554670	93824992233072
rdx            0x7fffffffe0b8	140737488347320
rsi            0x7fffffffe0a8	140737488347304
rdi            0x1	1
rbp            0x7fffffffdfc0	0x7fffffffdfc0
rsp            0x7fffffffdfb0	0x7fffffffdfb0
r8             0x7ffff7dd0d80	140737351847296
r9             0x7ffff7dd0d80	140737351847296
r10            0x2	2
r11            0xb	11
r12            0x555555554530	93824992232752
r13            0x7fffffffe0a0	140737488347296
r14            0x0	0
r15            0x0	0
rip            0x555555554642	0x555555554642 <main+8>
eflags         0x202	[ IF ]
cs             0x33	51
ss             0x2b	43
ds             0x0	0
es             0x0	0
fs             0x0	0
gs             0x0	0
(gdb) 
HelloWorld.c
/* silly C example for GeSHi */
#ifndef getenv
extern char *getenv ();
#endif
 
static char *
my_index (str, chr)
     const char *str;
     int chr;
{
  while (*str)
    {
      if (*str == chr)
        return (char *) str;
      str++;
    }
  return 0;
}
note.txt · Zuletzt geändert: 2019/05/10 20:39 von Michael Metzger