-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Stack-based string initialization on a single line #6431
Comments
It is not currently possible. It's even more painful when it's a pointer because you can't even get that output and are stuck doing mental gymnastics to figure out the value from different sized assignments and concat macros. Also you're lucky that example is showing the assignments in order. |
Why do those issues exist and what makes stack based strings so difficult to work with? |
I run into scenarios like the above quite often, which involves some kind of stack-based array. Is there a way to have Ghidra display such an initialization on a single line, as follows:
wchar16 buf[22] = L"69F2a+18d346b/SQ5c65e";
For me at least, having the option would make the decompilation a lot easier on the eyes.
If this feature does not exist, how would one go about implementing it? Thanks!
The text was updated successfully, but these errors were encountered: