Skip to content

Commit 6ea44df

Browse files
committed
GitHub build
1 parent 5b657fa commit 6ea44df

File tree

198 files changed

+25598
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

198 files changed

+25598
-0
lines changed

Diff for: .gitattributes

+5
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,8 @@ ChangeLog merge=merge-changelog
3333
*.[cChH] whitespace=space-before-tab,indent-with-non-tab,trailing-space
3434
*.exp whitespace=space-before-tab,indent-with-non-tab,trailing-space
3535
*.tcl whitespace=space-before-tab,indent-with-non-tab,trailing-space
36+
37+
*.texi text eol=lf
38+
*.texinfo text eol=lf
39+
*.eps text eol=lf
40+
*.tex text eol=lf

Diff for: .github/README.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# GDB with Python 3.11 for Windows
2+
3+
This distribution of GDB is based on (reasonably) newest development (`master` branch) version.
4+
5+
## Features:
6+
* Support for Python 3.11 (and required!)
7+
* Support for virtualenv for GDB only (Create venv in `<gdb-dir>/venv` directory)
8+
* Relocatable installation - unzip anywhere (note: Python's venv is NOT relocatable)
9+
* Reduced verbosity of startup
10+
* Support for all architectures in single executable
11+
* (Optional) Source highlighting with pygments (install `pygments` package into venv)
12+
* Fixed default auto-load path to support automatically loading `gdbinit` files from `share/gdb/system-gdbinit` directory

Diff for: .github/do_configure

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env bash
2+
3+
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
4+
5+
INSTALL_DIR=$(realpath.exe --canonicalize-missing $SCRIPT_DIR/../../install)
6+
7+
$SCRIPT_DIR/../configure \
8+
--prefix=$INSTALL_DIR/ \
9+
--host=x86_64-w64-mingw32 \
10+
--enable-static \
11+
--enable-targets=all \
12+
--disable-sim \
13+
--disable-gdbserver \
14+
--disable-unittests \
15+
--enable-strip \
16+
--disable-debug \
17+
--with-python=$SCRIPT_DIR/python-config-stub \
18+
--with-system-gdbinit-dir=$INSTALL_DIR/share/gdb/system-gdbinit \
19+
--disable-source-highlight \
20+
21+

Diff for: .github/install_dlls

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
3+
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
4+
5+
INSTALL_DIR=$(realpath.exe --canonicalize-missing $SCRIPT_DIR/../../install)
6+
7+
for f in $INSTALL_DIR/bin/*.exe
8+
do
9+
echo $f
10+
ldd $f | grep -vi System32 | grep -vi python | gawk '{ print $3 }' | xargs -rt cp -t $INSTALL_DIR/bin
11+
echo "---"
12+
done

Diff for: .github/python-config-stub

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env bash
2+
3+
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
4+
5+
if [ $# -ne 2 ]
6+
then
7+
echo "Bad # args. Blech!" >&2
8+
exit 1
9+
fi
10+
11+
VENV_DIR=$(realpath.exe --canonicalize-missing $SCRIPT_DIR/../../install/venv)
12+
13+
# The first argument is the path to python-config.py, ignore it.
14+
15+
case "$2" in
16+
--includes) echo "-I$SCRIPT_DIR/python-dev/include" ;;
17+
--ldflags) echo "-L$SCRIPT_DIR/python-dev/libs -lpython311" ;;
18+
--exec-prefix) echo "$VENV_DIR" ;;
19+
--prefix) echo "$VENV_DIR" ;;
20+
*) echo "Bad arg $2. Blech!" >&2 ; exit 1 ;;
21+
esac
22+
23+
exit 0

Diff for: .github/python-dev/include/Python.h

+109
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
// Entry point of the Python C API.
2+
// C extensions should only #include <Python.h>, and not include directly
3+
// the other Python header files included by <Python.h>.
4+
5+
#ifndef Py_PYTHON_H
6+
#define Py_PYTHON_H
7+
8+
// Since this is a "meta-include" file, no #ifdef __cplusplus / extern "C" {
9+
10+
// Include Python header files
11+
#include "patchlevel.h"
12+
#include "pyconfig.h"
13+
#include "pymacconfig.h"
14+
15+
#if defined(__sgi) && !defined(_SGI_MP_SOURCE)
16+
# define _SGI_MP_SOURCE
17+
#endif
18+
19+
// stdlib.h, stdio.h, errno.h and string.h headers are not used by Python
20+
// headers, but kept for backward compatibility. They are excluded from the
21+
// limited C API of Python 3.11.
22+
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000
23+
# include <stdlib.h>
24+
# include <stdio.h> // FILE*
25+
# include <errno.h> // errno
26+
# include <string.h> // memcpy()
27+
#endif
28+
#ifndef MS_WINDOWS
29+
# include <unistd.h>
30+
#endif
31+
#ifdef HAVE_STDDEF_H
32+
# include <stddef.h> // size_t
33+
#endif
34+
35+
#include <assert.h> // assert()
36+
#include <wchar.h> // wchar_t
37+
38+
#include "pyport.h"
39+
#include "pymacro.h"
40+
#include "pymath.h"
41+
#include "pymem.h"
42+
#include "pytypedefs.h"
43+
#include "pybuffer.h"
44+
#include "object.h"
45+
#include "objimpl.h"
46+
#include "typeslots.h"
47+
#include "pyhash.h"
48+
#include "cpython/pydebug.h"
49+
#include "bytearrayobject.h"
50+
#include "bytesobject.h"
51+
#include "unicodeobject.h"
52+
#include "longobject.h"
53+
#include "cpython/longintrepr.h"
54+
#include "boolobject.h"
55+
#include "floatobject.h"
56+
#include "complexobject.h"
57+
#include "rangeobject.h"
58+
#include "memoryobject.h"
59+
#include "tupleobject.h"
60+
#include "listobject.h"
61+
#include "dictobject.h"
62+
#include "cpython/odictobject.h"
63+
#include "enumobject.h"
64+
#include "setobject.h"
65+
#include "methodobject.h"
66+
#include "moduleobject.h"
67+
#include "cpython/funcobject.h"
68+
#include "cpython/classobject.h"
69+
#include "fileobject.h"
70+
#include "pycapsule.h"
71+
#include "cpython/code.h"
72+
#include "pyframe.h"
73+
#include "traceback.h"
74+
#include "sliceobject.h"
75+
#include "cpython/cellobject.h"
76+
#include "iterobject.h"
77+
#include "cpython/initconfig.h"
78+
#include "pystate.h"
79+
#include "cpython/genobject.h"
80+
#include "descrobject.h"
81+
#include "genericaliasobject.h"
82+
#include "warnings.h"
83+
#include "weakrefobject.h"
84+
#include "structseq.h"
85+
#include "cpython/picklebufobject.h"
86+
#include "cpython/pytime.h"
87+
#include "codecs.h"
88+
#include "pyerrors.h"
89+
#include "pythread.h"
90+
#include "cpython/context.h"
91+
#include "modsupport.h"
92+
#include "compile.h"
93+
#include "pythonrun.h"
94+
#include "pylifecycle.h"
95+
#include "ceval.h"
96+
#include "sysmodule.h"
97+
#include "osmodule.h"
98+
#include "intrcheck.h"
99+
#include "import.h"
100+
#include "abstract.h"
101+
#include "bltinmodule.h"
102+
#include "cpython/pyctype.h"
103+
#include "pystrtod.h"
104+
#include "pystrcmp.h"
105+
#include "fileutils.h"
106+
#include "cpython/pyfpe.h"
107+
#include "tracemalloc.h"
108+
109+
#endif /* !Py_PYTHON_H */

0 commit comments

Comments
 (0)