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

788 commits

Author SHA1 Message Date
Marc Dumais
a90d9dfbf8 Bug 337899 - [debug view][non-stop] Process label is not updated
In non-stop mode, when the last thread of a process is resumed, the
corresponding process node icon, in the Debug View, is updated to the
"running process" one. However the node was not being automatically
refreshed, and so still showed the previous "suspended process" icon.

This fix adds the necessary Delta to refresh the process node when a
IResumedDMEvent is received.

Change-Id: Ie7d2b6aef9ae7f5906e4b54470f74ee238e13ef5
2016-08-29 07:23:30 -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
Marc Khouzam
5c00a7c049 Remove old .api_filters
Change-Id: Ie5750ec15e1bcdc525a869579620370ff59bab70
2016-08-15 09:46:15 -04:00
Marc Dumais
35921b4bbd Bug 499227 - Missing REVEAL and FORCE flags in VMDelta#appendDetail()
Change-Id: I51148b3267b28561ea27c6dd4bbecaf8afe92d8f
2016-08-10 08:47:59 -04:00
Marc Khouzam
d72b4df3eb Bug 497167: Add support for =thread-group-added event
This will allow us to eventually take action (like prepare the console)
as soon as the user adds a new inferior using the gdb console and the
command add-inferior.

Change-Id: I24ff380b8442de6a88e3caa0fe6832e90e83ac99
2016-07-20 11:08:40 -04: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 Dumais
49e921843f Bug 491724 - AbstractCachingVMProvider: Replace deprecated
ITreeModelViewer

Change-Id: Id21609c92b176109e2667dc1bb8f1bc244e965d1
2016-05-10 09:10:12 -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
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
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
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
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
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
2655b4a0f3 Bug 489501 - [memory] Add API to resolve the default memory space id
When using memory spaces, a backend may sometimes qualify an address
to specify the memory space to which the address belongs.  However, to
minimize impacts, the memory space qualifier may not always be present.
In such cases, the address is implied to belong to the "default" memory
space.

DSF-GDB currently has no means to know what is the "default" memory
space to apply in such cases.

This change introduces a new API to request the default memory space
from the memory service.

Change-Id: Icea87543b8529756aee92c6d2af95fb936f5fb9c
2016-04-07 15:48:16 -04:00
Marc Dumais
b28d8e45d1 bug 488469 - [traditional memory rendering] add preference for coloring
background independently for different memory spaces

Change-Id: If61d909ef66b9c11aebe0863b787af465121dd59
2016-03-30 09:00:00 -05:00
Marc Dumais
90a56a1e7d Bug 489278 - [disassembly] hover does not work for registers
Change-Id: Idc547e93d1e1f4a4085ce0f1e846964780065043
2016-03-30 09:41:49 -04:00
Jesper Eskilson
92cd626895 Code cleanup in DSF examples.
- Added @Override where necessary.
- Added src_ant to source directories in build.properties
- Fixed resource leaks
- Added type parameters where missing (e.g. Vector in PreProcessor.java)
- Removed unused imports

Change-Id: I28c7e295891833f9b561975da0adc92d55f2e048
Signed-off-by: Jesper Eskilson <jesper.eskilson@iar.com>
2016-03-29 16:18:03 -04:00
Alvaro Sanchez-Leon
82b74d3cb6 Bug 489398 - Support memory spaces in IExpressionDMAdress
When an address is resolved from an expression, the resulting address
may carry a memory space provided by the backend to associate
this address to a particular memory space.

The current interface for the memory space service (e.g.
IMemorySpaces2) can be used to parse the memory space contained in the
expression.

This update adds:
1) A new API method to resolve the memory space of an
IExpressionDMAddress instance
2) The use of the memory space service to attempt to resolve the memory
space.

Note: if there is no memory space service, the memory space defaults to
an empty string, which does not affect the default behaviour i.e.
when memory spaces are not used.

Change-Id: Idfe5669b26f84ee4e3e78f96f229ced75e6ec5c3
2016-03-23 21:17:51 -04:00
Mario Pierro
adbed0ba76 Bug 302305 - Added a timeout to queries which are run more frequently.
Change-Id: I3d3cf27c6f7fda7171633b9e70d26c4d3a89e2dd
Signed-off-by: Mario Pierro <mario.pierro@iar.com>
2016-03-11 10:10:06 -05:00
Martin Schreiber
c6bc452a1b Bug 487920 Check if widget is disposed before enable it
Before calling setEnabled on the ToolItem check if it is disposed. If
thats the case, do nothing, else enable the ToolItem. 

Bug: 487920
Change-Id: I1f7b9e0da7f07b2b49e3176e162b9ffb7968439b
Signed-off-by: Martin Schreiber <m.schreiber@bachmann.info>
2016-02-17 10:27:12 -05:00
Marc Khouzam
2ad68f7f80 Update copyright dates
Change-Id: I94ac38c37657e270f62db9bbd2859c2c6de40e5f
2016-02-11 01:50:14 -05:00
Marc Khouzam
285ec5f755 Move DSF and DSF-GDB plugins to Java 8
Change-Id: I732bddb83d3e4ac33d42713ab92242a63a7fac93
2016-02-11 01:49:49 -05:00
Marc Khouzam
766f66c0ab Missing copyright header.
Copyright assigned to company of the committer
who did the first commit of the file.

Change-Id: Ia133694018c798f9558258810982f5276737a0b0
2016-02-01 12:47:41 -05:00
Marc Khouzam
b745736775 Incremented CDT features version to 9.0.0
This includes bumping the standalone debugger to 9.0.0

Change-Id: I55fae1cec995b5f6865a5b174c004ed1b76e9bea
2016-01-18 16:37:47 -05:00
Jonah Graham
28b1830acf Bug 484911: Clean up source directors
Includes:
- CSourceLookupParticipant only did one useful thing (For DSF). When the
object being looked up is a String, as is the case when disassembly
view/editor is doing a lookup, the CSourceLookupParticipant would be the
one to do the resolution. Updated
DsfSourceLookupParticipant.getSourceName to be able to handle a String
- Changed super of DsfSourceLookupParticipant to
AbstractSourceLookupParticipant, saves duplicate code, and adds comment
about what is different about findSourceElements
- a previously missing test for an unusual case (no containers)
- Some of these methods that are only part of CDI have been
marked as such for eventual removal in Bug 484900

Change-Id: I9954b4469e9db9cb46eb117f3beba9e01634689b
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-01-17 10:11:41 -05:00
Jonah Graham
59d0f15afe Bug 484894: Update generification of DisassemblyDocument
This fix follows on from af49d7701a and
redoes the generification changes brought on by the AbstractDocument
changes for Neon M4.

The earlier fix (af49d77) made a copy of the list to work around the
casting problem, however many of the methods that work on the positions
expected access to the real list, not a copy.

For example, consider addModelPositionFirst(), it gets the
CATEGORY_MODEL list and then adds to it. If getAddressRangePositions
returned a copy, then the wrong list would be updated.

Change-Id: I36ca589ba748b66541c632182aceaf0b0b64aea4
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-01-06 10:58:16 -05:00
Marc Dumais
d4c89d2341 bug 485170 - wrong request monitor passed in
DefaultVMProxyStrategy#buildChildDeltasForEventContext()

Change-Id: Ief972f99581b467e4a19495a989240cf7b7f522d
2016-01-05 07:33:14 -05:00
Jonah Graham
e9d5637eca Bug 483234: Add a command example to the example plug-in
A new command, ShowVersionHandler, has been added to the plug-in to
demonstrate all the pieces that need to be put in place to connect
a command to a DSF session.

Change-Id: Iefde0ba144c12ce2e580da7717b390258c0d3675
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-01-04 09:42:13 -05:00
Marc Khouzam
f3ff649041 Fix copyright of all CDT plugins using the copyright tool from platform.
This commit does not add missing copyrights, just updates the date on
the existing ones.

Change-Id: I646f5afd533a1fcc539bdf2e0686b22f406ecf65
2016-01-03 20:38:31 -05:00
Anton Leherbauer
cb172f9851 [disassembly] Do not reuse label position for creating bp annotation 2015-12-15 15:04:36 +01:00
Alexander Kurtakov
8a834d5970 Cleanups.
Remove useless:
* casts.
* suppress warnings unchecked.
* @see comments 

Change-Id: I4713e9ddf90195cf1e465b3743f5f0bc7e41d338
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-14 11:06:00 +02:00
Alexander Kurtakov
af49d7701a Fix compilation with Neon M4.
Change-Id: Ia7f862540b14a2eec37804049d4cfb27e9f028e0
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-13 20:32:35 +02:00
Marc Khouzam
1551e5d787 Missing rm.done()
Change-Id: Ica2962eeb10d56a12dce7960106426a37429211d
2015-11-25 15:17:05 -05:00
Marc Khouzam
843ecb2adc Cosmetics
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-10-15 16:17:32 -04:00
Marc Khouzam
4d5e9569e6 Cosmetics
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-10-06 14:21:35 -04:00
Marc Khouzam
ef8906cc1d Cosmetics
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-10-06 13:13:49 -04:00
Marc Khouzam
ea49446476 Bug 477610 - Remove any reference to platform .gif files
Change-Id: I1c9ba791154774f54fa2b56de8859dbbfc1b55a2
2015-09-17 10:26:01 -04:00
Alvaro Sanchez-Leon
22e7d3a7ba Bug 474612 - Number format detail Shall report Error details of selected
items

Change-Id: Ie96e37912f8f32cd632a8bd6c4c0497fb5f27c5f
2015-08-12 13:27:34 -04:00
Jesper Eskilson
f07ed550d7 Fixed a couple of FindBugs errors in DSF examples.
Change-Id: Ibce2e1ec4f128900989c1420488bf2d1d636e6fc
Signed-off-by: Jesper Eskilson <jesper.eskilson@iar.com>
2015-08-10 11:27:25 -04:00
Jonah Graham
ad52facf4e Bug 460760: Revert Fix DsfSourceDisplayAdapter.openEditor change
Revert "Bug 460760: Fix DsfSourceDisplayAdapter.openEditor to avoid
ignoring editor id set in SourceLookupResult "

This reverts commit 2af7d6d592.

Change-Id: I0f2694605f95007ad1feac9a126365958d732bd4
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2015-08-04 13:50:28 -04:00
Jesper Eskilson
7542722436 Cleaned up random number generation in DSF examples.
Fixed two FindBugs problems: (1) doing Math.abs(random.nextInt()) (which
may be negative if nextInt() returns Integer.MIN_VALUE), and (2)
creating a new Random() object for each nextInt() invocation.

Change-Id: I037a8f6c6c875c951a20beb315c54dc3759c963f
Signed-off-by: Jesper Eskilson <jesper.eskilson@iar.com>
2015-07-21 16:13:35 -04:00
Anton Leherbauer
02026595cc Fix Disassembly creating 64-bit address breakpoint for 32-bit target 2015-07-14 15:16:45 +02:00
Anton Leherbauer
7861db94e1 Fix capitalization of Run to Line, Move to Line, etc. 2015-07-14 15:14:38 +02:00
Dmitry Kozlov
2af7d6d592 Bug 460760: Fix DsfSourceDisplayAdapter.openEditor to avoid ignoring editor id set in SourceLookupResult
Change-Id: I83ef2c8b22cf7a4acef3ccd68b9785a57cb66981
Signed-off-by: Dmitry Kozlov <ddk@codesourcery.com>
2015-07-09 07:56:07 -04:00
Teodor Madan
a740576b78 Bug 456958 Disassembly view sometimes doesn't update after stepping
instructions

- set update pending to false when received a late disasm result and no
context is available.
- add some trace messages helping trace the issue

Change-Id: Ia0a98ef283e871d12de4f50bad89a8d2f4e4c887
Signed-off-by: Teodor Madan <teodor.madan@freescale.com>
2015-07-01 09:14:42 -04:00
Marc Khouzam
1011502687 Bug 317173 - Better use of generics
Change-Id: I19319f85219db677328d9fc35574f07ca84a3752
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-06-16 15:42:17 -04:00