I just noticed, while debugging a huge executable, that
I couldn't get watchpoints to actually trigger while
working on an UltraSPARC running Solaris 2.5.1 running
gdb-4.16 built on the same machine.
Trying "p *(some address)" would show a value. Then,
I'd do "watch *(some address)" and "continue", and
it would act normal (take a lot longer to run, etc.).
Next thing is the executable being debugged would crash
(that's why I was debugging it ;-), and I'd do
"p *(some address)" again, the value would be different,
but no watch point.
The work-around was simple -- I switched to a SuperSPARC
running Solaris 2.5.1 on the same network. Using gdb-4.15.1
or something like that, the same commands worked fine, though
of course the Super took longer.
If you don't already know about this problem, and need me
to get you sample executables and command sequences, please
just let me know where to shovel the huge executable (probably
over 8MB) to you. (It's the GNU Fortran compiler module,
I'd say more, but have the feeling the problem is already
known about and probably fixed, and am in crunch mode trying
to release the newest g77. But I'll make time to help improve
gdb by submitting a better bug report if that would help!
tq vm, (burley)