1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00
Commit graph

3678 commits

Author SHA1 Message Date
Doug Schaefer
6c6901547e Scanner discovery for CMake projects.
Reads the compile_commands.json file and feeds the commands into
the processLine method of the build config which creates the scanner
info. The scanner info is cached in memory and stored in the
metadata directory.

Change-Id: I8b04e661dfe767904d1c10119c07167fee8cd7e4
2016-08-23 01:05:13 -04:00
Marc Khouzam
cd559dafaf Update version to 9.1.0
This commit used the script releng/scripts/ChangeFeaturesVersion.sh

Change-Id: I8274a6e8dd5c0f1e450f07952e138b265a441a62
2016-08-17 10:11:57 -04:00
Doug Schaefer
20c4e5ba88 Get CMake projects created and building. New C/C++ Project Wizard.
Fixed up CMake new project creation. Hooked up the CMake build config
properly.

Introducing the New C/C++ Project Wizard that hold all the new project
types: Arduino, Qt, CMake.

Change-Id: I9f9c8b1f51b136515fe226c15059cdbb99106275
2016-08-10 11:17:41 -04:00
Alexander Kurtakov
a044217eff Fix generics warnings o.e.cdt.debug.ui.
Namely:
* Adapters
* ListenerLists
* Iterators
* Collections

Change-Id: I71212da7f9ab414fb392a8388afcce762f3f4702
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2016-07-06 10:28:57 +03:00
Alexander Kurtakov
240d68cac5 Generify o.e.cdt.debug.core.
Fix warnings about adapters and listener lists not being generified.

Change-Id: If5e54e6df452884947f32a31ef9c0c53677b88c8
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2016-07-05 20:15:58 +03:00
Marc Khouzam
f38cbb85c3 Remove old .cvsignore files
Change-Id: Ia66de47055a15d94c0aa45d1198f0a9e78d82ad0
2016-06-30 09:58:00 -04:00
Marc Khouzam
9e1e981b4d Move the rest of the CDT plugins to java 8
This change was generated using the script:
releng/scripts/ChangeJavaVersion.sh

Change-Id: I2ad96dc682a5acb8529c3edec40de279c331b5a4
2016-06-22 14:51:43 -04:00
Marc-Andre Laperle
50ce6beede Add logging to Stand-alone debugger test
This will help give a clue where is hangs when running on Hudson

Change-Id: If72db5e9d4ac387328074071ab3eacf33d81ca9c
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-06-07 01:31:22 -04:00
Marc-Andre Laperle
e18d408cb3 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-01 23:13:56 -04:00
Doug Schaefer
d4a911baa8 Create a dummy file in the user doc index when skipDoc.
Change-Id: Id5039869212f6b900fb423ea1cd5b27782cc9ad5
2016-05-26 23:25:49 -04:00
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
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
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
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
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
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
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
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
Sergey Prigogin
b91b69775f Bug 491825 - Remove uses of new Boolean and friends
Change-Id: Ie358c8385c278472f3b86851f6fc219007bb9b5c
2016-04-15 15:20:15 -04:00
Jonah Graham
93155eceba Bug 472765: User documentation for Path Mapping
Change-Id: Ida009cc85c0b35845bd2c6db19a7e23a0a37f700
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-04-13 10:41:46 -05:00
Jonah Graham
64da973dcf Bug 472765: Delete dead classes
MappingSourceContainerBrowser has long since replaced
with NewMappingSourceContainerBrowser.

PathMappingDialog has long since replaced
with MappingSourceContainerDialog.

Change-Id: I67bd6640d5e75608c9b3d616285914987ff38f98
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-04-13 16:07:31 +01:00
Marc-Andre Laperle
7afdc50165 Fix Stand-alone debugger SWTBot test
A bug was fixed in SWTBot and it doesn't throw
IndexOutOfBoundsException anymore. A test was relying on that.

Change-Id: I807aaa773b8544172cf33cbf1a04583fe171bd51
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-04-12 13:51:21 -04:00
Jonah Graham
4d53a33882 Bug 472765 and Bug 386675: Deprecate/comment on problem with createPath 2016-04-12 15:23:18 +01:00
Jonah Graham
a925a51cf4 Bug 472765: Better wording on label
Change-Id: Idd391767ac152410f9b01fbe47febcbeae3f2d00
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-04-08 14:08:43 +01:00
Mat Booth
a896eee7e9 Bug 490995 - [tests] autotools.tests and debug.app.tests bundles have missing resources
Change-Id: Icc5d446c00c1d52178440362c49d4cf7325825c2
Signed-off-by: Mat Booth <mat.booth@redhat.com>
2016-04-05 07:46:04 -05:00
Marc-Andre Laperle
75c2dcebf9 Stand-alone debugger for Mac OS X
This commits adds support for the stand-alone debugger on Mac OS X
for both the RCP (product) and the script. The script had to be
modified slightly because of the different installation layout on Mac
and also the use of non-standard arguments to the 'find' command.

Change-Id: I24e4fec98803689dbaadb1dcfa651e431d4188a7
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-04-02 22:59:15 -04:00
Marc-Andre Laperle
f4a98d1894 Add missing launchbar.core depedency to stand-alone debugger script
The depedency was added to the product before but not to the script.
This means the stand-alone debugger worked in the form of the
product but not the script bundled as part of other Eclipse products.

Change-Id: I3e9da14a7522524a6bec73d3d9e9d22263f17093
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-04-02 22:59:15 -04:00
Marc Khouzam
a08b9582d3 Add javadoc
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2016-03-29 10:34:50 -04:00
Marc Khouzam
6d5e31038c Bug 488661: Simplification of reverse debugging code
Most changes are cosmetics (name of local variables, javadoc, etc).
The note-worthy ones are:

1- Change terminology in IChangeReverseMethodHandler to be a little clearer.
This causes changes in multiple files, but it was all automated.

2- Remove ReverseDebugMethod.INVALID which was used as an error code
and not a ReverseDebugMethod value.

3- In GdbReverseToggleCommand, provide a different error message
if there is a failure to set ProcessTrace vs BranchTrace and tell user what to do.

4- Reworked GdbReverseToggleCommand#getReverseDebugMethod in attempt
to make the code easier to understand.  No actual change in functionality.

Change-Id: Ibdc14faff1220e6a20319644b49e641c2101e762
2016-03-29 08:59:41 -05:00
raddepal
7a73b0035f Bug 488661 - Moving the last trace method to GdbReverseToggleCommand
This patch solves Bug 488661 by moving last trace method to
GdbReverseToggleCommand. Since it is instantiated on a per session
basis.


Change-Id: Idafa196c7af36373ca08d5fc7de63024fe824c2b
Signed-off-by: raddepal <ravitheja.addepally@intel.com>
2016-03-23 08:56:19 -05:00
Jonah Graham
a56abb4783 Bug 472765: use Strings for backend path in Map Entries
Preserve the user supplied backend path as a string so that it matches
what GDB (backend) later reports as a file name to resolve.

Condensed history:

Traditionally in source mapping container, the backend path was stored
as an IPath and that was used to compare against the debug information
being returned by GDB. This worked well when the platform compiled for
matched the platform run on, but when there was Windows/Linux together
that did not work. So as part of Bug 393791 a workaround was done to try
and use hand crafted MapEntrySourceContainer.createPath() instead of
Path constructor to preserve some of the differences. This solution had
its limitations too as UNC paths still could not be represented, See
open Bug 386675.

Change-Id: I4c8f62114a2c6019dc9d07ce446ac424be8b230c
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-03-19 19:44:19 -04:00
Marc Khouzam
fe9da55512 Fix Standalone Debugger for Neon M6
The plugin org.eclipse.core.filesystem.java7 no longer exists.

Change-Id: Id879e1137e59076ae358cd58a8f27aac9a6cc87e
2016-03-18 15:45:25 -04:00
Jonah Graham
a29e37cffc Bug 484900: Cleanup of CSourceLookupDirector post CDI removal
CSourceLookupDirector is internal and had a number of methods only
referenced from CDI.

Change-Id: Ia3052ee5f7009f68984e7b02e7785d76c2c15b0d
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-03-16 22:42:33 -04:00
Jonah Graham
6283890715 Bug 472765: Use gdb's "set substitute-path from to"
Add support for gdb's "set substitute-path from to" by adding a new
service called GDBSourceLookup that uses GDB to perform the path
mapping.

The new GDBSourceLookup service uses the new GdbSourceLookupDirector to
get the set of paths that need mapping using GDB's "set
substitute-path" and the director resolves compilation path differently
so as to leave the GDB backend to handle the local path to compile path
resolution.

The MappingSourceContainer has been enhanced to allow a per mapping
container override of the new behaviour. This is a fallback as the
default behaviour when using GDB is to use "set substitute-path".

The MappingSourceContainerDialog exposes the new option in
MappingSourceContainer as a checkbox at the bottom of the path mapping
dialog in a backend agnostic way.

The new code is tested in methods called "sourceSubstitute*" and
mirror the same tests for the now non-backend handled version
which are "sourceMapping*". Note that
doMappingAndLaunch/doSubstituteAndLaunch have been updated to explicitly
check or uncheck the setIsMappingWithBackendEnabled setting

Change-Id: I122d7c597cd461d8e38c4f82522ccfdf9e51a5ba
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-03-16 22:30:51 -04:00
Marc Khouzam
df63a59b53 Remove o.e.cdt.core.linux.ai64 and o.e.cdt.core.qnx
Remove the entire two plugins and the two references I could find to
them.

Change-Id: I0ab7f24503b737f5cf711616a1eabd1f59d092f0
2016-03-16 13:13:33 -04:00
Alena Laskavaia
bb0ba6fd91 Bug 489455 - Add new breakpoint action to run arbitrary debugger command
This is generic support for debugger commands though mi console bridge,
should be not gdb specific (have a simple gdb implementation though)

We add new breakpoint action called "Debugger Command"
Interface allows to enter arbitrary string(s)
This is interpreted by debugger as it see fit
For gdb implementation these are cli commands


Change-Id: I20ca0b8b094c724e1cf8b0691f4f6cab84a3737d
2016-03-16 11:24:20 -04:00
Jesper Eskilson
eac2f92bb4 Fixed warnings: do not call MessageFormat#format(...) with String[].
Change-Id: I3da681e323cfeb0c1c07a669183e6d1d18ca6ff6
Signed-off-by: Jesper Eskilson <jesper.eskilson@iar.com>
2016-03-14 13:41:59 -04:00
Marc Khouzam
d11328fb9c Remove p2 plugin
Change-Id: I5a2dcb281c8d3596aca97c0df0f2cc76997a39fa
2016-03-14 10:19:21 -05:00
Jonah Graham
ff7f25b94d Bug 484900: Remove Majority of CDI classes
This is the first change to remove CDI from CDT. The CDI model
implementation is removed along with everything that directly
depends upon the implementation.

This commit does not include refactoring or moving classes. The few
insertions are the minimum necessary.

Change-Id: I80274e1a0d77bc7bb00a2afe4babc00c4f7613ae
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-03-08 19:18:05 -05:00
Marc Khouzam
4175b5a1a4 Bug 478740: Simplify user-facing terminology
I got some user feedback about some terminology they didn't quite
understand and this patch tries to address the issues by:
- Simplifying the name of the reverse debugging options.
- Simplifying the preference page.

The patch aslo removes un-used strings in plugin.properties.

Change-Id: I1e4487eeda23f81d391ef11ddbe7dd6feba401ec
2016-03-04 09:54:30 -05:00
Marc Khouzam
038783cf5f Bug 487121 - Remove "connect" button from the Debug View toolbar
Change-Id: I99e096e759eaf7d56b4d64a75bbed6d1833b714d
2016-03-03 10:02:12 -05:00
Marc Khouzam
2befa91f27 Bug 478740: Cleanup reverse toggle image handling
Change-Id: I5b7eae467179b4cd34d9633bc217a48cf729fd87
2016-02-28 23:13:55 -05:00
Marc Khouzam
4c731e0fa7 Bug 478740: Attempt to make reverse icons more informative
Change-Id: Ic855694867be3f66eeb627695ec45ba7a333e8f8
2016-02-26 08:27:51 -05:00
raddepal
3be258d79b Bug 478740: Add Switch off tracing option
This patch adds the "Switch Off Tracing" option to 
the select reverse debugging method pull down menu.

Change-Id: Ib184c1f4c1d1db781bea4468bc8c939bd27db27d
Signed-off-by: raddepal <ravitheja.addepally@intel.com>
2016-02-25 09:21:01 -05:00
Marc Khouzam
9e5888fb37 Bug 478740: Remove Reverse Debug dialog preference
Change-Id: I2a7f668ebc50bac6047395e0ca0e4eb7668cc863
2016-02-23 10:01:04 -05:00
Marc Khouzam
aff7275044 Bug 478740: Missing externalized strings
Change-Id: Ia343d2c055e167fe093586aca32a209b4a8a1c11
2016-02-23 09:52:37 -05:00
Marc Khouzam
e3f7a7dd7f Cosmetics
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2016-02-22 20:43:55 -05:00