On Mon, 24 Jan 2000, J. op den Brouw wrote:
(snip)
> Breakpoint 1, main (ac=1, av=0x7b03a474) at ../htlib/Object.h:30
> 30 Object() {}
> (gdb) print config.dcGlobalVars.tableLength
> $1 = 539787264
> (gdb)
>
>
> Aha! tableLength isn't 0! But WHY is tableLength 0 when htdig
> wants to calculate index?
About this: just after the break at main the dcGlobalVars variable is:
(gdb) print config.dcGlobalVars
$2 = {<Object> = {_vptr$ = 0x202c8000}, table = 0xe0202f12, tableLength =
539787264, initialCapacity = -534761630,
count = 539787264, threshold = -534762014, loadFactor = 9.09272603e-13,
cursor = {currentTableIndex = 1211448737,
currentDictionaryEntry = 0x48333da9}}
(gdb)
It seems that this variable is not initialized! Maybe this gcc compiler
does not properly initalize globals to 0 (or whatever).
--jesse
--------------------------------------------------------------------
J. op den Brouw Johanna Westerdijkplein 75
Haagse Hogeschool 2521 EN DEN HAAG
Sector Techniek Netherlands
Afdeling Elektrotechniek +31 70 4458936
-------------------- [EMAIL PROTECTED] --------------------
Linux - because reboots are for hardware changes
------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED]
You will receive a message to confirm this.