DSF-GDB Remote Debug - Attach To process- Always ask to select binary file [message #1424186] |
Mon, 15 September 2014 12:05  |
Eclipse User |
|
|
|
Hi,
I try to debug a process with gdb remote connection. I successfully launch the "Attach to Application" config. But after selecting the process (from Select Processes dialog) it always asks the binary file path although it is specified in launch config. I have debugged DSF code and found something. But not sure it is related or not. if (fProcessNameToBinaryMap.isEmpty()) {
IPath binaryPath = backend.getProgramPath();
if (binaryPath != null && !binaryPath.isEmpty()) {
fProcessNameToBinaryMap.put(binaryPath.lastSegment(), binaryPath.toOSString());
}
}
This code is from GdbConnectCommand file line 497-502. Binary file name is put as a key into fProcessNameToBinaryMap but it is gotten by process name in PromptAndAttachToProcessJob.runInUIThread method.String binaryPath = fProcessNameToBinaryMap.get(fProcName);
In my case binary file name and process name are different from each other. e.g. binary file name is <processName>.elf and process name is <processName>. Since binary file name and process name are different it cannot find in map and it always prompts a file dialog for binary file name. Is it a bug or am I doing something wrong?
Eclipse Luna (4.4.0) + CDT 8.4.0.201406111759 + org.eclipse.cdt.dsf.gdb.ui.2.4.0.201406111759
Win XP + cygwin
Thanks.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04087 seconds