Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Breakpoint 1, getPossibleAttackers (piece=0x604a80, nMoves=0x7fffffffe06c, nTurns=0) at check.c:161
- 161 for (i=0; i<NUM_TYPES; i++)
- (gdb) print moves
- $20 = (Move *) 0x604aa0
- (gdb) print &moves
- $21 = (Move **) 0x7fffffffe038
- (gdb) print moves[0]
- $22 = {piece = 0x0, dx = 0, dy = 0}
- (gdb) print moves[1]
- $23 = {piece = 0x0, dx = 0, dy = 0}
- (gdb) print moves[2]
- $24 = {piece = 0x0, dx = 0, dy = 0}
- (gdb) print moves[3]
- $25 = {piece = 0x0, dx = 0, dy = 0}
- (gdb) print moves[4]
- $26 = {piece = 0x0, dx = 0, dy = 0}
- (gdb) step
- 162 getPossibleAttackers_(piece->x, piece->y, &moves, nMoves, &mMoves, types[i], nTurns);
- (gdb) step
- getPossibleAttackers_ (x=4, y=0, moves=0x7fffffffe038, nMoves=0x7fffffffe06c, mMoves=0x7fffffffe030,
- type=..., nTurns=0) at check.c:124
- 124 for (i=0; i<type.nSteps; i++) {
- (gdb) print moves
- $28 = (Move **) 0x7fffffffe038
- (gdb) print *moves
- $29 = (Move *) 0x604aa0
- (gdb) print *moves[0]
- $30 = {piece = 0x0, dx = 0, dy = 0}
- (gdb) print *moves[1]
- $31 = {piece = 0x0, dx = -140261523, dy = 32767}
- (gdb) print *moves[2]
- $32 = {piece = 0x85ec458bf8458948, dx = -1207470656, dy = 4203880}
- (gdb) print *moves[3]
- $33 = {piece = 0x7fffffffe438, dx = -7049, dy = 32767}
- (gdb) print *moves[4]
- Cannot access memory at address 0x2004024c0
Add Comment
Please, Sign In to add comment