1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 06:32:10 +02:00
This commit is contained in:
Mikhail Khodjaiants 2005-12-31 00:51:47 +00:00
parent d9bcef0863
commit c697bbaec7
4 changed files with 10 additions and 6 deletions

View file

@ -1,3 +1,9 @@
2005-12-30 Mikhail Khodjaiants
Cleanup.
* CModule.java
* CThread.java
* CValue.java
2005-12-29 Mikhail Khodjaiants 2005-12-29 Mikhail Khodjaiants
Temporary fix for bug 122344: Memory monitors are not shown in the Memory view. Temporary fix for bug 122344: Memory monitors are not shown in the Memory view.
* CMemoryBlockRetrievalExtension.java * CMemoryBlockRetrievalExtension.java

View file

@ -192,7 +192,7 @@ public class CModule extends CDebugElement implements ICModule {
return getCElement(); return getCElement();
} }
if ( IBinary.class.equals( adapter ) && getCElement() instanceof IBinary ) { if ( IBinary.class.equals( adapter ) && getCElement() instanceof IBinary ) {
return (IBinary)getCElement(); return getCElement();
} }
return super.getAdapter( adapter ); return super.getAdapter( adapter );
} }

View file

@ -821,9 +821,8 @@ public class CThread extends CDebugElement implements ICThread, IRestart, IResum
// Alain: Put a proper fix later. // Alain: Put a proper fix later.
Object obj = getTopStackFrame(); Object obj = getTopStackFrame();
if (obj instanceof ICStackFrame) { if (obj instanceof ICStackFrame) {
return (ICStackFrame)obj; return obj;
} }
//return (ICStackFrame)getTopStackFrame();
} }
catch( DebugException e ) { catch( DebugException e ) {
// do nothing // do nothing
@ -836,9 +835,8 @@ public class CThread extends CDebugElement implements ICThread, IRestart, IResum
// Alain: Put a proper fix later. // Alain: Put a proper fix later.
Object obj = getTopStackFrame(); Object obj = getTopStackFrame();
if (obj instanceof ICStackFrame) { if (obj instanceof ICStackFrame) {
return (ICStackFrame)obj; return obj;
} }
//return (ICStackFrame)getTopStackFrame();
} }
catch( DebugException e ) { catch( DebugException e ) {
// do nothing // do nothing

View file

@ -170,7 +170,7 @@ public class CValue extends AbstractCValue {
} }
} }
catch( CDIException e ) { catch( CDIException e ) {
requestFailed( e.getMessage(), e ); //$NON-NLS-1$ requestFailed( e.getMessage(), e );
} }
return Arrays.asList( vars ); return Arrays.asList( vars );
} }