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

Work around gdb bug by changing a template parameter: #4332

Merged
merged 1 commit into from
Dec 14, 2022

Conversation

seelabs
Copy link
Collaborator

@seelabs seelabs commented Oct 31, 2022

There's a bug in gdb where unsigned template parameters cause issues with RTTI. This patch changes a template parameter from size_t to int to workaround this gdb bug.

  • [x ] Refactor (non-breaking change that only restructures code)

src/ripple/protocol/STBitString.h Outdated Show resolved Hide resolved
@scottschurr
Copy link
Collaborator

👍 LGTM. Happy pretty printing.

Copy link
Collaborator

@ximinez ximinez left a comment

Choose a reason for hiding this comment

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

Looks good.

@seelabs seelabs added the Passed Passed code review & PR owner thinks it's ready to merge. Perf sign-off may still be required. label Nov 4, 2022
@seelabs
Copy link
Collaborator Author

seelabs commented Nov 4, 2022

Thanks both for the quick review. Squashed and put a "passed" label on this.

Copy link
Collaborator

@ximinez ximinez left a comment

Choose a reason for hiding this comment

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

I just noticed that "template" is misspelled in the first line of the commit message.

@ximinez ximinez removed the Passed Passed code review & PR owner thinks it's ready to merge. Perf sign-off may still be required. label Nov 23, 2022
There's a bug in gdb where unsigned template parameters cause issues with
RTTI. This patch changes a template parameter from `size_t` to `int` to
workaround this gdb bug.
@seelabs
Copy link
Collaborator Author

seelabs commented Nov 29, 2022

Fixed commit message. (@ximinez )

@seelabs seelabs added the Passed Passed code review & PR owner thinks it's ready to merge. Perf sign-off may still be required. label Nov 29, 2022
@intelliot intelliot changed the title Workaround gdb bug by changing a tempate parameter: Work around gdb bug by changing a template parameter: Dec 14, 2022
@intelliot intelliot merged commit 47ffc39 into XRPLF:develop Dec 14, 2022
dangell7 pushed a commit to Transia-RnD/rippled that referenced this pull request Mar 5, 2023
There's a bug in gdb where unsigned template parameters cause issues with
RTTI. This patch changes a template parameter from `size_t` to `int` to
work around this gdb bug.
tequdev pushed a commit to tequdev/rippled that referenced this pull request Nov 17, 2023
There's a bug in gdb where unsigned template parameters cause issues with
RTTI. This patch changes a template parameter from `size_t` to `int` to
work around this gdb bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Passed Passed code review & PR owner thinks it's ready to merge. Perf sign-off may still be required.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants