gcc/libstdc++-v3/python
Jonathan Wakely a341d96add
libstdc++: Suppress GDB output from new 'skip' commands [PR118260]
I added some gdb.execute('skip -rfu ...') commands to the Python hook
loaded with libstdc++.so but this makes GDB print output like:

Function(s) ^std::(move|forward|as_const|(__)?addressof) will be skipped when stepping.

This probably aren't interesting to users, so this change suppresses
that output by capturing the output into the gdb.execute return value
(which is then ignored). An exception is thrown if the gdb.execute
command fails, so this doesn't suppress any errors which might be
meaningful to users or libstdc++ developers.

libstdc++-v3/ChangeLog:

	PR libstdc++/118260
	* python/hook.in: Suppress output from gdb.execute calls to
	register skips.

Reviewed-by: Tomasz Kamiński <tkaminsk@redhat.com>
(cherry picked from commit 31cbac3037)
2025-05-12 09:46:36 +01:00
..
libstdcxx Update copyright years. 2025-01-02 11:59:57 +01:00
Makefile.am Update copyright years. 2025-01-02 11:59:57 +01:00
Makefile.in libstdc++: Fix installation of python files for debug lib 2022-11-14 15:59:50 +00:00
hook.in libstdc++: Suppress GDB output from new 'skip' commands [PR118260] 2025-05-12 09:46:36 +01:00