GDB 12.0.90 available for testing

Eli Zaretskii eliz@gnu.org
Sat Mar 26 18:34:32 GMT 2022


> Date: Sat, 26 Mar 2022 20:59:04 +0300
> From: Eli Zaretskii via Gdb-patches <gdb-patches@sourceware.org>
> Cc: gdb-patches@sourceware.org
> 
> First, there's this compilation warning when compiling infrun.c:
> 
>        CXX    infrun.o
>      In file included from btrace.h:30,
> 		      from gdbthread.h:29,
> 		      from infrun.h:21,
> 		      from infrun.c:23:
>      target/waitstatus.h: In function 'void stop_all_threads()':
>      target/waitstatus.h:175:13: warning: 'ws.target_waitstatus::m_value' may be used uninitialized in this function [-Wmaybe-uninitialized]
>        175 |     m_value = other.m_value;
> 	   |     ~~~~~~~~^~~~~~~~~~~~~~~
> 
> Is this a real problem?
> 
> Second, one of the selftests fails:
> 
>   Running selftest dw2_expand_symtabs_matching.
>   warning: charset conversion failure for 'u8função'.
>   You may have the wrong value for 'set ada source-charset'.
>   warning: could not convert 'yfunc ' from the host encoding (CP1255) to UTF-32.
>   This normally should not happen, please file a bug report.
> 
> AFAIU, this is because the names of these two functions are,
> respectively, in UTF-8 and in Latin-1, but the charset conversion
> thinks they are in CP1255.  Where does the test tell the conversion
> functions what is the source encoding?

And another problem: starting this GDB under Emacs, with "M-x gdb"
(which invokes "gdb -i=mi") seems to confuse Emacs, so much so that
the debugging session is barely usable: symbols are unknown, so I
cannot set breakpoints, etc.

There's no such problem with GDB 11.1.

I wonder if this is a Windows specific issue.  Did someone try GDB 12
inside Emacs on GNU/Linux, and if so, did it work as expected?


More information about the Gdb-patches mailing list