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

update: gdb logging enable/disable command #1095

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

mtwoz
Copy link

@mtwoz mtwoz commented Apr 26, 2024

'set logging on/off' is deprecated and replaced with 'set logging enabled on/off'.

Description

  • 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.

'set logging on/off' is deprecated and replaced with 'set logging enabled on/off'
Copy link

🤖 Coverage update for 1930e8d 🟢

Old New
Commit 92f45ba 1930e8d
Score 71.5835% 71.5835% (0)

@hugsy
Copy link
Owner

hugsy commented Apr 26, 2024

Do you happen to know in which version this deprecation occured?

Update: it seems to have appeared somewhere between v9 (doesn't work) and v12 (works).
So just to ensure retro-compatibility, please update your PR by checking the version against GDB_VERSION

@mtwoz
Copy link
Author

mtwoz commented Apr 27, 2024

Do you happen to know in which version this deprecation occured?

Update: it seems to have appeared somewhere between v9 (doesn't work) and v12 (works). So just to ensure retro-compatibility, please update your PR by checking the version against GDB_VERSION

Thanks for reminding me. So do I need to add an if judgment to choose to use 'set logging on/off' or 'set logging enabled on/off' based on GDB_VERSION?

@hugsy
Copy link
Owner

hugsy commented Apr 27, 2024

Thanks for reminding me. So do I need to add an if judgment to choose to use 'set logging on/off' or 'set logging enabled on/off' based on GDB_VERSION?

From the docs it seems that set logging enabled on/off' is the way going forward so yes, it is better to simply add a if GDB_VERSION >check until our base version supported becomes one whereset logging enabled on/off` always works

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