[0/3,gdb/testsuite] Fix gdb.gdb/python-helper.exp with -O2 -flto

Message ID 20230421145833.24521-1-tdevries@suse.de
Headers
Series Fix gdb.gdb/python-helper.exp with -O2 -flto |

Message

Tom de Vries April 21, 2023, 2:58 p.m. UTC
  Fix test-case gdb.gdb/python-helper.exp when gdb is build with -O2 -flto=auto,
both on openSUSE Leap 15.4 and Tumbleweed.

There are three patches.

The first fixes a testsuite problem that is required for the second patch.

The second contains the actual fix.

The third addresses a cosmetic issue in the same test-case.

Tested on x86_64-linux.

Tom de Vries (3):
  [gdb/testsuite] Fix -wrap in presence of -prompt in gdb_test_multiple
  [gdb/testsuite] Fix gdb.gdb/python-helper.exp with -O2 -flto
  [gdb/testsuite] Fix auto-indent in gdb.gdb/python-helper.exp

 gdb/testsuite/gdb.gdb/python-helper.exp  | 89 +++++++++++++++++-------
 gdb/testsuite/gdb.testsuite/gdb-test.exp | 11 +++
 gdb/testsuite/lib/gdb.exp                |  2 +-
 3 files changed, 76 insertions(+), 26 deletions(-)


base-commit: fbdecfbf285234cd4eba0e7daf480c63b2d65eb3
  

Comments

Tom Tromey April 24, 2023, 5:09 p.m. UTC | #1
>>>>> "Tom" == Tom de Vries via Gdb-patches <gdb-patches@sourceware.org> writes:

Tom> Fix test-case gdb.gdb/python-helper.exp when gdb is build with -O2 -flto=auto,
Tom> both on openSUSE Leap 15.4 and Tumbleweed.

Tom> There are three patches.

Tom> The first fixes a testsuite problem that is required for the second patch.

Tom> The second contains the actual fix.

Tom> The third addresses a cosmetic issue in the same test-case.

Tom> Tested on x86_64-linux.

FWIW these all seem fine to me.  Thanks for doing this.

Tom