Commit 63da3cb9 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Debugger: Do not use native path separators for source directory

In target debugging or core dump, the source is typically linux,
so converting the separators doesn't make much sense.

Paths are converted internally by CdbEngine, so no change is needed there.

This is required for regular expressions support.

Change-Id: I19488798856b731ef77a14383d12b110eae5d369
Reviewed-by: default avatarhjk <>
parent dbab3dc2
......@@ -86,7 +86,7 @@ public:
bool isNewPlaceHolderAt(int row) { return isNewPlaceHolder(rawMappingAt(row)); }
void addMapping(const QString &source, const QString &target)
{ addRawMapping(QDir::toNativeSeparators(source), QDir::toNativeSeparators(target)); }
{ addRawMapping(source, QDir::toNativeSeparators(target)); }
void addNewMappingPlaceHolder()
{ addRawMapping(m_newSourcePlaceHolder, m_newTargetPlaceHolder); }
......@@ -176,7 +176,7 @@ void SourcePathMappingModel::setSource(int row, const QString &s)
QStandardItem *sourceItem = item(row, SourceColumn);
QTC_ASSERT(sourceItem, return);
sourceItem->setText(s.isEmpty() ? m_newSourcePlaceHolder : QDir::toNativeSeparators(s));
sourceItem->setText(s.isEmpty() ? m_newSourcePlaceHolder : s);
void SourcePathMappingModel::setTarget(int row, const QString &t)
......@@ -285,7 +285,7 @@ QString DebuggerSourcePathMappingWidget::editTargetField() const
void DebuggerSourcePathMappingWidget::setEditFieldMapping(const Mapping &m)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment