config, terminal, command: Add substitute-path parameter to configuration file. (#640)

Allows to rewrite a source path stored in program's debug information,
if the sources were moved to a different place between compilation and
debugging.
This commit is contained in:
Evgeny L
2016-10-25 20:01:38 +03:00
committed by Derek Parker
parent 0f4b5150c3
commit 35bc789b3b
4 changed files with 147 additions and 3 deletions

View File

@ -1252,7 +1252,7 @@ func printcontextThread(t *Term, th *api.Thread) {
}
func printfile(t *Term, filename string, line int, showArrow bool) error {
file, err := os.Open(filename)
file, err := os.Open(t.substitutePath(filename))
if err != nil {
return err
}