All pastes #538638 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-06-05 02:17 UTC
rendered paste body
(gdb) watch i
Watchpoint 2: i
(gdb) continue
Continuing.
Watchpoint 2: i

Old value = 10
New value = 31
0x0804bdd6 in playing_count_by_ip (w_queue=0) at findslot.c:26
26        for (i=0, j=0; i<MAXPLAYER; i++) {
(gdb) step
27          if (players[i].p_status == PFREE) continue;
(gdb) step
28          if (is_robot(&players[i])) continue;
(gdb) step
is_robot (pl=0xbdade080) at util.c:240
240       if (pl->p_flags & PFBPROBOT) return 1;
(gdb) step
241       if (pl->p_flags & PFROBOT) return 1;
(gdb) step
242       if (strcasestr(pl->p_login, "robot")) return 1;
(gdb) step
Watchpoint 2: i

Old value = 31
New value = 0
0xbdb163c0 in strcasestr () from /usr/lib/libc.so.12
(gdb) step
Single stepping until exit from function strcasestr,
which has no line number information.
Watchpoint 2: i

Old value = 0
New value = 15
0xbdb163c3 in strcasestr () from /usr/lib/libc.so.12
(gdb) step
Single stepping until exit from function strcasestr,
which has no line number information.
Watchpoint 2: i

Old value = 15
New value = 31
0xbdb163c5 in strcasestr () from /usr/lib/libc.so.12
(gdb) step
Single stepping until exit from function strcasestr,
which has no line number information.
Watchpoint 2: i

Old value = 31
New value = 0
0xbdb16456 in strcasestr () from /usr/lib/libc.so.12
(gdb) step
Single stepping until exit from function strcasestr,
which has no line number information.
Watchpoint 2: i

Old value = 0
New value = 31
0x0805dd0d in is_robot (pl=0xbdade080) at util.c:242
242       if (strcasestr(pl->p_login, "robot")) return 1;
(gdb) step
243       return 0;
(gdb) step
244     }
(gdb) step
playing_count_by_ip (w_queue=0) at findslot.c:30
30          if (w_queue == QU_PICKUP && players[i].p_status == POBSERV) continue;
(gdb) step
31          if (players[i].p_ip_duplicates) continue;
(gdb) step
32          if (strcmp(players[i].p_ip, ip) == 0) j++;
(gdb) step
Watchpoint 2: i

Old value = 31
New value = 134799408
0xbdb7f5f6 in strcmp () from /usr/lib/libc.so.12
(gdb) step
Single stepping until exit from function strcmp,
which has no line number information.
Watchpoint 2: i

Old value = 134799408
New value = 134799404
0xbdb7f619 in strcmp () from /usr/lib/libc.so.12
(gdb) step
Single stepping until exit from function strcmp,
which has no line number information.
Watchpoint 2: i

Old value = 134799404
New value = 134799408
0xbdb7f628 in strcmp () from /usr/lib/libc.so.12
(gdb) step
Single stepping until exit from function strcmp,
which has no line number information.
Watchpoint 2: i

Old value = 134799408
New value = 134799409
0xbdb7f646 in strcmp () from /usr/lib/libc.so.12
(gdb) step
Single stepping until exit from function strcmp,
which has no line number information.
Watchpoint 2: i

Old value = 134799409
New value = 31
0xbdb7f658 in strcmp () from /usr/lib/libc.so.12
(gdb) step
Single stepping until exit from function strcmp,
which has no line number information.
0x0804be3b in playing_count_by_ip (w_queue=0) at findslot.c:32
32          if (strcmp(players[i].p_ip, ip) == 0) j++;
(gdb) step
26        for (i=0, j=0; i<MAXPLAYER; i++) {
(gdb) step
Watchpoint 2: i

Old value = 31
New value = 30
0x0804bdec in playing_count_by_ip (w_queue=0) at findslot.c:26
26        for (i=0, j=0; i<MAXPLAYER; i++) {
(gdb) step
27          if (players[i].p_status == PFREE) continue;
(gdb) step
26        for (i=0, j=0; i<MAXPLAYER; i++) {
(gdb) step
Watchpoint 2: i

Old value = 30
New value = 29
0x0804bdec in playing_count_by_ip (w_queue=0) at findslot.c:26
26        for (i=0, j=0; i<MAXPLAYER; i++) {
(gdb) step
27          if (players[i].p_status == PFREE) continue;
(gdb) step
26        for (i=0, j=0; i<MAXPLAYER; i++) {
(gdb) step
Watchpoint 2: i

Old value = 29
New value = 28
0x0804bdec in playing_count_by_ip (w_queue=0) at findslot.c:26
26        for (i=0, j=0; i<MAXPLAYER; i++) {
(gdb)