1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 09:25:31 +02:00
Find a file
Jonah Graham 6283890715 Bug 472765: Use gdb's "set substitute-path from to"
Add support for gdb's "set substitute-path from to" by adding a new
service called GDBSourceLookup that uses GDB to perform the path
mapping.

The new GDBSourceLookup service uses the new GdbSourceLookupDirector to
get the set of paths that need mapping using GDB's "set
substitute-path" and the director resolves compilation path differently
so as to leave the GDB backend to handle the local path to compile path
resolution.

The MappingSourceContainer has been enhanced to allow a per mapping
container override of the new behaviour. This is a fallback as the
default behaviour when using GDB is to use "set substitute-path".

The MappingSourceContainerDialog exposes the new option in
MappingSourceContainer as a checkbox at the bottom of the path mapping
dialog in a backend agnostic way.

The new code is tested in methods called "sourceSubstitute*" and
mirror the same tests for the now non-backend handled version
which are "sourceMapping*". Note that
doMappingAndLaunch/doSubstituteAndLaunch have been updated to explicitly
check or uncheck the setIsMappingWithBackendEnabled setting

Change-Id: I122d7c597cd461d8e38c4f82522ccfdf9e51a5ba
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-03-16 22:30:51 -04:00
build Missing @since tag 2016-03-15 09:56:03 -04:00
codan Bug 489553 - ConcurrentModificationException below 2016-03-15 08:57:52 -04:00
core Cosmetics. 2016-03-16 17:38:01 -07:00
cross Bug 484900: Remove Majority of CDI classes 2016-03-08 19:18:05 -05:00
debug Bug 472765: Use gdb's "set substitute-path from to" 2016-03-16 22:30:51 -04:00
doc Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
dsf Bug 302305 - Added a timeout to queries which are run more frequently. 2016-03-11 10:10:06 -05:00
dsf-gdb Bug 472765: Use gdb's "set substitute-path from to" 2016-03-16 22:30:51 -04:00
jtag Bug 484900: Remove Majority of CDI classes 2016-03-08 19:18:05 -05:00
launch Fixed warnings: do not call MessageFormat#format(...) with String[]. 2016-03-14 13:41:59 -04:00
llvm Missing copyright header. 2016-02-01 12:47:41 -05:00
lrparser Removed 3 deprecated methods. 2016-02-24 20:04:15 -08:00
memory Bug 488115 - [memory] Add "go to address" action to the Traditional 2016-02-26 10:54:19 -05:00
native/org.eclipse.cdt.native.serial Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
qt Bug 472765: Use gdb's "set substitute-path from to" 2016-03-16 22:30:51 -04:00
releng Remove old releng plugin 2016-03-14 16:16:27 -04:00
remote Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
testsrunner Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
toolchains/arduino New Qt templates using new templates framework. Arduino fixes. 2016-02-22 22:55:06 -05:00
upc Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
util Cosmetics. 2016-03-02 14:34:20 -08:00
visualizer Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
windows Missing copyright header. 2016-02-01 12:47:41 -05:00
xlc Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
.gitignore Ignore NFS-created files. 2012-11-08 13:34:54 -08:00
pom.xml Remove p2 plugin 2016-03-14 10:19:21 -05:00