Skip to main content
aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-11-11Bug 568079: Reducing transitions from JAVA to native code (part 1)Torbjörn Svensson1-1/+21
Advapi32Util.registryGetValues() is more efficient to fetch all the values since the regiter only needs to be opened once. XXX: Due to a cycle in the dependencies we need to split this in two parts, this commit handles the core.native API change and the next commit handles the use of the new API Change-Id: Ifd9f1ccc44c652ef3b517278bd342a486155c5fb Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-04Bug 568079: Hook into Eclipse tracing system for native codeTorbjörn Svensson1-0/+10
After loading the spawner library, call the native method configureNativeTrace() that will query the Eclipse platform for several debug option strings. Change-Id: I031bb2cdc04ba2675913b3b2e320039c28139638 Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-08-28Cleanup of PTY classTorbjörn Svensson2-38/+15
Change-Id: If04a3ccbc178040d4929767ef1f4c0f1672dfae9 Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-08-25Bug 565142 - Support using CDT in Eclipse flatpakJeff Johnston1-1/+29
- modify ProcessFactory to prefix commands with flatpak-spawn when running under Eclipse flatpak - add new FlatpakLaunch class to dsf.gdb to do a prelaunch of gdbserver and set up remote port settings when debugging local C/C++ application under Eclipse flatpak - add new tab to gdb when running under Eclipse flatpak to allow user to specify gdbserver and port number - add new org.eclipse.cdt.flatpak.launcher plug-in which contains a FlatpakCommandLauncherFactory to handle copying header files from host to workspace when developing under Eclipse flatpak - add new FlatpakCommandLauncher class which simply extends CommandLauncher and can be used for debugging purposes to distinguish from regular command launcher - also add new FlatpakHeaderPreferencePage to allow C/C++ users to delete copied headers if needed - dynamically add the headers preference page from FlatpakCommandLaunchFactory if running under Eclipse flatpak - add new ICommandLaunchFactory3 to add an interface to check if headers have been modified/removed and scanner info refresh is required - add new org.eclipse.cdt.flatpak.launcher-feature - give higher priority to ContainerCommandLauncherFactory so if running on Eclipse flatpak, the flatpak factory won't be chosen if both apply (i.e. building in a container but running on Eclipse flatpak) Change-Id: Id68e60c4dd37c4494af10440231ac7b7bbec8d17
2020-08-18Bug 564123 Treat environment and build variable case sensitivelyjantje1-1/+2
Remove all equalIgnoreCase and equal with uppercasing for environment variables Change-Id: Ic15974b5fb62413c7b1826ced544ff6d4a8eba2f Signed-off-by: jantje <eclipse@baeyens.it>
2020-08-18Bug 521515: Build pty.dll in docker (fixup)Jonah Graham1-2/+2
Fixes for items identified by Torbjörn in my changes to commit 2d03236339d65437cb6138c61b3e7df0700eb6d0 Change-Id: I51f289f731062b4a43bb041d25cd08467014151e
2020-08-18Bug 521515: Build pty.dll in dockerTorbjörn Svensson1-6/+10
Change-Id: I370327489b6c18ac6ba9f36a8da9e94b078ffe1e Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-08-12Bug 521515: Use channel object for native stream accessTorbjörn Svensson4-31/+65
On Linux and mac, a simple int will do for accessing streams (file descriptor). On Windows, a HANDLE is used. This is in reality a pointer and on 64 bit JVM, the pointer will not fit in an int. To not force a change to the API everytime a different platform has a different requirement for accessing streams, use a common interface and specific classes that is known by the native part. The java part of the function block should just pass the object back to the native code when needing to reference an open stream. Change-Id: Ibc3ff5c85735dac6a0ce8e9a1f25b839d7e9aab9 Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-07-18Bug 521515 - Access Windows registry using JNATorbjörn Svensson2-26/+55
There is no need to have custom JNI implementation any more in java to be able to access native functions. JNA solves this just fine with the benefit that the code is easier to debug and maintain. Change-Id: Ia9d36981cb10fa7348bf0a5f0549b3e96bd4c982 Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-06-13Bug 564123 Uppercase only special environment variables on Windowsjantje1-28/+17
Only uppercase the env variable names that are special (only Path for now). This is part of handling the change to keeping cdt variables case sensitive. Change-Id: Ibf22823328c8f8d57c98aa9b62763ea884164fae Signed-off-by: jantje <eclipse@baeyens.it>
2020-06-13Bug 564123: Remove deprecated method from EnvironmentReaderjantje1-9/+0
EnvironmentReader.getRawEnvVars has a better replacement, EnvironmentReader.getEnvVars Change-Id: I91b209f3f601b748dd5d635ff44a36765d519e49 Signed-off-by: jantje <eclipse@baeyens.it>
2018-11-22Bug 540373: Cleanup: Remove redundant type argumentsJonah Graham1-1/+1
This was done by selecting all projects in Eclipse then Source -> Clean Up... -> choosing: - Remove redundant type arguments and completing the wizard Change-Id: Iaecc7010f097b4b1fabd29ccaa34ccb23a716fbf
2018-11-22Bug 540373: Cleanup: Format & Remove trailing whitespaceJonah Graham13-129/+114
This was done by selecting all projects in Eclipse then Source -> Clean Up... -> choosing: - Format source code - Remove trailing white spaces on all lines and completing the wizard Change-Id: I63685372c6bcc67719bcf145123bcb72e5b00394
2018-11-22Bug 540371: Update to EPLv2 using releng/scripts/change_to_eplv2.shJonah Graham15-45/+90
Change-Id: Ifbb1d5af2a00bd5634dea200320e8c4303ffca6c
2016-11-14Bug 497166: Support the user using the 'run' command in the gdb consoleMarc Khouzam1-0/+104
This commit introduces a PersistentPTY. By using it, we now allow the user to restart the process from the GDB console (by pressing 'run'). In this case, the I/O will continue using the PersistentPTY. Previously, the PTY would have been closed, and GDB would fail to restart the process because it would fail to use the closed PTY. Change-Id: I395b402e297a2043af8fce33df163eddef9e6c7a
2016-02-11Update copyright datesMarc Khouzam1-1/+1
Change-Id: I94ac38c37657e270f62db9bbd2859c2c6de40e5f
2016-01-25Fix used booleanMarc-Andre Laperle1-3/+1
Due to a cherry-pick from the cdt_8_8, the boolean is not used as it should (the boolean does not exist in cdt_8_8). Since it's available in master, we should use it (or remove it) Change-Id: Id907e9408cfa7944677b65455bfa7840727ed313 Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-01-21Bug 479241 - [PTY] Output gets cut off after EOF on inputThomas Corbat1-5/+8
Conflicts: core/org.eclipse.cdt.core.native/src/org/eclipse/cdt/utils/pty/PTYOutputStream.java Change-Id: If13b0d977f621e21e7fe89b2b52f07f74858787c Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2016-01-04Fix copyright of all CDT plugins using the copyright tool from platform.Marc Khouzam7-7/+7
This commit does not add missing copyrights, just updates the date on the existing ones. Change-Id: I646f5afd533a1fcc539bdf2e0686b22f406ecf65
2015-09-24Bug 159803 - Console View Ignores EOFThomas Corbat2-2/+20
Added statement to send end of transmission (ASCII 4) before close for non-Windows PTY. Change-Id: If98848a833f7619ce93277d05d39f3ba986a3cf4 Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2015-04-06Bug 459971 - Move serial port to it's own plug-in. Starting with Mac.Doug Schaefer7-343/+0
There are a number of requests to support serial port independent of CDT and independent of Eclipse. Putting the serial port into it's own plug-in so it's jar can be loaded into pure Java apps. Change-Id: I9b35d9bedeee0a0b1c16ad1c884830894320a726
2015-03-12Protect against missing serial port native library.Doug Schaefer1-1/+6
2015-03-06Bug 459971 Windows native for Serial Port.Doug Schaefer4-3/+26
Not checking the binaries in until I get closer to the end. Still some API changes I want to make to do more buffering. Done as a Visual Studio 2013 project. I also brough winreg into that sln file as I though I had to make a change in it but didn't in the end. But really should bring them all. Change-Id: I6e7d472763381cdc0ae558d8cd63993bb0460457 Signed-off-by: Doug Schaefer <dschaefer@qnx.com>
2015-02-18Fix up API @since tags against CDT 8.6.Doug Schaefer5-0/+15
Change-Id: I31966aa0dc312bb7ba77b6ce91eecd01ad4891ce
2015-02-16Bug 459971 New SerialPort support. First step is Mac library.Doug Schaefer5-0/+300
Java classes are defined and a pretty simple native library for Mac is there. Tested with Arduino so I know reading works. This implementation should work for Linux as well. Windows is going to be the hard one. Not checking in the binaries yet until I get more testing with them. Also remove ppc native libraries for Mac since that hasn't been supported in a long time. Change-Id: If4ffbc6e73a7656a47c2f45b875be0842c482b05
2014-08-27Fix PTYOutputStream.write for off > 0Anton Leherbauer1-2/+2
2014-08-04Cleanup of Messages.properties and Messages.java files.Sergey Prigogin2-3/+3
Change-Id: Iea47d46a3ea201722fbe666a03c89dde7e5e4961
2014-05-27Bug 303083 - Make cdt.core.native plugin consistent after renameMartin Oberhuber14-0/+1658
The org.eclipse.cdt.core.native plugin has been renamed from org.eclipse.cdt.core.spawner but that has left a couple inconsistencies which are fixed with this commit: 1. Rename o.e.cdt.internal.core.spawner package -> natives package Note that renaming the package to "native" was not possible since "native" is a Java keyword, thus I chose "natives" 2. Rename CSpawnerPlugin -> CNativePlugin, update win32 fragment 3. Fix PLUGIN_ID for proper logging with IStatus 4. Fix MANIFEST.MF export-package;split declaration 5. Add "version" spec on "export-package" for pty and spawner packages 6. Rename "utils" source folder to "src" as this is standard practice 7. Remove "spawner" from the list of Javadoc plugins in cdt.core Change-Id: Ie5d1112d3f2da120dd5b1446cb6a137382226f0f Signed-off-by: Martin Oberhuber <martin.oberhuber@windriver.com> Reviewed-on: https://git.eclipse.org/r/27346 Tested-by: Hudson CI Reviewed-by: Doug Schaefer <dschaefer@qnx.com>

    Back to the top