Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-debug-dev] Setting the stackframe is multi thread safe?

Hitoshi,

You are absolutely right. Any operation that issues the sequence of gdb commands should be atomic. Surprisingly, there no bugs have been reported so far. I have had several discussions on this issue with Alain Magloire and my opinion is that it should be thread safe.
Please, submit a Bugzilla entry.

Regards,
Mikhail Khodjaiants

----- Original Message ----- From: "kmaxima" <kmaxima@xxxxxxxxxxx>
To: <cdt-debug-dev@xxxxxxxxxxx>
Sent: Thursday, January 19, 2006 10:01 AM
Subject: [cdt-debug-dev] Setting the stackframe is multi thread safe?


Hello.

I posted my question to other newsgroup, but I found here is
more suitable.

I'm using CDT 2.1.1 into Eclipse 3.0.2,
I found just like following code at several points in cdt.

currentThread.setCurrentStackFrame(...) // set the stackframe
do something
currentThread.setCurrentStackFrame(...) // reset the stackframe

For example, VariableManager#getArgumentDescriptors and
ExpressionManager#createVariable are using this code.

My Question is "Setting the stackframe is multi thread safe?".

I think that two threads change the stack frame at same time,
causes stack frame level crash.

( And VariableManager and ExpressionManager seem to run on another
thread.)

Any Idea?

Thank you.

Hitoshi Yoshida


_______________________________________________
cdt-debug-dev mailing list
cdt-debug-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-debug-dev



Back to the top