diff options
author | Alain Magloire | 2003-04-21 15:15:16 +0000 |
---|---|---|
committer | Alain Magloire | 2003-04-21 15:15:16 +0000 |
commit | 332f6a338cabf6a640f60a030387358133169027 (patch) | |
tree | 21eb0189f5ec8db9d57b2e793c3c35eac491ca4c | |
parent | 01011016c0e3af33409e2328ad169ff6b643503f (diff) | |
download | org.eclipse.cdt-332f6a338cabf6a640f60a030387358133169027.tar.gz org.eclipse.cdt-332f6a338cabf6a640f60a030387358133169027.tar.xz org.eclipse.cdt-332f6a338cabf6a640f60a030387358133169027.zip |
Ignore exception when doing
set auto-solib-path on
2 files changed, 11 insertions, 2 deletions
diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBDebugger.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBDebugger.java index 297d551c8e4..a7f50cccf46 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBDebugger.java +++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBDebugger.java @@ -27,7 +27,12 @@ public class GDBDebugger implements ICDebugger { ICDISharedLibraryManager mgr = session.getSharedLibraryManager(); if (mgr instanceof SharedLibraryManager) { boolean autolib = config.getAttribute(IMILaunchConfigurationConstants.ATTR_AUTO_SOLIB, false); - ((SharedLibraryManager)mgr).setAutoLoadSymbols(autolib); + try { + ((SharedLibraryManager)mgr).setAutoLoadSymbols(autolib); + } catch (CDIException e) { + // Ignore this error + // it seems to be a real problem on many gdb platform + } } List p = config.getAttribute(IMILaunchConfigurationConstants.ATTR_SOLIB_PATH, new ArrayList(1)); if (p.size() > 0) { diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBServerDebugger.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBServerDebugger.java index a3a9eb3eb7a..2459e696c50 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBServerDebugger.java +++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBServerDebugger.java @@ -34,7 +34,11 @@ public class GDBServerDebugger implements ICDebugger { ICDISharedLibraryManager mgr = session.getSharedLibraryManager(); if (mgr instanceof SharedLibraryManager) { boolean autolib = config.getAttribute(IGDBServerMILaunchConfigurationConstants.ATTR_AUTO_SOLIB, false); - ((SharedLibraryManager)mgr).setAutoLoadSymbols(autolib); + try { + ((SharedLibraryManager)mgr).setAutoLoadSymbols(autolib); + } catch (CDIException e) { + // ignore this one, cause problems for many gdb. + } } List p = config.getAttribute(IGDBServerMILaunchConfigurationConstants.ATTR_SOLIB_PATH, new ArrayList(1)); if (p.size() > 0) { |