Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Varying root of relative paths #334

Open
forksnd opened this issue Oct 16, 2024 · 2 comments
Open

Varying root of relative paths #334

forksnd opened this issue Oct 16, 2024 · 2 comments
Labels
Bug A report of unintended or broken behavior. Debugger Pertains to the debugger.

Comments

@forksnd
Copy link

forksnd commented Oct 16, 2024

In the .raddbg_project file, some relative paths (like target.executable) are calculated from the path in which the .raddbg_project file is located while other paths (like file_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.

@ryanfleury
Copy link
Collaborator

Currently, file_path_maps 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?

@forksnd
Copy link
Author

forksnd commented Oct 18, 2024

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).

@ryanfleury ryanfleury added Debugger Pertains to the debugger. Bug A report of unintended or broken behavior. labels Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A report of unintended or broken behavior. Debugger Pertains to the debugger.
Projects
None yet
Development

No branches or pull requests

2 participants