This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Freeze in GC_suspend_handler


>>>>> "Daniel" == Daniel Bonniot <Daniel.Bonniot@inria.fr> writes:

Tom> I think the next thing to do is to try to see why this field
Tom> isn't initialized.  One way to do that would be to put a
Tom> watchpoint on the value and then see when/why it changes to 0.

Daniel> What are the precise commands to do that? I suppose using
Daniel> watch, but I don't know much about gdb. Can I watch only this
Daniel> instance of the field?

Yes.  What I typically do is find the address of the field, and then
watch it like this:

    watch *(int*) 0x....

This ensures you get a hardware watchpoint, so it will work quickly.

If the address isn't valid you'll have to play games to figure out
when it becomes valid.  Usually this involves setting a breakpoint at
the appropriate place.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]