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:
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
|
2005-07-29 Mikhail Khodjaiants
|
||||||
The registers with errors shouldn't be disposed when the target is suspended.
|
The registers with errors shouldn't be disposed when the target is suspended.
|
||||||
Added synchronization to the "getRegisters" method.
|
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( IJumpToLine.class ) ||
|
||||||
adapter.equals( IJumpToAddress.class ) ) {
|
adapter.equals( IJumpToAddress.class ) ) {
|
||||||
try {
|
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 ) {
|
catch( DebugException e ) {
|
||||||
// do nothing
|
// do nothing
|
||||||
|
@ -797,7 +802,12 @@ public class CThread extends CDebugElement implements ICThread, IRestart, IResum
|
||||||
return this;
|
return this;
|
||||||
if ( adapter == ICStackFrame.class ) {
|
if ( adapter == ICStackFrame.class ) {
|
||||||
try {
|
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 ) {
|
catch( DebugException e ) {
|
||||||
// do nothing
|
// do nothing
|
||||||
|
|
Loading…
Add table
Reference in a new issue