mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 201000
This commit is contained in:
parent
d8fb6a0a1d
commit
f9895112b7
1 changed files with 8 additions and 4 deletions
|
@ -7,6 +7,7 @@
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Nokia - initial API and implementation
|
* Nokia - initial API and implementation
|
||||||
|
* Ling Wang (Nokia) bug 201000
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.cdt.utils.debug.dwarf;
|
package org.eclipse.cdt.utils.debug.dwarf;
|
||||||
|
@ -179,14 +180,17 @@ public class DwarfReader extends Dwarf implements ISymbolReader {
|
||||||
|
|
||||||
|
|
||||||
// Check to see if the file exists, if not, append the path information from the dir info.
|
// Check to see if the file exists, if not, append the path information from the dir info.
|
||||||
// In cases where the file name has the full path, only the drive letter is added.
|
// On Win32, if the file name has the full path except the drive letter,
|
||||||
// In some cases the file name has the full path except the drive letter,
|
// add the driver letter.
|
||||||
// in other cases the file name doesn't have the path info so we need to add the complete dir path.
|
// Otherwise if the file name is not absolute, prepend the "dir".
|
||||||
|
|
||||||
if ( !pa.toFile().exists() && dir.length() > 0)
|
if ( !pa.toFile().exists() && dir.length() > 0)
|
||||||
{
|
{
|
||||||
if (pa.isAbsolute())
|
if (pa.isAbsolute())
|
||||||
fullName = dir.substring(0, 2) + name;
|
{
|
||||||
|
if (pa.getDevice() == null && dir.charAt(1) == ':') // no drive letter
|
||||||
|
fullName = dir.substring(0, 2) + name;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
fullName = dir + File.separatorChar + name;
|
fullName = dir + File.separatorChar + name;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue