diff options
author | Orgad Shaneh <[email protected]> | 2014-09-07 23:24:10 +0300 |
---|---|---|
committer | Orgad Shaneh <[email protected]> | 2014-09-18 13:37:04 +0200 |
commit | f0e2708d3e516a2999818dfc85d0d4809b21171e (patch) | |
tree | 7200eab8b0b0e35b219a9da7388de4bb49f7d26d /src/plugins/debugger/debuggersourcepathmappingwidget.cpp | |
parent | 63da3cb9e0545fe2ecf143ac32097141e3d4c8af (diff) |
Debugger: Support setting substitute path by regexp
This is useful when there are multiple build machines with different
path, and the user would like to match anything up to some known
directory to his local project (variable support will also be useful -
will try to add that later).
Syntax: (/home/.*)/KnownSubdir -> /home/my/project
Capture group will be replaced by the value.
In this example the substitute path will be (in case a source string
found such as /home/SomeUser/SomeProject/KnownSubdir/foo.cpp):
/home/SomeUser/SomeProject -> /home/my/project
Change-Id: I19d03c9388161d8456a86676086dcb06dc3d7370
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/debugger/debuggersourcepathmappingwidget.cpp')
-rw-r--r-- | src/plugins/debugger/debuggersourcepathmappingwidget.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/plugins/debugger/debuggersourcepathmappingwidget.cpp b/src/plugins/debugger/debuggersourcepathmappingwidget.cpp index e2175cdb781..34b1ce7277a 100644 --- a/src/plugins/debugger/debuggersourcepathmappingwidget.cpp +++ b/src/plugins/debugger/debuggersourcepathmappingwidget.cpp @@ -211,7 +211,13 @@ DebuggerSourcePathMappingWidget::DebuggerSourcePathMappingWidget(QWidget *parent "<p>This is useful when using a copy of the source tree " "at a location different from the one " "at which the modules where built, for example, while " - "doing remote debugging.</body></html>")); + "doing remote debugging.</p>" + "<p>If source is specified as a regular expression by starting it with an " + "open parenthesis, Qt Creator matches the paths in the ELF with the " + "regular expression to automatically determine the source path.</p>" + "<p>Example: <b>(/home/.*/Project)/KnownSubDir -> D:\\Project</b> will " + "substitute ELF built by any user to your local project directory.</p>" + "</body></html>")); // Top list/left part. m_treeView->setRootIsDecorated(false); m_treeView->setUniformRowHeights(true); |