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) disass main
Dump of assembler code for function main:
   0x00000000000006ea <+0>:	push   %rbp
   0x00000000000006eb <+1>:	mov    %rsp,%rbp
   0x00000000000006ee <+4>:	lea    0xc2(%rip),%rdi        # 0x7b7
   0x00000000000006f5 <+11>:	callq  0x550 <puts@plt>
   0x00000000000006fa <+16>:	mov    $0x0,%eax
   0x00000000000006ff <+21>:	callq  0x68a <print_array>
   0x0000000000000704 <+26>:	lea    0xc0(%rip),%rdi        # 0x7cb
   0x000000000000070b <+33>:	callq  0x550 <puts@plt>
   0x0000000000000710 <+38>:	mov    $0x0,%eax
   0x0000000000000715 <+43>:	pop    %rbp
   0x0000000000000716 <+44>:	retq   
End of assembler dump.
(gdb) 

