Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] cross-arm-none-eabi-gdb appears to be missing some Python modules
@ 2023-06-23 17:46 camthesaxman
  2023-06-26  5:11 ` CabrioletDiskette
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: camthesaxman @ 2023-06-23 17:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2992 bytes --]

New issue by camthesaxman on void-packages repository

https://github.com/void-linux/void-packages/issues/44594

Description:
### Is this a new report?

Yes

### System Info

Void 6.1.25_1 x86_64 GenuineIntel uptodate hold rrrmFFFFFF

### Package(s) Affected

cross-arm-none-eabi-gdb-12.1_1

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

_No response_

### Expected behaviour

The `arm-none-eabi-gdb` command should work correctly without warnings.

### Actual behaviour

arm-none-eabi-gdb throws numerous warnings about Python modules not being found. Most debugging features still work, though there are annoying warnings with every command. The native x86-64 gdb does not exhibit this behavior, but the arm gdb does. Sample output from debugging an ARM kernel in qemu:
```
Python Exception <class 'ModuleNotFoundError'>: No module named '_gdbevents'
arm-none-eabi-gdb: warning:
Could not load the Python gdb module from `/usr/share/gdb/python'.
Limited Python support is available from the _gdb module.
Suggest passing --data-directory=/path/to/gdb/data-directory.
GNU gdb (GDB) 12.1
Copyright (C) 2022 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.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-unknown-linux-gnu --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from kernel.elf...
(gdb) target remote localhost:1234
Remote debugging using localhost:1234
Python Exception <class 'NameError'>: Installation error: gdb._execute_unwinders function is missing
0x00008000 in bootstrap ()
(gdb) stepi
Python Exception <class 'NameError'>: Installation error: gdb._execute_unwinders function is missing
Python Exception <class 'NameError'>: Installation error: gdb._execute_unwinders function is missing
0x00008004 in bootstrap ()
(gdb)
Python Exception <class 'NameError'>: Installation error: gdb._execute_unwinders function is missing
Python Exception <class 'NameError'>: Installation error: gdb._execute_unwinders function is missing
0x00008008 in bootstrap ()
(gdb) q
A debugging session is active.

        Inferior 1 [process 1] will be detached.

Quit anyway? (y or n) y
Detaching from program: /home/void/rpi-baremetal/kernel.elf, process 1
Ending remote debugging.
```

### Steps to reproduce

1. Install cross-arm-none-eabi-gdb.
2. Run arm-none-eabi-gdb.
3. Run some commands in gdb and get spammed with Python errors.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-07-10  9:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-23 17:46 [ISSUE] cross-arm-none-eabi-gdb appears to be missing some Python modules camthesaxman
2023-06-26  5:11 ` CabrioletDiskette
2023-06-26  5:12 ` CabrioletDiskette
2023-06-26  5:21 ` CabrioletDiskette
2023-06-26  5:22 ` CabrioletDiskette
2023-06-26  5:24 ` CabrioletDiskette
2023-07-09 15:29 ` CtrlC-Root
2023-07-09 15:29 ` CtrlC-Root
2023-07-09 15:30 ` CtrlC-Root
2023-07-10  9:19 ` [ISSUE] [CLOSED] " classabbyamp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).