Merge branch 'ci-msys2-mingw32-catch-access-violation' into 'main'

CI/msys2-mingw32: Set the G_DEBUGGER environment variable

See merge request GNOME/glib!4205
This commit is contained in:
Philip Withnall 2024-08-25 15:36:08 +00:00
commit 282545565a
3 changed files with 7 additions and 4 deletions

View File

@ -521,6 +521,7 @@ msys2-mingw32:
CHERE_INVOKING: "yes"
CFLAGS: -coverage -ftest-coverage -fprofile-arcs
PYTHONUTF8: "1"
G_DEBUGGER: 'gdb.exe -batch -ex "set logging enabled on" -ex "attach %p" -ex "signal-event %e" -ex "c" -ex "thread apply all bt full" -ex "k"'
script:
- C:\msys64\usr\bin\pacman --noconfirm -Syyuu --ask 20
- C:\msys64\usr\bin\bash .gitlab-ci/show-execution-environment.sh
@ -535,6 +536,7 @@ msys2-mingw32:
expire_in: 1 week
paths:
- _build/meson-logs
- _build/gdb.txt
- _coverage/
- _reference/

View File

@ -21,7 +21,8 @@ pacman --noconfirm -S --needed \
"${MINGW_PACKAGE_PREFIX}"-python-pip \
"${MINGW_PACKAGE_PREFIX}"-toolchain \
"${MINGW_PACKAGE_PREFIX}"-zlib \
"${MINGW_PACKAGE_PREFIX}"-libelf
"${MINGW_PACKAGE_PREFIX}"-libelf \
"${MINGW_PACKAGE_PREFIX}"-gdb
mkdir -p _coverage
mkdir -p _ccache
@ -75,4 +76,4 @@ fi
# can then pull it from there — see https://gitlab.gnome.org/GNOME/gtk/-/blob/docs-gtk-org/README.md
mkdir -p _reference/
mv _build/docs/reference/glib/glib-win32-2.0/ _reference/glib-win32/
mv _build/docs/reference/gio/gio-win32-2.0/ _reference/gio-win32/
mv _build/docs/reference/gio/gio-win32-2.0/ _reference/gio-win32/

View File

@ -1435,7 +1435,7 @@ g_source_get_context (GSource *source)
*
* Using this API forces the linear scanning of event sources on each
* main loop iteration. Newly-written event sources should try to use
* [method@GLib.Source.add_unix_fd] instead of this API.
* `g_source_add_unix_fd` instead of this API.
**/
void
g_source_add_poll (GSource *source,
@ -4668,7 +4668,7 @@ g_main_context_poll_unlocked (GMainContext *context,
*
* Adds a file descriptor to the set of file descriptors polled for
* this context. This will very seldom be used directly. Instead
* a typical event source will use [method@GLib.Source.add_unix_fd] instead.
* a typical event source will use `g_source_add_unix_fd` instead.
**/
void
g_main_context_add_poll (GMainContext *context,