You are not logged in.

#1 2024-02-12 16:57:31

fortuna
Member
Registered: 2021-02-09
Posts: 76

[SOLVED] avr-gdb throws python errors

fortuna@laptop:~$ gdb --version
GNU gdb (GDB) 14.1
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

So far so good. But:

fortuna@laptop:~$ avr-gdb --version
Traceback (most recent call last):
  File "/usr/share/gdb/python/gdb/__init__.py", line 185, in _auto_load_packages
    __import__(modname)
  File "/usr/share/gdb/python/gdb/printer/bound_registers.py", line 18, in <module>
    import gdb.printing
  File "/usr/share/gdb/python/gdb/printing.py", line 223, in <module>
    class _EnumInstance(gdb.ValuePrinter):
                        ^^^^^^^^^^^^^^^^
AttributeError: partially initialized module 'gdb' has no attribute 'ValuePrinter' (most likely due to a circular import)

GNU gdb (GDB) 13.2
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Any thoughts? Thank you!

Last edited by fortuna (2024-02-13 18:43:30)

Offline

#2 2024-02-13 18:42:28

fortuna
Member
Registered: 2021-02-09
Posts: 76

Re: [SOLVED] avr-gdb throws python errors

Apart from these python errors avr-gdb seems to work correctly.

Offline

#3 2024-03-14 15:25:22

Conless
Member
Registered: 2024-03-14
Posts: 1

Re: [SOLVED] avr-gdb throws python errors

I met the same problem when I use riscv64-elf-gdb, which outputs

Traceback (most recent call last):
  File "/usr/share/gdb/python/gdb/__init__.py", line 185, in _auto_load_packages
    __import__(modname)
  File "/usr/share/gdb/python/gdb/printer/bound_registers.py", line 18, in <module>
    import gdb.printing
  File "/usr/share/gdb/python/gdb/printing.py", line 223, in <module>
    class _EnumInstance(gdb.ValuePrinter):
                        ^^^^^^^^^^^^^^^^
AttributeError: partially initialized module 'gdb' has no attribute 'ValuePrinter' (most likely due to a circular import)

Did you find any way to solve it? Thank you so much!

Offline

#4 2024-03-14 17:20:30

fortuna
Member
Registered: 2021-02-09
Posts: 76

Re: [SOLVED] avr-gdb throws python errors

No. I'm sorry. No progress here. Please share if you find out anything.

Offline

Board footer

Powered by FluxBB