[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: netbsd build update

From: Ben Pfaff
Subject: Re: netbsd build update
Date: Tue, 16 May 2006 08:22:17 -0700
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)

Jason Stover <address@hidden> 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]