1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-10 03:53:21 +02:00

Ignore exception when doing

set auto-solib-path on
This commit is contained in:
Alain Magloire 2003-04-21 15:15:16 +00:00
parent 01011016c0
commit 332f6a338c
2 changed files with 11 additions and 2 deletions

View file

@ -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) {

View file

@ -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) {