Add Python support to GDB
Bug #1294231 reported by
BSA
This bug affects 9 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Arm Embedded Toolchain |
Fix Released
|
Wishlist
|
Terry Guo |
Bug Description
Modern IDE (Qt Creator) uses python scripts to dump containers in human readable view. But w/o support for Python GDB session closes. So it is difficult to debug programs using Qt Creator.
Changed in gcc-arm-embedded: | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
Changed in gcc-arm-embedded: | |
assignee: | nobody → Terry Guo (terry.guo) |
To post a comment you must log in.
Cross-compiling python with mingw32 under Linux is not easy. It is not supported by upstream. There are some patches proposed; but they are difficult to maintain and not based on the latest version of Python 2.x.
Using the official binary package of Python 2.7.6, it is easy to build gdb with python support using mingw32 under Linux. The attached patch has the necessary changes.
At build time we can either,
- download Python MSI file and extract it (not sure if it is possible) or,
- consider Python is pre-installed (under Windows or with Wine) or,
- include Python binaries inside source package (an archive like [1] is enough)
If we decide to include Python binaries inside the output package, then we must also include python27.dll which is normally installed into c:\windows\ system32.
[1] http:// master. qt-project. org/development _releases/ prebuilt/ gdb/build- prerequisites/