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 "i486-linux-gnu"... (no debugging symbols found) Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". Attaching to program: /sbin/wpa_supplicant, process 8437 Reading symbols from /usr/lib/i686/cmov/libssl.so.0.9.8...(no debugging symbols found)...done. Loaded symbols for /usr/lib/i686/cmov/libssl.so.0.9.8 Reading symbols from /usr/lib/i686/cmov/libcrypto.so.0.9.8...(no debugging symbols found)...done. Loaded symbols for /usr/lib/i686/cmov/libcrypto.so.0.9.8 Reading symbols from /lib/tls/i686/cmov/libdl.so.2... (no debugging symbols found)...done. Loaded symbols for /lib/tls/i686/cmov/libdl.so.2 Reading symbols from /usr/lib/libdbus-1.so.3...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libdbus-1.so.3 Reading symbols from /lib/tls/i686/cmov/libc.so.6... (no debugging symbols found)...done. Loaded symbols for /lib/tls/i686/cmov/libc.so.6 Reading symbols from /usr/lib/libz.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libz.so.1 Reading symbols from /lib/ld-linux.so.2... (no debugging symbols found)...done. Loaded symbols for /lib/ld-linux.so.2 (no debugging symbols found) 0xffffe410 in __kernel_vsyscall () (gdb) br *0x08081964 Breakpoint 1 at 0x8081964 (gdb) br *0x08081a3a Breakpoint 2 at 0x8081a3a (gdb) set variable $count = 2 (gdb) commands 1 Type commands for when breakpoint 1 is hit, one per line. End with a line saying just "end". >silent >set variable $cow = (unsigned long*)($ebp - 0x14) >watch *$cow >cont >end (gdb) commands 2 Type commands for when breakpoint 2 is hit, one per line. End with a line saying just "end". >silent >set variable $count = $count + 1 >delete $count >cont >end (gdb) cont Continuing. Hardware watchpoint 3: *$cow Hardware watchpoint 4: *$cow Hardware watchpoint 5: *$cow Hardware watchpoint 6: *$cow Hardware watchpoint 7: *$cow Hardware watchpoint 8: *$cow Hardware watchpoint 9: *$cow Hardware watchpoint 10: *$cow Hardware watchpoint 11: *$cow Hardware watchpoint 12: *$cow Hardware watchpoint 13: *$cow Hardware watchpoint 13: *$cow Old value = 4278845440 New value = 4278845546 0x0804eae6 in ?? () (gdb) bt #0 0x0804eae6 in ?? () #1 0x00000008 in ?? () #2 0x080a2395 in ?? () #3 0x080a239d in ?? () #4 0x08094c8b in ?? () #5 0xbff3b978 in ?? () #6 0x08082297 in ?? () #7 0x080a239d in ?? () #8 0xbff3b95c in ?? () #9 0x00000010 in ?? () #10 0x00000079 in ?? () #11 0xb7dd816c in ?? () from /lib/tls/i686/cmov/libc.so.6 #12 0xb7dd816c in ?? () from /lib/tls/i686/cmov/libc.so.6 #13 0x00000000 in ?? () (gdb) info reg eax 0x6a 106 ecx 0xa 10 edx 0x61 97 ebx 0x60 96 esp 0xbff3b868 0xbff3b868 ebp 0xbff3b878 0xbff3b878 esi 0x80a23ad 134882221 edi 0xbff3b964 -1074546332 eip 0x804eae6 0x804eae6 eflags 0x206 [ PF IF ] cs 0x73 115 ss 0x7b 123 ds 0x7b 123 es 0x7b 123 fs 0x0 0 gs 0x33 51 (gdb) x/10i $eip 0x804eae6 : addl $0x1,0xfffffff0(%ebp) 0x804eaea : mov 0xfffffff0(%ebp),%eax 0x804eaed : cmp %eax,0x10(%ebp) 0x804eaf0 : je 0x804eb13 0x804eaf2 : add $0x1,%edi 0x804eaf5 : add $0x2,%esi 0x804eaf8 : movsbl (%esi),%eax 0x804eafb : call 0x804ea00 0x804eb00 : test %eax,%eax 0x804eb02 : mov %eax,%ebx (gdb)