Skip to content

Conversation

david
Copy link
Collaborator

@david david commented Oct 31, 2018

remove python bindings

remove python bindings
@pmenzel
Copy link
Collaborator

pmenzel commented Oct 31, 2018

Well, the motivation for removing the Python bindings is not documented. Also, that currently GDB is broken after the Python system changes.

$ /usr/bin/time sudo BEE_TMP_TMPDIR=/dev/shm BEE_TMP_BUILDROOT=/dev/shm/bee-root BEE_MAKEFLAGS='-j120' ./gdb.be0 -c
[…]
/dev/shm/bee-root/gdb/gdb-8.2-0/source/gdb/infrun.c:929:6: note: ‘*((void*)(& maybe_restore_inferior)+32).scoped_restore_current_program_space::m_saved_pspace’ was declared here
      maybe_restore_inferior;
      ^~~~~~~~~~~~~~~~~~~~~~
  GEN    init.c
  CXX    init.o
  CXXLD  gdb
python/py-type.o: In function `typy_str(_object*)':
/dev/shm/bee-root/gdb/gdb-8.2-0/source/gdb/python/py-type.c:1009: undefined reference to `PyUnicodeUCS4_Decode'
python/py-value.o: In function `valpy_string(_object*, _object*, _object*)':
/dev/shm/bee-root/gdb/gdb-8.2-0/source/gdb/python/py-value.c:546: undefined reference to `PyUnicodeUCS4_Decode'
python/py-value.o: In function `valpy_str(_object*)':
/dev/shm/bee-root/gdb/gdb-8.2-0/source/gdb/python/py-value.c:958: undefined reference to `PyUnicodeUCS4_Decode'
python/py-cmd.o: In function `cmdpy_completer_helper(cmd_list_element*, char const*, char const*)':
/dev/shm/bee-root/gdb/gdb-8.2-0/source/gdb/python/py-cmd.c:241: undefined reference to `PyUnicodeUCS4_Decode'
/dev/shm/bee-root/gdb/gdb-8.2-0/source/gdb/python/py-cmd.c:253: undefined reference to `PyUnicodeUCS4_Decode'
python/py-cmd.o:/dev/shm/bee-root/gdb/gdb-8.2-0/source/gdb/python/py-cmd.c:134: more undefined references to `PyUnicodeUCS4_Decode' follow
python/py-utils.o: In function `unicode_to_encoded_string(_object*, char const*)':
/dev/shm/bee-root/gdb/gdb-8.2-0/source/gdb/python/py-utils.c:74: undefined reference to `PyUnicodeUCS4_AsEncodedString'
python/py-utils.o: In function `unicode_to_encoded_python_string':
/dev/shm/bee-root/gdb/gdb-8.2-0/source/gdb/python/py-utils.c:95: undefined reference to `PyUnicodeUCS4_AsEncodedString'
python/py-utils.o: In function `python_string_to_unicode(_object*)':
/dev/shm/bee-root/gdb/gdb-8.2-0/source/gdb/python/py-utils.c:51: undefined reference to `PyUnicodeUCS4_FromEncodedObject'
python/python.o: In function `gdbpy_target_wide_charset(_object*, _object*)':
/dev/shm/bee-root/gdb/gdb-8.2-0/source/gdb/python/python.c:549: undefined reference to `PyUnicodeUCS4_Decode'
python/python.o: In function `gdbpy_target_charset(_object*, _object*)':
/dev/shm/bee-root/gdb/gdb-8.2-0/source/gdb/python/python.c:539: undefined reference to `PyUnicodeUCS4_Decode'
collect2: error: ld returned 1 exit status

@pmenzel
Copy link
Collaborator

pmenzel commented Oct 31, 2018

I do not use the Python bindings yet, but they are supposed to be quite handy when debugging stuff. But a working GDB is better than a broken one. Hopefully, it can be fixed in the future.

@pmenzel pmenzel merged commit 8e4eeb4 into master Oct 31, 2018
@thomas
Copy link
Collaborator

thomas commented Oct 31, 2018

@paul, can you provide an usecase where we need the Python features?

Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants