Displaying 1 result from an estimated 1 matches for "linklength".
Did you mean:
linelength
2000 Oct 02
4
Debugging dynloaded C-code with gdb
...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
linenumbers show up in the sequence 216, 217, 218, 216, 217, 218, 219, 218,
219, 220, 221 and b) that the values of `xnb' and `ynb' in the end do not
correspond with those shown by fprintf in the s...