Open forksnd opened 4 days ago
Currently, file_path_map
s should not have any path transformations applied to them. You can use relative or absolute paths and they should simply be preserved how you input them (unlike some other things which are written as relative to the user/project file). Are you seeing different behavior?
Imagine a folder structure like:
A
|-B
|-a.exe
|-C
|-D
|-E
|-a.raddbg_project
When I launch raddbg, the working directory is A
. To launch a.exe
, I have to add the target.executable
as ../../B/a.exe
in the project file (since this path is relative to the project file). But to map A/C/D
as C:/src
, the file_path_map.dest
has to be set as C/D
(since it seems to be relative to the working directory).
In the
.raddbg_project
file, some relative paths (liketarget.executable
) are calculated from the path in which the.raddbg_project
file is located while other paths (likefile_path_map.dest
) seem to be calculated from the present working directory. Uniformity in this would be good -- ideally, all relative paths should be calculated from the path of the.raddbg_project
file.