Commit bff3a395 authored by claes's avatar claes

New variable for size

parent 863cc83c
...@@ -286,6 +286,7 @@ subsm_SendBuffer ( ...@@ -286,6 +286,7 @@ subsm_SendBuffer (
void *data; void *data;
gdb_sClass *classp; gdb_sClass *classp;
cdh_uTypeId cid; cdh_uTypeId cid;
int asize;
gdb_AssumeLocked; gdb_AssumeLocked;
...@@ -365,12 +366,12 @@ subsm_SendBuffer ( ...@@ -365,12 +366,12 @@ subsm_SendBuffer (
dp->sts = sp->sts; dp->sts = sp->sts;
if (ODD(sp->sts)) { if (ODD(sp->sts)) {
size = sp->aref.Size; asize = sp->aref.Size;
cid.pwr = sp->aref.Body; cid.pwr = sp->aref.Body;
cid.c.bix = 0; /* To get the class id. */ cid.c.bix = 0; /* To get the class id. */
classp = hash_Search(&sts, gdbroot->cid_ht, &cid.pwr); classp = hash_Search(&sts, gdbroot->cid_ht, &cid.pwr);
if (classp == NULL) if (classp == NULL)
ndc_ConvertData(&dp->sts, np, classp, &sp->aref, dp->data, data, &size, ndc_eOp_encode, sp->aref.Offset, 0); ndc_ConvertData(&dp->sts, np, classp, &sp->aref, dp->data, data, &asize, ndc_eOp_encode, sp->aref.Offset, 0);
sp->count++; sp->count++;
mp->count++; mp->count++;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment