mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 02:36:01 +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:
parent
08367e21b0
commit
cabc71e9e2
2 changed files with 18 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue