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

Let GefSetting write hooks see value #1000

Merged
merged 5 commits into from Aug 26, 2023
Merged

Conversation

Grazfather
Copy link
Collaborator

@Grazfather Grazfather commented Aug 26, 2023

Description

This change makes it so that write hooks see the actual value provided to a setting when gef config is used, and gives it the chance to raise an exception if the value is invalid.

It also adds a validator 'no_spaces' and adds it to a few settings that use filepaths, since we know (from #999) that some GDB commands completely break when paths have spaces and/or when paths are quotes.

Checklist

  • My code follows the code style of this project.
  • My change includes a change to the documentation, if required.
  • If my change adds new code, adequate tests have been added.
  • I have read and agree to the CONTRIBUTING document.

@Grazfather Grazfather force-pushed the gefsetting_write_validators branch 2 times, most recently from db08871 to f58ed9a Compare August 26, 2023 01:49
@github-actions
Copy link

🤖 Coverage Update

  • Commit: d416595
  • Current Coverage: 71.5741%
  • New Coverage: 71.6065%
  • Diff: 0.032399999999995543

To this point, this PR:

  • does not include changes to tests
  • does not include changes to documentation
  • does not include forbidden words

Repository owner deleted a comment from github-actions bot Aug 26, 2023
Repository owner deleted a comment from github-actions bot Aug 26, 2023
Repository owner deleted a comment from github-actions bot Aug 26, 2023
Repository owner deleted a comment from github-actions bot Aug 26, 2023
Repository owner deleted a comment from github-actions bot Aug 26, 2023
Repository owner deleted a comment from github-actions bot Aug 26, 2023
Repository owner deleted a comment from github-actions bot Aug 26, 2023
@Grazfather
Copy link
Collaborator Author

💯 💯 💯 💯 💯 💯 💯 💯 💯 💯

@Grazfather Grazfather requested a review from hugsy August 26, 2023 15:01
Copy link
Owner

@hugsy hugsy left a comment

Choose a reason for hiding this comment

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

minor comment, otherwise lgtm

gef.py Show resolved Hide resolved
@github-actions
Copy link

🤖 Coverage Update

  • Commit: 001b010
  • Current Coverage: 71.5741%
  • New Coverage: 71.6065%
  • Diff: 0.032399999999995543

To this point, this PR:

  • does not include changes to tests
  • does not include changes to documentation
  • does not include forbidden words

@github-actions
Copy link

🤖 Coverage Update

  • Commit: bba5f1c
  • Current Coverage: 71.5741%
  • New Coverage: 71.5741%
  • Diff: 0.0

To this point, this PR:

  • does not include changes to tests
  • does not include changes to documentation
  • does not include forbidden words

@github-actions
Copy link

🤖 Coverage Update

  • Commit: 46fba8b
  • Current Coverage: 71.5769%
  • New Coverage: 71.5769%
  • Diff: 0.0

To this point, this PR:

  • does not include changes to tests
  • does not include changes to documentation
  • does not include forbidden words

@github-actions
Copy link

🤖 Coverage Update

  • Commit: fbf7d67
  • Current Coverage: 71.5769%
  • New Coverage: 71.6120%
  • Diff: 0.03509999999999991

To this point, this PR:

  • does not include changes to tests
  • does not include changes to documentation
  • does not include forbidden words

@github-actions
Copy link

🤖 Coverage Update

  • Commit: 3394cf0
  • Current Coverage: 71.5769%
  • New Coverage: 71.6614%
  • Diff: 0.08450000000000557

To this point, this PR:

  • includes changes to tests
  • does not include changes to documentation
  • does not include forbidden words

@github-actions
Copy link

🤖 Coverage Update

  • Commit: 46fba8b
  • Current Coverage: 71.5769%
  • New Coverage: 71.5769%
  • Diff: 0.0

To this point, this PR:

  • includes changes to tests
  • does not include changes to documentation
  • does not include forbidden words

@hugsy hugsy merged commit 6a6e2a0 into main Aug 26, 2023
6 checks passed
@hugsy hugsy deleted the gefsetting_write_validators branch August 26, 2023 17:00
hugsy added a commit to hugsy/gef-extras that referenced this pull request Oct 19, 2023
…nt (#94)

hugsy/gef#1000 introduced a callback signature change for `on-write`
hooks, which broke `capstone.py` (reported [on
discord](https://discord.com/channels/705160148813086841/705160148813086843/1164321916404891729)).
This PR fixes that
@hugsy hugsy added this to the 2024.01 milestone Dec 22, 2023
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.

None yet

2 participants