Skip to main content
summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
authorDoug Schaefer2016-08-12 13:42:19 -0400
committerDoug Schaefer2016-08-12 14:49:05 -0400
commit057c7e099e8d5f2ba2ef8a856718ab1ca9a2a2d7 (patch)
tree6cbd3ca9f401c544b2c07bc0321391f64f6f0fa3 /native
parent08b8dca563e1701c09ba5d44a18de4033c72d3b9 (diff)
downloadorg.eclipse.cdt-057c7e099e8d5f2ba2ef8a856718ab1ca9a2a2d7.tar.gz
org.eclipse.cdt-057c7e099e8d5f2ba2ef8a856718ab1ca9a2a2d7.tar.xz
org.eclipse.cdt-057c7e099e8d5f2ba2ef8a856718ab1ca9a2a2d7.zip
Bug 497691 - Allow all cu.* serial ports on Mac. Remove tty.*
gdb doesn't work when the serial port is tty.*. cu.* is supposed to be for calling out, tty is for receiving. Our use cases are the former. Change-Id: Iea15efbfa353eda3a7260c2f9c8a75a310f679f9
Diffstat (limited to 'native')
-rw-r--r--native/org.eclipse.cdt.native.serial/src/org/eclipse/cdt/serial/SerialPort.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/native/org.eclipse.cdt.native.serial/src/org/eclipse/cdt/serial/SerialPort.java b/native/org.eclipse.cdt.native.serial/src/org/eclipse/cdt/serial/SerialPort.java
index 365e6322f3..716fc6b15d 100644
--- a/native/org.eclipse.cdt.native.serial/src/org/eclipse/cdt/serial/SerialPort.java
+++ b/native/org.eclipse.cdt.native.serial/src/org/eclipse/cdt/serial/SerialPort.java
@@ -226,7 +226,7 @@ public class SerialPort {
public static String[] list() throws IOException {
String osName = System.getProperty("os.name"); //$NON-NLS-1$
if (osName.equals("Mac OS X")) { //$NON-NLS-1$
- return listDevs(Pattern.compile("(?:tty|cu)\\..*(?:usbserial|usbmodem).*")); //$NON-NLS-1$
+ return listDevs(Pattern.compile("cu\\..*")); //$NON-NLS-1$
} else if (osName.equals("Linux")) { //$NON-NLS-1$
return listDevs(Pattern.compile("ttyUSB.*")); //$NON-NLS-1$
} else if (osName.startsWith("Windows")) { //$NON-NLS-1$

Back to the top