[all-commits] [llvm/llvm-project] 4a7b4b: [lldb] Add serial:// protocol for connecting to se...

Michał Górny via All-commits all-commits at lists.llvm.org
Thu Oct 21 01:47:04 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4a7b4beac759ad9001671a61846ee2bfc9076eec
      https://github.com/llvm/llvm-project/commit/4a7b4beac759ad9001671a61846ee2bfc9076eec
  Author: Michał Górny <mgorny at moritz.systems>
  Date:   2021-10-21 (Thu, 21 Oct 2021)

  Changed paths:
    M lldb/include/lldb/Host/File.h
    M lldb/include/lldb/Host/posix/ConnectionFileDescriptorPosix.h
    M lldb/source/Host/common/File.cpp
    M lldb/source/Host/posix/ConnectionFileDescriptorPosix.cpp
    M lldb/test/API/functionalities/gdb_remote_client/TestPty.py
    M lldb/test/API/functionalities/gdb_remote_client/gdbclientutils.py

  Log Message:
  -----------
  [lldb] Add serial:// protocol for connecting to serial port

Add a new serial:// protocol along with SerialPort that provides a new
API to open serial ports.  The URL consists of serial device path
followed by URL-style options, e.g.:

    serial:///dev/ttyS0?baud=115200&parity=even

If no options are provided, the serial port is only set to raw mode
and the other attributes remain unchanged.  Attributes provided via
options are modified to the specified values.  Upon closing the serial
port, its original attributes are restored.

Differential Revision: https://reviews.llvm.org/D111355




More information about the All-commits mailing list