[all-commits] [llvm/llvm-project] 2bd152: [lldb] Fix batched breakpoint step-over mock (#223...

Bar Soloveychik via All-commits all-commits at lists.llvm.org
Mon Sep 14 10:21:37 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2bd15245d5ce07145ddd7e7363ae8552a560db3d
      https://github.com/llvm/llvm-project/commit/2bd15245d5ce07145ddd7e7363ae8552a560db3d
  Author: Bar Soloveychik <barsolo at meta.com>
  Date:   2026-09-14 (Mon, 14 Sep 2026)

  Changed paths:
    M lldb/test/API/functionalities/gdb_remote_client/TestBatchedBreakpointStepOver.py

  Log Message:
  -----------
  [lldb] Fix batched breakpoint step-over mock (#223000)

This PR fixes the test that printed an `UnexpectedPacketException`
because its mock GDB server did not handle LLDB’s final continue packet.
It adds a normal exit response for that packet and verifies that the
process exits successfully with status zero.

Before:
```
  An exception happened when receiving the response from the gdb server. Closing the client...
  Traceback (most recent call last):
    File "/home/barsolo/llvm-sand/external/llvm-project/lldb/packages/Python/lldbsuite/test/gdbclientutils.py", line
    694, in run
      self._receive(data)
    File "/home/barsolo/llvm-sand/external/llvm-project/lldb/packages/Python/lldbsuite/test/gdbclientutils.py", line
    714, in _receive
      self._handlePacket(packet)
    File "/home/barsolo/llvm-sand/external/llvm-project/lldb/packages/Python/lldbsuite/test/gdbclientutils.py", line
    807, in _handlePacket
      response = self.responder.respond(packet)
    File "/home/barsolo/llvm-sand/external/llvm-project/lldb/packages/Python/lldbsuite/test/gdbclientutils.py", line
    218, in respond
      response = self._respond_impl(packet)
    File "/home/barsolo/llvm-sand/external/llvm-project/lldb/packages/Python/lldbsuite/test/gdbclientutils.py", line
    231, in _respond_impl
      return self.cont()
    File "/home/barsolo/llvm-sand/external/llvm-project/lldb/packages/Python/lldbsuite/test/gdbclientutils.py", line
    383, in cont
      raise self.UnexpectedPacketException()
  lldbsuite.test.gdbclientutils.MockGDBServerResponder.UnexpectedPacketException

  PASS: LLDB (...) :: test (TestBatchedBreakpointStepOver.TestBatchedBreakpointStepOver.test)
  ----------------------------------------------------------------------
  Ran 1 test in 0.070s

OK
```

After:
```
  PASS: LLDB (...) :: test (TestBatchedBreakpointStepOver.TestBatchedBreakpointStepOver.test)
  ----------------------------------------------------------------------
  Ran 1 test in 0.065s

  OK
```

Co-authored-by: Bar Soloveychik <barsolo at fb.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list