You are not logged in.
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
Apart from these python errors avr-gdb seems to work correctly.
Offline
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
No. I'm sorry. No progress here. Please share if you find out anything.
Offline
Did anyone figure this out?
I have the same issue with riscv32-elf-gdb.
Offline