1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-13 12:05:21 +02:00
Commit graph

24650 commits

Author SHA1 Message Date
Doug Schaefer
acf0f4a943 Bug 496357 - Make Arduino Build configs target specific.
This allows us to change properties of the target and not get the
builds confused. Also makes more sense to the user.

Change-Id: Ic0b6be0699a366c20c5aedc9ec82451e0b3b0899
2016-07-04 21:53:01 -04:00
Marc Khouzam
e9c8d30150 Bug 496818 - Cannot find executable if working directory is not default
Originally, to determine the program path, GDBBackend's constructor
would call:

   ICProject cproject = LaunchUtils.getCProject(lc);
   fProgramPath = LaunchUtils.verifyProgramPath(lc, cproject);
   
When we made the change in 192bfff688 we
didn't keep that logic and lost some functionality.

This commit re-instates the original logic.

Change-Id: Ifbee2273517c41ad6ebdc9980261ed36d651f130
2016-07-03 19:26:16 -04:00
Nathan Ridge
2162d6f36a Bug 496657 - Fix an ArrayOutOfBoundsException during indexing
Change-Id: Iee0617407bf59016dae26b2483dfc9d68ff84451
2016-07-01 15:37:35 -04:00
Nathan Ridge
828414b6e1 Bug 480271 - Update the list of features CDT claims to support in __has_feature()
__has_feature() is a clang extension for feature testing.

Additions include features that we support that weren't added previously
because they weren't listed in clang's documentation (such as cxx_atomic),
and features for which we've since gained supprot (such as
cxx_variable_templates).

The addition of cxx_atomic is particularly important because it's required
for CDT to parse libc++'s <atomic> header correctly.

Change-Id: I21a0472bb3983cf70f5b7b734827ab1111370690
2016-06-30 17:45:33 -04:00
Doug Schaefer
1df252c0ec Fix concurrent modification exception I had at last night's demo
Demo gremlins got me. Had a concurrent modification of the properties
in an Arduino build config. Turns out I missed making a copy of the
properties when calculating the upload command and was making changes
to it there.

Change-Id: Ic7be10dc4860a73e293b106ee7e67a713bd7ac10
2016-06-29 10:08:13 -04:00
Doug Schaefer
d62700200d Fix Arduino template manifest to open cpp file.
Change-Id: Icf9f93a6258659eec4886164967840bb554fe0ae
2016-06-28 13:05:17 -04:00
Doug Schaefer
9d6b43f857 Fix error when unnecessarily upgrading Arduino home.
Change-Id: I8344c1b1a0ffcbf1c4acfac7d080c201623df69c
2016-06-28 10:58:17 -04:00
Doug Schaefer
cf39a83897 Bug 481199 - Add support for cu serial devices on Mac.
Change-Id: I1323ad71ab8d4d76c74380ad06d5216865bebe92
2016-06-27 16:24:36 -04:00
Marc Khouzam
dc769db3cc Update baseline for 9.0 official release
Change-Id: I0afcd36d7c7596a637115de9a91e7a8a1ca4b07a
2016-06-27 15:59:50 -04:00
Doug Schaefer
47b6fd9200 Bug 490191 - Allow changing of Arduino Home directory.
Added to Arduino Preferences page.

Change-Id: Ibe3e65f87cb613757d9e22ebb96324d43884a8e5
2016-06-25 21:50:09 -05:00
Doug Schaefer
857afa3a80 Bug 486724 - Fixes for SparkFun Arduino boards.
The SparkFun package json file is a bit different. Need to merge
packages.

Also fix a couple of NPEs.

Change-Id: Ida495af0b497ba3cd6dbd3e95045c8923f8e9bc8
2016-06-25 19:52:41 -05:00
Doug Schaefer
ee7f9a49da Bug 495351 - Fix buttons on Arduino Download Dialog.
On Windows, OK and Cancel are reversed. Instead of making Cancel
invisible, dispose it so it's gone. Also rename OK to Done.

Change-Id: I37a63f431d71797c442c13389ead4bab9d08a8b1
2016-06-23 13:16:29 -04:00
Doug Schaefer
01ae529864 Bug 481747 - Final fix to get chipKIT working.
Change-Id: I94b99d42a9d1729ae6afd0f799931cd7c350ac86
2016-06-23 02:39:37 -05:00
Doug Schaefer
452d57aa7a Things I do to get Intel Arduino Working.
Use versions in platform installs just like tools. Make sure those
version numbers don't have +'s in them since it screws up Freemarker.
Add cheat in so that the Intel toolchains extract properly.

Change-Id: I7f4e6a92844461b6cbfe21436151d876558a4d2a
2016-06-23 00:23:05 -05:00
Marc Dumais
3447d2a00a bug 452356 - using o.e.remote: issues with remote browse dialog
This patch addresses an issue in the "Select Remote C/C++ Application
File" browse dialog: 
- The remote browse dialog's selected file or directory is still used 
in the launch configuration, even if the user cancels the browse dialog

Change-Id: Ib535254d681a349b2aadfe91adfc73d633a16e90
(cherry picked from commit 9dc70ec8a5)
2016-06-21 11:30:04 -04:00
Doug Schaefer
909e2294b1 Bug 487634 - remove hack for esptool.
Added ESP8266 boards to tests.

Change-Id: I3e2bc87338fc0f4e7fc64f278935d986ce7b8429
2016-06-19 17:15:26 -04:00
Doug Schaefer
9e17fbca4f Bug 492006 Add support for using programmers for uploads.
Needed by a few boards, Gemma famously. Adds UI to select a programmer
for a board and using it if upload.protocol isn't set for the board
(same as the Arduino IDE).

No support for the Burn Bootloader menu item yet, but we're closer.

Change-Id: I5d550b96191fdd1bd18da3daf69bbf7504bfa241
2016-06-19 15:30:34 -04:00
Doug Schaefer
2d87281d09 Bug 492006 - Get ATtinyCore building.
These boards don't have variants so now handle when they're missing.

Includes change to order the properties so that the default menu
selections are the same as in the Arduino IDE.

Change-Id: Ibcc69e2399a92f513964ef6500c1b1766021cd39
2016-06-18 02:13:58 -04:00
Doug Schaefer
7f494ba112 [Arduino] Fix Makefile template to use new libraries layout.
We removed the version from the file path and forgot to update the
Makefile template to take that into account.

Change-Id: I7ab74723554561f86674ef22e38fff6153526912
2016-06-17 10:59:48 -04:00
Doug Schaefer
e3e551cfc8 Bug 485992 - Add support for libs with parens and assembly files.
The AVR Timer Library has this.

Change-Id: I595ed64d2d6d56e17cbbb503875b07afb77ec199
2016-06-16 22:16:00 -04:00
Doug Schaefer
0c257b0bbd Bug 487633 - Arduino support build.system.path for Due.
Change-Id: I4ef4de8ed34c5fc412830ca9789bc5becb883911
2016-06-16 19:44:25 -04:00
Doug Schaefer
0bd96c77ef Bug 496187 Clean up the add Qt Install UI.
Change-Id: I2a315366690dc68d18bfff2bfde4c8fb58cf509c
2016-06-16 16:38:23 -04:00
Doug Schaefer
ab4138f805 Arduino Integration tests passing on Linux and weirdo Windows platform.
Change-Id: Ie7c34003fb12a513d14bbe8c189f0c578891d47f
2016-06-15 13:10:59 -07:00
Doug Schaefer
96ef6bcb78 Make sure Arduino intergration tests complete on Windows.
Change-Id: Ia82d07849434376c606885a3728e2eebedfa4428
2016-06-06 23:08:08 -04:00
Marc Khouzam
baf20dea39 Update Orbit for Neon
Change-Id: I631d0e768bc17890a2147b16138b5a57152947d1
2016-06-06 16:02:33 -04:00
Doug Schaefer
8990e95620 [Arduino] Fix up derivation of upload command.
Change-Id: I97caa1e9ca954d1a60a1fe9e73daa3cf2e0d439e
2016-06-06 14:01:00 -04:00
Marc Khouzam
66f822e464 Fix wrong javadoc
Change-Id: Ie4388f47fad9a1ed760fbe4576e01d408c0ca6ba
2016-06-06 10:43:00 -04:00
Doug Schaefer
8e5b38f590 Bug 480392 - add inter-platform references and integration tests.
Now have an integration test that builds an empty project for all
boards we can enter into it. This change fixes a bunch of the bugs
that were found making it.

Change-Id: Id62919abd419ac4fef986d620c32ac328eb2cf40
2016-06-06 02:03:55 -04:00
Doug Schaefer
3d27785ea7 Qt feature depend on LaunchBar.
We can launch new build system features using the existing launch
configuration delegates since they assume old build configs.

Since Qt is still preview. This will have to do now until we can
figure a way to support both build systems with those delegates.

Change-Id: I61074d3f5d3481222f75a887b3b2b59fdfa4d9eb
2016-06-03 19:24:08 -04:00
Doug Schaefer
b5b78c64d6 Bug 495044 - Fix launching for msys2
Not sure how this was working my desktop machine, but in my home
environment, I ran across an issue where the macros weren't resolved
in the ICdtVariables used for the launch. They need to be resolved.

I think took a look at the debug launch because it was also failing.
As I found out, the GdbLaunchDelegate wasn't using the new GDBLaunch
getVersion routine and was using the deprecated method in launch utils.

Change-Id: I63076833fc444c6df7f758e08df67c1c6f9d9f72
2016-06-03 12:14:12 -04:00
Marc-Andre Laperle
c62b5f8ae6 Sign the stand-alone debugger on Mac
The mac signing has to happen between materialize-products and
archive-products goals. Because we only want to do it when the
production profile is enabled (eclipse.org server), we have to duplicate
some xml to fit the macsigner between the two. I did extract some
variables in order to make the duplication less error prone.

Change-Id: I523c287c0e1dff15026e1007fa2831af6d14003a
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-06-03 01:17:15 -04:00
Doug Schaefer
dd53919fb3 Fix up mixing of MSYS2 and Qt MinGW and 64/32-bit toolchains.
And fix up autodiscovery and launching on Linux. And disable
debug_and_release in all platforms. win32 adds it automatically.

Change-Id: If079f83645893d5132b6a459132123f33e5b28f2
2016-06-02 21:07:23 -04:00
Nathan Ridge
e6e5c4483d Bug 495095 - Disable parameter guessing for CDT 9.0
Change-Id: Iee60d904a725a0ed50b21de2f85cbcf01df09aed
2016-06-02 12:27:13 -04:00
Doug Schaefer
45a6d17001 Bug 495044 - Use build config env vars on local Run launch too.
We have this functionality for debug but didn't for run. When using
the MSYS2, you need that environment to setup the paths to the DLLs
it uses.

Change-Id: Idcb4400efd609d72b5ed587d5ba90777bec8a4d3
2016-05-31 14:15:31 -04:00
Jonah Graham
68dbbc0a88 Bug 494650: prevent UI hang multiple launches terminated
This prevents a deadlock where two different Executor threads are both
listening to changes on the same launch configuration (e.g. when the
same launch configuration is launched twice).

See Bug 494650 for more details and information on the master branch
which has a fuller, more involved fix.

This change is a continuation of:
  commit 6283890715
  Bug 472765: Use gdb's "set substitute-path from to"

Change-Id: I7615e34a949d7766c178025923cdab920250a591
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-05-30 21:31:20 +01:00
Doug Schaefer
9e0d307cdf Change the way default configs are handled.
Provide support for new build configs using the default config.
Previously, we used it to represent old style configs. But if you're
not using the launch bar, you end up building with the default config.

Adds support for Qt to build debug_and_release, and for Arduino to just
build normally for run.

Users are then responsible for creating their own launch config, just
like the old days.

Change-Id: I54305fa27e7eac198ac50d800e0c175143215516
2016-05-26 15:46:19 -04:00
Doug Schaefer
bf1f4c93ff Create a dummy file in the user doc index when skipDoc.
Change-Id: Id5039869212f6b900fb423ea1cd5b27782cc9ad5
2016-05-26 10:51:20 -04:00
Doug Schaefer
9687b58042 Add Arduino feature to Optional Category in repo.
Change-Id: Id597911b518f6a3dc494ebf6e5521243017f14b2
2016-05-26 00:20:08 -04:00
Alvaro Sanchez-Leon
26d519445f Move o.e.cdt.launch.remote to Java 8
The parent commit e6bec45
is using Java 8 API, moving the BREE to this level

Change-Id: I348cdf601bba5b733003a404ecbba8901f7085bd
2016-05-25 22:32:19 -04:00
Jonah Graham
6002c2abb0 Bug 494504 - Reverse API changes to GdbDebugServicesFactory
This change reverses the breaking API changes made to
GdbDebugServicesFactory as part of Bug 488909 while retaining the
code cleanup done in that bug.

Change-Id: If269fa5e38e0c019a8f5ce9aa927f27da70f43ee
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-05-25 11:39:46 -04:00
Sergey Prigogin
b73b588611 Bug 494489 - NPE in CPPASTCompoundStatementExpression.getEvaluation
Change-Id: Iff6243cee0e583af7b34681f123ba3016bfd6558
2016-05-24 18:20:13 -04:00
Marc Khouzam
274b55c778 Point cdt_9_0 build to its own location
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2016-05-24 18:06:06 -04:00
Sergey Prigogin
acf135781c Bug 494359 - Explicit specialization is improperly ignored
Test case.

Change-Id: I9eb34ad4d3309bf568d26338bd7611fa9fea0673
2016-05-24 13:59:05 -04:00
Sergey Prigogin
568ef45802 Bug 494359 - Explicit specialization is improperly ignored
Change-Id: I3294202002338281c7310f9ef77e2d5293566e0b
2016-05-24 13:58:31 -04:00
Alvaro Sanchez-Leon
881972f1be Bug 452356 - C/C++ remote launch uses o.e.remote - wait for file permission change
When uploading a file to a remote system, the file permissions are updated,
however the process taking care of it may not have completed this task before
the application tries to use it.
  This change forces the calling thread to wait for Max 1 sec for it to complete,
If the process task takes longer an exception is thrown so the application can
provide a meaningful message to the user.

A second fix is provided in:  execCmdInRemoteShell
So this method now makes sure that the remote connection is opened
before executing commands over the remote shell.

Change-Id: Ibe8bd2709e1b1f446e1f74aa8a3df424ac7fa650
2016-05-24 13:43:45 -04:00
Mat Booth
6a3079a11e Bug 459567 - Help missing for LLVM Managed Build
Include 'help' directory in build.properties

Change-Id: I6c86a5325a323c67a50166b70372c8a918aa8553
Signed-off-by: Mat Booth <mat.booth@redhat.com>
(cherry picked from commit 08074f77aa)
2016-05-24 11:37:29 -04:00
Doug Schaefer
7ba737a571 Add Arduino Neon update site.
Change-Id: I628fdc20f5714170cf5f2ec92967473415795800
2016-05-24 11:13:29 -04:00
Doug Schaefer
57a18b9b44 Clear up labelling on Arduino (Beta) and Qt (Preview) features. 2016-05-24 10:39:09 -04:00
Doug Schaefer
a978c2c0ad Arduino Downloads Manager and lots of cleanup around that.
Change-Id: Ie2e4d987849831006d443bae98349861871a4057
2016-05-24 01:01:27 -04:00
Doug Schaefer
758110471e Add MSYS2 32-bit support to MinGW GCC toolchain.
Change-Id: I185f1b070ce0e97340fc55b1fc0842a6f8e23637
2016-05-17 16:18:50 -04:00