FS#59640 - [python] Install extension for GDB

Attached to Project: Arch Linux
Opened by Daniel Bershatsky (daskol) - Monday, 13 August 2018, 12:50 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:24 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 5
Private No

Details

Python provides a common extension for GDB. The extension allow to debug python source code with GDB. The extension is `python-dbg.py` script which GDB runs on start up. This file and related stuff is absent in the current distribution. The script is actully `Tools/gdb/libpython.py`. So, there are to way to fix the issue. Please see patch in the next comment.

Related task is #46146.
https://bugs.archlinux.org/task/46146
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:24 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/python/issues/6
Comment by Daniel Bershatsky (daskol) - Monday, 13 August 2018, 12:51 GMT
I don't know actually how to format text as monospace.

<code>
Index: python/trunk/PKGBUILD
===================================================================
--- python/trunk/PKGBUILD (revision 331448)
+++ python/trunk/PKGBUILD (working copy)
@@ -111,8 +111,9 @@
ln -s pydoc3 "${pkgdir}"/usr/bin/pydoc
ln -s python${_pybasever}.1 "${pkgdir}"/usr/share/man/man1/python.1

- # some useful "stuff"  FS#46146 
- install -dm755 "${pkgdir}"/usr/lib/python${_pybasever}/Tools/{i18n,scripts}
+ # some useful "stuff"  FS#46146  and  FS#59640 
+ install -dm755 "${pkgdir}"/usr/lib/python${_pybasever}/Tools/{gdb,i18n,scripts}
+ install -m755 Tools/gdb/libpython.py "${pkgdir}"/usr/lib/python${_pybasever}/Tools/gdb/
install -m755 Tools/i18n/{msgfmt,pygettext}.py "${pkgdir}"/usr/lib/python${_pybasever}/Tools/i18n/
install -m755 Tools/scripts/{README,*py} "${pkgdir}"/usr/lib/python${_pybasever}/Tools/scripts/

</code>
Comment by Toolybird (Toolybird) - Monday, 29 May 2023, 05:38 GMT
Dupe  FS#73699 
Comment by Buggy McBugFace (bugbot) - Tuesday, 08 August 2023, 19:11 GMT
This is an automated comment as this bug is open for more then 2 years. Please reply if you still experience this bug otherwise this issue will be closed after 1 month.
Comment by Joerg Behrmann (lobachevsky) - Thursday, 05 October 2023, 12:51 GMT
It might be more useful to install Tools/gdb/libpython.py as /usr/share/gdb/auto-load/usr/lib/libpython${_pybasever}.so.1.0-gdb.py e.g./usr/share/gdb/auto-load/usr/lib/libpython3.11.so.1.0-gdb.py so that it is automatically loaded by GDB.

Loading...