GNU gdb (GDB) 7.6.1-ubuntu
Copyright (C) 2013 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".
For bug reporting instructions, please see:
<
http://www.gnu.org/software/gdb/bugs/>...Reading symbols from /home/daozhu/c/max...done.
(gdb) start
Temporary breakpoint 1 at 0x40052d: file max.s, line 10.
Starting program: /home/daozhu/c/max
Temporary breakpoint 1, main () at max.s:10
10 movl $0,%edi
(gdb) n
11 movl data_items(,%edi,4),%eax
(gdb) n
12 movl %eax,%ebx
(gdb) n
start_loop () at max.s:15
15 cmpl $0,%eax
(gdb) n
16 je loop_exit
(gdb) n
17 incl %edi
(gdb) n
19 cmpl %ebx,%eax
(gdb) l
14start_loop:
15 cmpl $0,%eax
16 je loop_exit
17 incl %edi
18 movl data_items(,%edi,4),%eax
19 cmpl %ebx,%eax
20 jle start_loop
21
22 movl %eax,%ebx
23 jmp start_loop