new software on the server, ..., almost done

Peter Van Epp vanepp at sfu.ca
Fri Sep 7 10:38:36 EDT 2007


On Thu, Sep 06, 2007 at 10:29:18PM -0400, Carter Bullard wrote:
> Hey Peter,
> In your gdb, do an:
>    (gdb) up
>    (gdb) up
> 
> That should put you in the ArgusCopyRecordStruct() routine.
> The question is "what is the value of rec->dsrs[i]"
> 
>    (gdb) print rec->dsrs[i]
>    (gdb) print retn->dsrs[i]
>    (gdb) print *user
>    (gdb) print i
> 
> Carter
> 

#1  0x0005c804 in ArgusCopyRecordStruct (rec=0x405234) at ./argus_client.c:3359
3359                            bcopy (rec->dsrs[i], retn->dsrs[i], size + 8);
(gdb) print rec->dsrs[i]
$1 = (struct ArgusDSRHeader *) 0x45550c
(gdb) print *print rec->dsrs[i]
No symbol "print" in current context.
(gdb) print *rec->dsrs[i]
$2 = {
  type = 80 'P', 
  subtype = 160 '?', 
  dsr_un = {
    fl = {
      data = 130
    }, 
    vl8 = {
      qual = 0 '\0', 
      len = 130 '?'
    }, 
    vl16 = {
      len = 130
    }
  }
}
(gdb) print retn->dsrs[i]
$3 = (struct ArgusDSRHeader *) 0x0
(gdb) print *retn->dsrs[i]
$4 = {
  type = 0 '\0', 
  subtype = 0 '\0', 
  dsr_un = {
    fl = {
      data = 0
    }, 
    vl8 = {
      qual = 0 '\0', 
      len = 0 '\0'
    }, 
    vl16 = {
      len = 0
    }
  }
}
(gdb) print *user
$5 = {
  hdr = {
    type = 80 'P', 
    subtype = 160 '?', 
    dsr_un = {
      fl = {
        data = 130
      }, 
      vl8 = {
        qual = 0 '\0', 
        len = 130 '?'
      }, 
      vl16 = {
        len = 130
      }
    }
  }, 
  size = 512, 
  count = 512, 
  array = "HTTP/1.1"
}
(gdb) print i
$6 = 12
(gdb) print size
$7 = 512

Peter Van Epp / Operations and Technical Support 
Simon Fraser University, Burnaby, B.C. Canada




More information about the argus mailing list