mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
must handle null exe now when attaching
This commit is contained in:
parent
6a1a4e7365
commit
d6607ac5b1
1 changed files with 2 additions and 1 deletions
|
@ -132,7 +132,8 @@ public class GDBCDIDebugger implements ICDIDebugger {
|
|||
int pid = config.getAttribute(ICDTLaunchConfigurationConstants.ATTR_ATTACH_PROCESS_ID, -1);
|
||||
File cwd = getProjectPath(config).toFile();
|
||||
String gdbinit = config.getAttribute(IMILaunchConfigurationConstants.ATTR_GDB_INIT, ".gdbinit"); //$NON-NLS-1$
|
||||
session = MIPlugin.getDefault().createCSession(gdb, exe.getPath().toFile(), pid, null, cwd, gdbinit, monitor);
|
||||
File exeFile = exe != null ? exe.getPath().toFile() : null;
|
||||
session = MIPlugin.getDefault().createCSession(gdb, exeFile, pid, null, cwd, gdbinit, monitor);
|
||||
initializeLibraries(config, session);
|
||||
return session;
|
||||
} catch (Exception e) {
|
||||
|
|
Loading…
Add table
Reference in a new issue