root@kali:~/ohm/array# gdb array
GNU gdb (Debian 7.12-6+b1) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from array...done.
(gdb) break array.c :7
Breakpoint 1 at 0x6be: file array.c, line 7.
(gdb) run
Starting program: /root/ohm/array/array 
Call print_array().

Breakpoint 1, print_array () at array.c:7
7	        printf("my_array[%d] = %d\n", i, my_array[i]);
(gdb) x/32xw $rsp
0x7fffffffe090:	0x00000009	0x00000005	0x0000000b	0x00000002
0x7fffffffe0a0:	0x0000000f	0x00007fff	0x55554580	0x00000000
0x7fffffffe0b0:	0xffffe0c0	0x00007fff	0x55554704	0x00005555
0x7fffffffe0c0:	0x55554720	0x00005555	0xf7a3fa87	0x00007fff
0x7fffffffe0d0:	0x00000000	0x00000000	0xffffe1a8	0x00007fff
0x7fffffffe0e0:	0x00040000	0x00000001	0x555546ea	0x00005555
0x7fffffffe0f0:	0x00000000	0x00000000	0xfeb1b8f2	0x5800f0bb
0x7fffffffe100:	0x55554580	0x00005555	0xffffe1a0	0x00007fff
(gdb) 

