Accessing fontconfig objs in gdb
Ilmari Lauhakangas
ilmari.lauhakangas at libreoffice.org
Tue Sep 10 11:04:10 UTC 2024
On 10.9.2024 14.01, Julien Nabet wrote:
> Hello,
>
> I'm trying to understand fontconfig use in LO for tdf#108243 (semicolon
> separated fonts substitution not working (bug in Linux FontConfig
> integration code)
>
> On gdb, I got this:
>
> (gdb) p pPattern
> $1 = (FcPattern *) 0x55555c030800
> (gdb) p *pPattern
> $2 = <incomplete type>
>
> whereas I rebuilt fontconfig after having done:
>
> 1) adding --without-system-fontconfig in autogen.input
>
> 2) using this:
>
> diff --git a/external/fontconfig/ExternalProject_fontconfig.mk
> b/external/fontconfig/ExternalProject_fontconfig.mk
> index 0d899ef129bd..7ecd8353c154 100644
> --- a/external/fontconfig/ExternalProject_fontconfig.mk
> +++ b/external/fontconfig/ExternalProject_fontconfig.mk
> @@ -31,6 +31,7 @@ $(call
> gb_ExternalProject_get_state_target,fontconfig,build) :
> $(if $(filter EMSCRIPTEN,$(OS)),-pthread)" \
> $(if $(filter ANDROID,$(OS)),LIBS="-lm") \
> $(if $(filter
> EMSCRIPTEN,$(OS)),LIBXML2_CFLAGS="$(LIBXML_CFLAGS)"
> LIBXML2_LIBS="$(LIBXML_LIBS)") \
> + $(if $(filter TRUE,$(ENABLE_DBGUTIL)),debug=true) \
> $(gb_RUN_CONFIGURE) ./configure \
> --disable-silent-rules \
> --with-pic \
>
> What should I do to teach gdb to display fontconfig objs?
Can you install the debug package for fontconfig in your Linux distro?
Ilmari
More information about the LibreOffice
mailing list