[Lldb-commits] [lldb] [lldb][AIX] Some base #if _AIX changes of a minimal lldb build (PR #120979)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Wed Jan 8 02:18:44 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;
----------------
DavidSpickett wrote:
I should have been clearer, I think this else should be a compiler error:
```
#error Maximum baud rate unknown.
```
This brings the issue to the developer's attention as early as possible.
https://github.com/llvm/llvm-project/pull/120979
More information about the lldb-commits
mailing list