Open GoogleCodeExporter opened 9 years ago
I tried to run this with gdb. But to get sensible results, it looks as though I
need to recompile with CFLAGS="-g3 -O0 -ggdb", otherwise gdb steps over many
lines of code at once, i.e. doesn't step on each line. But when I try:
./configure CFLAGS="-g3 -O0 -ggdb"
make clean
make
then I get multiple errors:
undefined reference to `rgb_operm'
Not sure why.
Original comment by cmcqueen...@gmail.com
on 27 Jan 2011 at 10:12
I was trying to run gdb on dieharder as follows:
gdb --args dieharder -a -g 601
then:
b select_rng
run
n
n
etc
but n (next) was skipping over many lines of source.
Original comment by cmcqueen...@gmail.com
on 27 Jan 2011 at 10:13
Ignoring the separate issue with gdb (I'll just add printf's instead)...
It looks as though dh_rng_types[601] isn't being set. It should be set by
add_ui_rngs().
The code seems not to be calling add_ui_rngs() in a suitable spot in the code.
Unfortunately, it _is_ calling that function from list_rngs(), meaning the
user-defined generator is successfully shows up in the list of
generators--which is confusing. The comment there "This SHOULD be the first
time this is called (and the only time)" doesn't seem to make sense,
considering what other code is trying to do.
So I think that misleading comment should be deleted, and a call to
add_ui_rngs() should be added in some other suitable spot--perhaps just after
the call to dieharder_rng_types() in main() in dieharder.c.
Original comment by cmcqueen...@gmail.com
on 30 Jan 2011 at 8:35
Original issue reported on code.google.com by
cmcqueen...@gmail.com
on 25 Jan 2011 at 2:18