diff --git a/plugins/org.eclipse.dd.dsf.ui/META-INF/MANIFEST.MF b/plugins/org.eclipse.dd.dsf.ui/META-INF/MANIFEST.MF index 753bd6411e2..7e3baf87e0e 100644 --- a/plugins/org.eclipse.dd.dsf.ui/META-INF/MANIFEST.MF +++ b/plugins/org.eclipse.dd.dsf.ui/META-INF/MANIFEST.MF @@ -1,6 +1,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 -Bundle-Name: Ui Plug-in +Bundle-Name: %pluginName +Bundle-Vendor: %providerName Bundle-SymbolicName: org.eclipse.dd.dsf.ui Bundle-Version: 1.0.0 Bundle-Activator: org.eclipse.dd.dsf.ui.DsfUIPlugin diff --git a/plugins/org.eclipse.dd.dsf.ui/plugin.properties b/plugins/org.eclipse.dd.dsf.ui/plugin.properties new file mode 100644 index 00000000000..67ffce67f7c --- /dev/null +++ b/plugins/org.eclipse.dd.dsf.ui/plugin.properties @@ -0,0 +1,13 @@ +############################################################################### +# Copyright (c) 2006 Wind River Systems and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# Wind River Systems - initial API and implementation +############################################################################### +pluginName=DSDP/DD Debugger Services Framework (DSF), UI +providerName=Eclipse.org + diff --git a/plugins/org.eclipse.dd.dsf/META-INF/MANIFEST.MF b/plugins/org.eclipse.dd.dsf/META-INF/MANIFEST.MF index b9ae36656fd..5b33ce3d3d5 100644 --- a/plugins/org.eclipse.dd.dsf/META-INF/MANIFEST.MF +++ b/plugins/org.eclipse.dd.dsf/META-INF/MANIFEST.MF @@ -1,6 +1,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 -Bundle-Name: DSF Plug-in +Bundle-Name: %pluginName +Bundle-Vendor: %providerName Bundle-SymbolicName: org.eclipse.dd.dsf Bundle-Version: 1.0.0 Bundle-Activator: org.eclipse.dd.dsf.DsfPlugin diff --git a/plugins/org.eclipse.dd.dsf/plugin.properties b/plugins/org.eclipse.dd.dsf/plugin.properties new file mode 100644 index 00000000000..7152bf0a89d --- /dev/null +++ b/plugins/org.eclipse.dd.dsf/plugin.properties @@ -0,0 +1,13 @@ +############################################################################### +# Copyright (c) 2006 Wind River Systems and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# Wind River Systems - initial API and implementation +############################################################################### +pluginName=DSDP/DD Debugger Services Framework (DSF) +providerName=Eclipse.org + diff --git a/plugins/org.eclipse.dd.dsf/src/org/eclipse/dd/dsf/concurrent/DsfRunnable.java b/plugins/org.eclipse.dd.dsf/src/org/eclipse/dd/dsf/concurrent/DsfRunnable.java index 65bc577c7df..6318b8a9dcb 100644 --- a/plugins/org.eclipse.dd.dsf/src/org/eclipse/dd/dsf/concurrent/DsfRunnable.java +++ b/plugins/org.eclipse.dd.dsf/src/org/eclipse/dd/dsf/concurrent/DsfRunnable.java @@ -18,4 +18,28 @@ package org.eclipse.dd.dsf.concurrent; * place holder for future tracing enhancments for DSF. */ abstract public class DsfRunnable implements Runnable { + private StackTraceElement [] fStackTrace = null; + + public DsfRunnable() { + // Use assertion flag (-ea) to jre to avoid affecting performance when not debugging. + boolean assertsEnabled = false; + assert assertsEnabled = true; + if (assertsEnabled) { + fStackTrace = Thread.currentThread().getStackTrace(); + } + } + + public String toString () { + // If assertions are not turned on. + if (fStackTrace == null) return super.toString(); + + StringBuilder builder = new StringBuilder() ; + // ommit the first elements in the stack trace + for ( int i= 3 ; i < fStackTrace.length; i++ ) { + builder.append ( "\tat " ) ; + builder.append ( fStackTrace [ i ] .toString ()) ; + builder.append ( "\n" ) ; + } + return builder.toString () ; + } }