All pastes #423553 Raw Edit

Someone

public text v1 · immutable
·published 2007-04-04 08:32 UTC
rendered paste body
handlePlanReq (packet=0xbfbfde90) at socket.c:1325
1325        if (!F_check_planets) return;
(gdb) n
1321    {
(gdb) n
1325        if (!F_check_planets) return;
(gdb) n
1326        if (packet->pnum < 0 || packet->pnum > MAXPLANETS) return;
(gdb) n
1328        plan = &planets[packet->pnum];
(gdb) n
1330        if (plan->pl_info & me->p_team) {
(gdb) n
1331            if ( plan->pl_info != packet->info
(gdb) n
54      {
(gdb) n
55              __asm __volatile (
(gdb) n
54      {
(gdb) n
68              __asm __volatile ("rorw $8, %w1" : "=r" (x) : "0" (x));
(gdb) n
67      {
(gdb) n
1335                pl->type=SP_PLANET;
(gdb) n

Program received signal SIGSEGV, Segmentation fault.
handlePlanReq (packet=0xbfbfde90) at socket.c:1335
1335                pl->type=SP_PLANET;
(gdb) p SP_PLANET
No symbol "SP_PLANET" in current context.
(gdb) p pl
$1 = (struct planet_spacket *) 0x26
(gdb) exit