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

24663 commits

Author SHA1 Message Date
Doug Schaefer
f8c6c39c40 Final exclusions for Linux. Including older Intel boards for now. 2016-07-13 21:09:37 -04:00
Doug Schaefer
f6ef53ba78 Bug 484283 - Fix up newlines on Linux and add ttyACM* devices.
Turn off IGNCR and ICRNL which seem to be on by default on
Linux or at least Ubuntu.

Change-Id: I7a19eebac6b23074f99d9a73cb03e17b3d7cfc9c
2016-07-13 00:19:15 -04:00
Doug Schaefer
eb208ce3eb Trim name for targets in the FullIntegration Arduino Test. 2016-07-12 23:29:16 -05:00
Doug Schaefer
55e3ec9054 Bug 497436 - Fix clean on Windows
Also, stop using build_path. It's the current directory anyway.

Change-Id: Ied9f27756835f6621d15d50db8097fc5c526e400
2016-07-10 16:42:05 -04:00
Doug Schaefer
43746a954c Bug 487957 - Platform only includes.
Don't send the library includes to platform source compiles. This has
led to problems as specified in the bug. And they're really shouldn't
be necessary. Also Arduino IDE does things this way.

Change-Id: I70b37b660c98b88b3de18ec53e8b86a119fc0baf
2016-07-10 15:15:14 -04:00
Doug Schaefer
f663382363 Bug 497442 Install libraries in versioned directories.
To be consistent with platforms and to avoid issues with deleting
directories on Windows.

Change-Id: I9284413e8d864bdd49b9f8a0b171bc2d5af719f1
2016-07-10 09:51:57 -04:00
Marc Khouzam
efa5f6a75f Bug 497349 - Reverse debug is always enabled when attaching to a process
Change-Id: I3761e57fb625cab31e013676d3eda7f214496918
2016-07-08 12:32:09 -04:00
Marc Khouzam
db2d46c7fc Bug 497206: Remote-attach fails attach if binary not specified in launch
The core exception we used to throw when the program patch was not
present is necessary for GDBBackend#getProgramPath() to set the path to
an empty value instead of returning null.

Although we could have made GdbLaunch#getProgramPath return and empty
string to fix this problem, I thought we should play it safe and behave
like we used to in case something else needed that exception thrown.

Change-Id: I4684226c731aedef50bdeb37accdf2a2feb818b5
2016-07-08 12:31:24 -04:00
Nathan Ridge
80f0c9e329 Bug 496628 - Avoid codan markers that cover an entire class declaration
This fixes a regression from bug 486610 which introduced these in some cases.

Change-Id: I791528ce7f0bc061386aaa97dd9cecb7abeecd72
2016-07-07 17:29:18 -04:00
Nathan Ridge
e8280ebd19 Revert "Bug 486682 - Syntax coloring of macro arguments that occur in reverse order in the AST"
This commit caused a regression in syntax coloring, as reported in bugs 490415 and 496696.

Change-Id: Ibfa7004b11677be56eb5a18d8236af2300de56cb
2016-07-07 17:28:46 -04:00
Doug Schaefer
343001b696 Switch to tools.templates 1.0 branch. Add com.google.gson to our repo.
I have branched the tools.templates plug-ins for Neon.1. Switch to
use the 1.0 maintenance branch.

Also added com.google.gson, which is used by the Arduino plug-ins to
our repo. All our dependencies from Orbit need to be in our repo.

Change-Id: Ia61a3d7ee1444570e7fee79c2dd5a9687e405288
2016-07-07 11:43:18 -04:00
Doug Schaefer
0aeb64635f Bug 490335 Make sure we can update platforms and libraries.
This was totally missing. Implemented now. Will need to test libraries
once they are versioned. Theres a different bug for that.

Change-Id: I539cb32b6cc46e6d9e8768f872fbae94cb21168b
2016-07-06 23:05:21 -05:00
Doug Schaefer
83ffa65e0f Bug 495350 Fix issues upgrading Mars Arduino workspaces.
Change-Id: I9617a33cbe427f03f57c85962286bd7104146d46
2016-07-05 23:30:41 -05:00
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