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

Improve presentation of GNU archive file content in Project Explorer #630

Closed
jld01 opened this issue Nov 24, 2023 · 1 comment · Fixed by #690
Closed

Improve presentation of GNU archive file content in Project Explorer #630

jld01 opened this issue Nov 24, 2023 · 1 comment · Fixed by #690
Assignees
Milestone

Comments

@jld01
Copy link
Contributor

jld01 commented Nov 24, 2023

When building a static library using a GNU toolchain, CDT presents the object files within the archive as child nodes within the Project Explorer view. However, there are issues with this behaviour:

  • The location attributes of the object files are not correct. Attempts to manipulate an object file (eg to open the file) will therefore fail.
  • Multiple object files with the same file name (different paths) are not presented.

It is possible to calculate the correct location of the object file by building the archive with the -P (use full path) option and using the build CWD to resolve relative paths. This should allow us to provide behaviour equivalent to the child nodes of executable files within Project Explorer.

@jld01
Copy link
Contributor Author

jld01 commented Dec 13, 2023

Work is also required in the PEBinaryObject64 class to support object data lookup from archive as for ElfBinaryObject.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant