]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/testsuite: small fix for amd64-extended-prologue-analysis.exp
authorAndrew Burgess <aburgess@redhat.com>
Mon, 8 Sep 2025 09:18:09 +0000 (10:18 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Mon, 8 Sep 2025 09:26:45 +0000 (10:26 +0100)
commit8c2a0ecdaf156814d37e6b71d66a3fa371b8f70a
tree41d4bc537bee63bbb59485c14b369fef4fb5de76
parent5e7c89d4b4ae921b32ca4b9d705207d351d9f621
gdb/testsuite: small fix for amd64-extended-prologue-analysis.exp

I noticed I was sometimes getting this failure:

  FAIL: gdb.arch/amd64-extended-prologue-analysis.exp: offset \
      initialization: ASM source: gdb_breakpoint: set breakpoint \
      at *0x0000000000401151

The problem was introduced in commit:

  commit f9aa48dc545ef511e19f4dfab88a196b820fd2da
  Date:   Thu Aug 28 11:50:13 2025 +0000

      gdb, amd64: extend the amd64 prologue analyzer to skip register pushes

A gdb_test_multiple exits early when processing the results of a
'disassemble' command, without waiting for the prompt to be seen.
This can leave unhandled output in expect's input buffer, which will
then throw off the next test.

Update the gdb_test_multiple to wait for the prompt before declaring
the test passed.

After this I'm no longer seeing the above failure.

There should be no change in what is tested after this commit.
gdb/testsuite/gdb.arch/amd64-extended-prologue-analysis.exp