Skip to content

Conversation

@maribu
Copy link

@maribu maribu commented Nov 3, 2025

The parameter word may actually be None, as shown by this exception:

(gdb) svd_load STraceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/cmdebug/svd_gdb.py", line 65, in complete
    prefix = word.lower()
             ^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'lower'

This lets prefix fall back to "" in case word is None to fix the issue.

The parameter `word` may actually be `None`, as shown by this
exception:

    (gdb) svd_load STraceback (most recent call last):
      File "/usr/lib/python3.12/site-packages/cmdebug/svd_gdb.py", line 65, in complete
        prefix = word.lower()
                 ^^^^^^^^^^
    AttributeError: 'NoneType' object has no attribute 'lower'

This lets prefix fall back to `""` in case word is `None` to fix the
issue.
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.

1 participant