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

Fix passing long environment variables to the debugger #87

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

ylatuya
Copy link
Contributor

@ylatuya ylatuya commented Nov 23, 2021

Replace the command buffer with a std::string to support reading arbitrary command line lengths. This is required in projects like GStreamer that sets long environment variables like GST_PLUGIN_PATH with several directory paths on it.

microsoft/vscode-cpptools#8411
microsoft/vscode-cpptools#6874

@ylatuya ylatuya changed the title Fix passing long environment variables to de debugger Fix passing long environment variables to the debugger Nov 23, 2021
src/MICmnStreamStdin.h Outdated Show resolved Hide resolved
@xclaesse
Copy link

Increase the command buffer size x10

You might want to update PR description because that's not what the code does any more. Much better to use std::string than hardcoding a size indeed.

Replace the command buffer with a std::string to support reading
arbitrary command line lengths. This is required in projects like
GStreamer that setup long environment variables like GST_PLUGIN_PATH
with several directories on it.

microsoft/vscode-cpptools#8411
microsoft/vscode-cpptools#6874
@sunshaoce
Copy link
Collaborator

Any other opinions? If not, I think we can merge it :)

@sunshaoce
Copy link
Collaborator

If there are no new opinions, I will merge this PR next week. Thank you all!

@sunshaoce sunshaoce merged commit 4fe9c66 into lldb-tools:main Oct 17, 2023
3 checks passed
@ylatuya
Copy link
Contributor Author

ylatuya commented Oct 23, 2023

@sunshaoce thanks for merging this. This PR was created with the following original problem microsoft/vscode-cpptools#6874. What is needed for vscode to use a version of lldb-mi with this new patch?

@sunshaoce
Copy link
Collaborator

Maybe you can PING them.

@ylatuya
Copy link
Contributor Author

ylatuya commented Oct 23, 2023

This is handed here: microsoft/vscode-cpptools#11566

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 this pull request may close these issues.

5 participants