1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 10:46:02 +02:00

2005-08-04 Alain Magloire

ClastCastException being throw in CThread.getAdapter(IRunToLine.class);
	Patch solution to ignore the exception.

	* src/org/eclipse/cdt/debug/internal/core/model/CThread.java
This commit is contained in:
Alain Magloire 2005-08-05 00:19:16 +00:00
parent 08367e21b0
commit cabc71e9e2
2 changed files with 18 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2005-08-04 Alain Magloire
ClastCastException being throw in CThread.getAdapter(IRunToLine.class);
Patch solution to ignore the exception.
* src/org/eclipse/cdt/debug/internal/core/model/CThread.java
2005-07-29 Mikhail Khodjaiants
The registers with errors shouldn't be disposed when the target is suspended.
Added synchronization to the "getRegisters" method.

View file

@ -787,7 +787,12 @@ public class CThread extends CDebugElement implements ICThread, IRestart, IResum
adapter.equals( IJumpToLine.class ) ||
adapter.equals( IJumpToAddress.class ) ) {
try {
return (ICStackFrame)getTopStackFrame();
// Alain: Put a proper fix later.
Object obj = getTopStackFrame();
if (obj instanceof ICStackFrame) {
return (ICStackFrame)obj;
}
//return (ICStackFrame)getTopStackFrame();
}
catch( DebugException e ) {
// do nothing
@ -797,7 +802,12 @@ public class CThread extends CDebugElement implements ICThread, IRestart, IResum
return this;
if ( adapter == ICStackFrame.class ) {
try {
return (ICStackFrame)getTopStackFrame();
// Alain: Put a proper fix later.
Object obj = getTopStackFrame();
if (obj instanceof ICStackFrame) {
return (ICStackFrame)obj;
}
//return (ICStackFrame)getTopStackFrame();
}
catch( DebugException e ) {
// do nothing