level1@student05:~$ gdb test GNU gdb 6.6-debian Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-linux-gnu"... Using host libthread_db library "/lib/libthread_db.so.1". (gdb) list 2 1 #include 2 #include 3 #include 4 5 int function(char *c) 6 { 7 char buf[5]; 8 char buf2[5]; 9 10 strcpy(buf, c); (gdb) break 10 Breakpoint 1 at 0x80483ea: file test.c, line 10. (gdb) r 8 Starting program: /home/level1/test 8 warning: Lowest section in system-supplied DSO at 0xffffe000 is .hash at ffffe0b4 Breakpoint 1, function (c=0xffffd355 "8") at test.c:10 10 strcpy(buf, c); (gdb) print (void*)$ebp - (void*)&buf2 $1 = 10