Jason Stover <[EMAIL PROTECTED]> writes:
> At descriptives.c:795, gdb can't see dv, x or weight correctly. I had
> to move their declarations out of the local scope:
>
> for (i = 0; i < dsc->var_cnt; i++)
> {
> struct dsc_var *dv = &dsc->vars[i];
> double x = case_num (&c, dv->v->fv);
> ...
>
> to the beginning of calc_descriptives(...). Then everything looked
> fine in descriptives.c, but that didn't help with the trouble in
> moments_pass_two(...), where gdb still tells me that d is a struct
> outp_driver *.
When I get confusing stuff like this from gdb, usually I edit the
Makefile to disable optimization (by removing -O2 from CFLAGS)
and then recompile the offending file (by deleting its .o then
running make) or the whole program (make clean; make). Then gdb
is usually a lot easier to use.
--
"The fact is, technical people are better off not looking at patents. If
you don't know what they cover and where they are, you won't be knowingly
infringing on them. If somebody sues you, you change the algorithm or you
just hire a hit-man to whack the stupid git." --Linus Torvalds
_______________________________________________
pspp-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/pspp-dev