Displaying 1 result from an estimated 1 matches for "dxpixel".
2000 Oct 02
4
Debugging dynloaded C-code with gdb
...the variable values are
different from those shown by fprintf? How comes the variable values
change when actually no value is assigned to them (and I use `n', not
`s')?
Let me give you a short piece of my code (the line number in brackets)
(216) dyPixel = loc_mat[k][l] / 16;
(217) dxPixel = loc_mat[k][l] - 16 * dyPixel;
(218) ynb = k + (dyPixel - 8) / 8.;
(219) xnb = l + (dxPixel - 8) / 8.;
(220) fprintf(stderr, "%i %i %f %f\n", dyPixel, dxPixel, ynb, xnb);
(221) linkLength = hypot(xnb-x, ynb-x);
and the corresponding output of gdb, using `n' - note that a) the
li...