Skip to content

Add support for comma format specifier for lldb - #1345

Merged
Andrew Wang (WardenGnaw) merged 4 commits into
mainfrom
dev/waan/enableLLDBCommaForamt
Sep 2, 2022
Merged

Andrew Wang (WardenGnaw) merged 4 commits into
mainfrom
dev/waan/enableLLDBCommaForamt

Conversation

@WardenGnaw

Copy link
Copy Markdown
Member

This PR enables the comma format specifier for lldb scenarios.

Also fixes the issue that ,[#] was not being handled correctly.
Adds a test for the ,[#] and updates the test name.

This PR enables the comma format specifier for lldb scenarios.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments

return "*" + exp.Substring(0, lastComma) + "@" + trimmed; // this does not work for lldb
{
// return *<expression>@<count> which is only supported in GDB
return FormattableString.Invariant($"*{expr}@{count}");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this work with more complex expressions?
Parens around expr might be needed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also I think this syntax works for dynamic sizes too, see L472.

@WardenGnaw
Andrew Wang (WardenGnaw) deleted the dev/waan/enableLLDBCommaForamt branch April 5, 2023 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants