1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
Commit graph

25231 commits

Author SHA1 Message Date
Alvaro Sanchez-Leon
ee48887d9d Bug 489750: [Standalone] does not set working directory of the target
process correctly

Change-Id: Ia6d9f1ee64b573d2cba3bba780c2b8c90fe0757d
Signed-off-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
2016-05-03 10:50:35 -04:00
Alvaro Sanchez-Leon
08d975066c Bug 492779: GdbLaunch#initialize() catches exceptions, then ignores them
Change-Id: I0d8dbdfbed2477517439466cd3f255ff8ce0fbd1
Signed-off-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
2016-05-02 15:06:03 -04:00
Alvaro Sanchez-Leon
0b93e8116e Bug 452356 - C/C++ remote launch uses o.e.remote - explicit dependency at feature level
Adding an explicit dependency to o.e.remote at feature level,
so the dependecies are loaded at the installation of the
launch remote feature

Change-Id: I90f6bd29cd1b6f2efc46e241520621bbd256ffef
2016-04-29 17:46:25 -04:00
Marc-Andre Laperle
c5c2770c93 Remove Solaris Sparc support
Solaris Sparc support was removed in SWT therefore it cannot be
supported by CDT anymore.

Change-Id: Ic40f55632023fd77fd164d3e48b5ca06835c3a31
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-04-29 14:40:54 -04:00
Alvaro Sanchez-Leon
8f5335615b Bug 489516 - Traditional mem., choose visibility of the cross ref
information

Change-Id: I9c0cbc373216a6f09ac1cd30778893cb5f6c6c82
2016-04-29 10:18:40 -04:00
Mikhail Khodjaiants
f3faebccce Bug 486955 - Add "Stop on startup" option to "Debug New Executable"
dialog

Change-Id: I3f29453e999e19d1e045fe73bc09fd9deb164ac7
2016-04-28 16:03:37 -04:00
Wainer dos Santos Moschetta
eb5ac1a56b Bug 452356 - C/C++ remote launch uses o.e.remote
Replaced RSE with o.e.remote on C/C++ remote run
 and debug launchers.

Change-Id: I308b81ad90ae8e838557d7b2afb53efb1cdf7ff9
Signed-off-by: Wainer dos Santos Moschetta <wainersm@linux.vnet.ibm.com>
2016-04-28 15:20:21 -04:00
Doug Schaefer
7ca2032810 Add templates.core to target. 2016-04-28 14:16:30 -04:00
Doug Schaefer
7139dc2f1e Modernize Arduino plug-ins. Adjust APIs to suite.
Change-Id: Ic877c8f0992874e647d4b464502165d7bd3ebe0e
2016-04-28 11:14:07 -04:00
Jonah Graham
b2300cbcfe Bug 485107: ensure correct adapter factory is being used
Ensure that the correct adapter factory is being used for each
adapter type.

Change-Id: Ibd401bb16c6320a49285cae4618a80a1bc318da3
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-04-27 17:14:03 +01:00
Stefan Sprenger
2469e0e117 Bug 487998: [breakpoints] Editing code while debug is active
Change-Id: I68361b490a1ba84f0530db37a2da7558c1b762c7
Also-by: Jonah Graham <jonah@kichwacoders.com>
Signed-off-by: Stefan Sprenger <stefan@sprenger.software>
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-04-27 07:20:42 -05:00
Jonah Graham
0265ee09a7 Bug 491417: fix occasional "..." updates in disassembly
When a viewportChanged event and a setActive event arrived at the same
following a debug context change the two event handlers would cancel
each other out.

Change-Id: I07a8d0ff46e4ea4f4ab682a5311650fca021d75b
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-04-27 04:23:27 -05:00
Sergey Prigogin
d36b9dcdd1 Bug 492489 - Protect against NPE
Change-Id: I5eb6590b94a6267cff0b3da14513f1b00d1170d4
2016-04-26 14:09:35 -07:00
Sergey Prigogin
590d832822 Bug 492491 - IWYU hyperlink in Include Pragmas preference page has moved
Change-Id: Iddb08db3427592f4725a9c54747971b9efe2d97a
2016-04-26 13:54:13 -07:00
Alvaro Sanchez-Leon
3822ee7b43 Bug 489516 - Traditional mem., choose visibility of the cross ref
information

This facility is dependent of the issues below.

Bug 489512 - Show local variables in the traditional memory render
Bug 489513 - Show registers in the traditional memory render

Allow the user to choose visibility of the available cross reference
information e.g. Variables, Registers

In addition to the preferences at a instance level, a global preference
is introduced to disable the resolution of additional information
altogether.

Change-Id: I9f8b9b612ff288b369ba6fca3402c0c911aa5f48
2016-04-26 10:26:47 -04:00
Alex Blewitt
c73978c03a Bug 492210 - Remove ChangeLog files from project
ChangeLog is an archaic format for identifying what has changed in a
project. Fortunately more powerful version control systems are capable
of generating this information and displaying information such as this
paragraph in order to determine what has changed in a project and when.

Change-Id: Ia71a05fa51869c1adb193d94f71c28b3b36beb37
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-25 22:53:31 +01:00
Alex Blewitt
12904409a3 Bug 492304 - Fix NLS warnings
Eclipse warns if a String literal does not have a `//$NON-NLS-<n>$`
entry at the end of the line. However, for historic or formatting
reasons, many such occurrences in the CDT source have an intermediate
whitespace, such as `// $NON-NLS-<n>$`

Fix these so that the whitespace is removed between the // and $
characters.

Change-Id: Idc12398fe6e9d619af1d0b1b73fb8b6180da223c
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-25 22:53:30 +01:00
Alvaro Sanchez-Leon
b2db3a489c Bug 489513 - Show registers in the traditional memory render
Change-Id: I9ddbbeb9c8345f006004d9d2982a778d28c6d68c
2016-04-25 17:03:49 -04:00
Alex Blewitt
6bdca5f4a2 Bug 492230 - Replace buffer.append(a+b) calls
When using a `StringBuilder` or `StringBuffer` to create a string message,
using implicit string concatenation inside an `.append()` call will
create a nested StringBuilder for the purposes of creating the arguments,
which will subsequently be converted to a String and then passed to
the outer StringBuilder.

Skip the creation of the intermediate object and String by simply
replacing such calls with `buffer.append(a).append(b)`.

Where values are compile time String constants, leave as is so
that the javac compiler can perform compile-time String concatenation.
Ensure that NEWLINE isn't appended in such a way since it is not
a compile time constant `System.getProperty("line.separator")`

Change-Id: I4126aefb2272f06b08332e004d7ea76b6f02cdba
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-25 11:38:47 -05:00
Alvaro Sanchez-Leon
e21fc12f90 Bug 489512 - Show local variables in the traditional memory render
Change-Id: I48d633e8f6979fd91e9150856fd77fccffdee299
2016-04-24 21:39:15 -04:00
Marc-Andre Laperle
d608db2e7a Update outdated maven plugins
See
https://hudson.eclipse.org/cdt/job/cdt-check-maven-plugin-updates/61/console

Change-Id: I81ebfc67e86d5ea851bdc026769976c54c371202
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-04-24 13:55:41 -04:00
Doug Schaefer
7043af66fb Major change to new build arch to give configs more power.
Creates a single central CBuilder builder which find the C Build
Config and delegates the builds to it. That give configs full control
over the builds. Qt and CMake build configs are adapted to this new
structure.

More features are added to the default super class for configs.

Change-Id: I5ecfc7a4e9b909da6749189a059cdcd4a208fddd
2016-04-23 22:35:33 -04:00
Sergey Prigogin
903eb7ed3a Cosmetics. 2016-04-22 16:34:53 -07:00
Sergey Prigogin
6ff4be3caa Minor performance optimization.
Change-Id: I8c93a9b5347f58670ed4f87296ecd5e45429158d
2016-04-22 16:28:53 -07:00
Alex Blewitt
2356a29c70 Bug 492200 - Replace StringBuffer with StringBuilder
There are many opportunities for replacing `StringBuffer` with
`StringBuilder` provided that the type isn't visible from the
public API and is used only in internal methods. Replace these
where appropriate.

Change-Id: Ic2f50c5b6f3c3a4eae301bb3b40fb6faed235f79
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-21 22:17:03 -05:00
Sergey Prigogin
e901d4a7d4 Cosmetics. 2016-04-21 16:22:03 -07:00
Sergey Prigogin
9f79b897c1 Bug 492200 - Replace StringBuffer with StringBuilder where appropriate
Change-Id: Ib52b839a211e2068e56da4b62a5b9640fef55d40
2016-04-21 16:15:31 -07:00
Alex Blewitt
6b0a04c15e Bug 492200 - Replace StringBuffer with StringBuilder
There are many opportunities for replacing `StringBuffer` with
`StringBuilder` provided that the type isn't visible from the
public API and is used only in internal methods. Replace these
where appropriate.

Change-Id: I2634593603eef88dd68e127de9319377f43e7436
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-21 17:51:12 -05:00
Alex Blewitt
ccbab86d6c Bug 492200 - Replace StringBuffer with StringBuilder
There are many opportunities for replacing `StringBuffer` with
`StringBuilder` provided that the type isn't visible from the
public API and is used only in internal methods. Replace these
where appropriate.

Change-Id: I769ceb6eaee18d183fb0e00fa0d730651f8a7edb
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-21 18:49:32 -04:00
Jeff Johnston
8a2fd3307b Fix Connection drop-down in Run Image Launch configuration
- drop-down doesn't cause Apply button to activate when
  changing Connections from previous connection
- fix setting of default connectionName to avoid NPE
- move setting of connectionURI when user changes drop-down
- add check in isvalid() to verify image exists in connection
- reload images when changing connection and ignore parent images

Change-Id: I9dbc8828a6e6321e9cd1392d4e8c4dbdf2a954db
2016-04-21 14:56:30 -04:00
Nathan Ridge
3e4e14f0d6 Bug 491834 - Revert the earlier attempt to guard against infinite recursion in HeuristicResolver
Change-Id: I22bd9deb13824a82f081c12051770f8d314b11e6
2016-04-21 13:28:07 -05:00
Nathan Ridge
a75ce4027b Bug 491747 - Reference to scoped enumerator declared later in class
Change-Id: If55f0a92c5e3723a306f6ec22a7363c90ef467a8
2016-04-20 22:11:04 -05:00
Nathan Ridge
50eca42cb1 Bug 491834 - Avoid certain kinds of infinte recursion in HeuristicResolver
This is done by tracking the set of lookups of names in primary template
scopes performed during a heuristic resolution, and short-circuiting a
resoluton if the same lookup is attempted twice.

Change-Id: I512cdc9493d1ac91b1f77603d816a33312d4be00
2016-04-20 23:09:48 -04:00
Karsten Thoms
2392400649 Bug 471103 - Add caching for performance improvements of indexing
Change-Id: I6c515202e029a030c89b7f71c013bbc2e2c1c588
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-04-20 17:18:00 -05:00
Alex Blewitt
b23de2f366 Bug 491984 - Optimise toString().isEmpty() checks
The use of toString().toEmpty() is a potential code smell, and has
identified a couple of places where this pattern could be optimised.

Change-Id: I1a37e62ed8546a48151a494e9f24fea46d9d2497
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-20 17:58:12 -04:00
Marc-Andre Laperle
6e98f402bd Make stand-alone debugger SWTBot test more robust
- Wait until binary file exists after building instead of sleep
- Replace waiting loop with waitUntil methods with bigger timeouts
- Replace menu detection with faster and more reliable method:
  - Find menu items in specific shell
  - Use waitUntil with small timeout to detect absent menu items

Change-Id: I5239fa5dab9e091936addf6ceb9ef05095d23bd3
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-04-20 17:23:12 -04:00
Marc-Andre Laperle
869801b95b Upgrade to Tycho 0.25.0
See https://wiki.eclipse.org/Tycho/Release_Notes/0.25

Change-Id: I6c4c7dd82c2786fe6acd01bbcdca19cc2f2c84ae
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-04-20 14:55:52 -04:00
Sergey Prigogin
a295702335 Bug 491842 - Name resolution problem with initializer list
Change-Id: I9a70beb41e9819ca9e980b16249bd080f4d21e97
2016-04-19 19:13:37 -07:00
Sergey Prigogin
3b8da01c12 Cosmetics. 2016-04-19 19:11:41 -07:00
Alex Blewitt
2114f6b108 Bug 491984 - Replace .equals("") with .isEmpty()
In many cases a String's empty status is tested with `.equals("")`.
However, Java 1.6 added `.isEmpty()` which can be more efficient since
it compares the internal length parameter only for testing. Replace
code using the `.isEmpty()` variant instead.

Some tests for `"".equals(expr)` can be replaced with `expr.isEmpty()`
where it is already known that the `expr` is not null; however,
these have to be reviewed on a case-by-case basis.

Change-Id: I3c6af4d8b7638e757435914ac76cb3a67899a5fd
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-19 13:35:54 -04:00
Anton Leherbauer
10ba077124 Bug 491972 - [winpty] Not enough storage is available to process this command 2016-04-19 12:00:39 +02:00
Alex Blewitt
4ad7f81c23 Bug 491945 - Refactor ToolReference::getToolCommand()
The implementation of `ToolReference::getToolCommand()` different from its
neighbours by checking if the `parent` was non-null. Change this so it looks for
the `parent` being null and swap the bodies of the `if` statement around to
maintain compatibility.

Change-Id: I8a188b350f94db9b1bd9d240b7a7320a930280a2
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-18 23:45:20 +01:00
Alex Blewitt
470de4e66b Bug 491945 - Remove new String() from expressions
Replace all occurrences of `new String(expr)` with `expr` provided that the
`expr` is not a byte array or a char array.

Change-Id: Iecae801b83084908b60b9e146eba87550eac640d
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-18 23:34:01 +01:00
Alex Blewitt
ca4e5b10ee Bug 491945 - Remove new String() literals
Occurrences of `new String("...")` have been replaced with a direct reference
to the literal it was wrapping.

Change-Id: Iefb49a009f210db59e5724e0a232dba2e13292b1
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-18 23:30:05 +01:00
Alex Blewitt
809598db9d Bug 491945 - Remove new String()
Occurrences of `new String()` have been replaced with the equivalent `""` and
additional NON-NLS tags have been inserted in where appropriate.

Change-Id: I54cf71dcd0d5a92a675a71166d66949533de502b
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-18 23:15:05 +01:00
Marc-Andre Laperle
135bdd4294 Fix SWTBot dependency in Oomph setup
Change-Id: I8698fbd18d6f467b23b57b09b1f0a0ea55a5f5c0
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-04-17 23:08:27 -04:00
Sergey Prigogin
6be5a7fbe0 Bug 491834 - StackOverflowError in HeuristicResolver
Change-Id: I8aaf80e66d6d7bd999482450c506f7160bd276fd
2016-04-16 23:35:04 -04:00
Alex Blewitt
fc07efa909 Bug 491825 - Remove primitive wrapper creation
Using `new Integer` and other wrapper types such as `new Character` results in
potential extra heap utilisation as the values are not cached. The built-in
`Integer.valueOf` will perform caching on numbers in the range -128..127 (at
least) using a flyweight pattern. In addition, parsing `int` values can be done
with `Integer.parseInt` which avoids object construction.

Adjust tests such as `"true".equals(expr)` to `Boolean.parseBoolean(expr)`.

Change-Id: I0408a5c69afc4ca6ede71acaf6cc4abd67538006
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-16 12:17:48 -04:00
Alvaro Sanchez-Leon
0b7b2a87d3 Enable coverage measurements from stand alone debugger tests
Change-Id: Ia6537659897057f29fd7a766c93ab72707048de5
2016-04-15 21:05:34 -04:00
Alexander Kurtakov
d81d00ec47 autotools: Adapt to generified ListenerList.
Neon generified ListenerList so cleanup here too.

Change-Id: I569ddf79d4cc0e805da5083867f3c403aa6d79b9
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2016-04-15 17:47:41 -04:00