[Lldb-commits] [lldb] [lldb][AIX] Some base #if _AIX changes of a minimal lldb build (PR #120979)

Dhruv Srivastava via lldb-commits lldb-commits at lists.llvm.org
Wed Jan 8 02:23:42 PST 2025


================
@@ -730,9 +730,21 @@ ConnectionStatus ConnectionFileDescriptor::ConnectFile(
     struct termios options;
     ::tcgetattr(fd, &options);
 
-    // Set port speed to maximum
+    // Set port speed to the available maximum
+#ifdef B115200
     ::cfsetospeed(&options, B115200);
     ::cfsetispeed(&options, B115200);
+#elif B57600
+    ::cfsetospeed(&options, B57600);
+    ::cfsetispeed(&options, B57600);
+#elif B38400
+    ::cfsetospeed(&options, B38400);
+    ::cfsetispeed(&options, B38400);
+#else
+    if (error_ptr)
+      *error_ptr = Status::FromErrorString("Maximum Baud rate is Unknown");
+    return eConnectionStatusError;
----------------
DhruvSrivastavaX wrote:

Okay got it. Updating

https://github.com/llvm/llvm-project/pull/120979


More information about the lldb-commits mailing list