Skip to main content
summaryrefslogtreecommitdiffstats
path: root/dsf
AgeCommit message (Collapse)AuthorFilesLines
2016-05-10Bug 491724 - AbstractCachingVMProvider: Replace deprecatedMarc Dumais1-6/+4
ITreeModelViewer Change-Id: Id21609c92b176109e2667dc1bb8f1bc244e965d1
2016-04-29Remove Solaris Sparc supportMarc-Andre Laperle1-10/+0
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-27Bug 491417: fix occasional "..." updates in disassemblyJonah Graham1-1/+2
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-25Bug 492304 - Fix NLS warningsAlex Blewitt1-1/+1
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-25Bug 492230 - Replace buffer.append(a+b) callsAlex Blewitt12-35/+35
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-24Bug 489512 - Show local variables in the traditional memory renderAlvaro Sanchez-Leon1-4/+4
Change-Id: I48d633e8f6979fd91e9150856fd77fccffdee299
2016-04-21Bug 492200 - Replace StringBuffer with StringBuilderAlex Blewitt17-50/+50
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-19Bug 491984 - Replace .equals("") with .isEmpty()Alex Blewitt1-3/+3
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-18Bug 491945 - Remove new String()Alex Blewitt1-2/+2
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-16Bug 491825 - Remove primitive wrapper creationAlex Blewitt20-49/+49
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-07Bug 489501 - [memory] Add API to resolve the default memory space idAlvaro Sanchez-Leon2-0/+28
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-03-30bug 488469 - [traditional memory rendering] add preference for coloringMarc Dumais1-0/+3
background independently for different memory spaces Change-Id: If61d909ef66b9c11aebe0863b787af465121dd59
2016-03-30Bug 489278 - [disassembly] hover does not work for registersMarc Dumais1-1/+62
Change-Id: Idc547e93d1e1f4a4085ce0f1e846964780065043
2016-03-29Code cleanup in DSF examples. Jesper Eskilson14-104/+170
- 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-23Bug 489398 - Support memory spaces in IExpressionDMAdressAlvaro Sanchez-Leon4-2/+21
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-11Bug 302305 - Added a timeout to queries which are run more frequently.Mario Pierro4-6/+45
Change-Id: I3d3cf27c6f7fda7171633b9e70d26c4d3a89e2dd Signed-off-by: Mario Pierro <mario.pierro@iar.com>
2016-02-17Bug 487920 Check if widget is disposed before enable itMartin Schreiber1-1/+1
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-11Update copyright datesMarc Khouzam4-4/+4
Change-Id: I94ac38c37657e270f62db9bbd2859c2c6de40e5f
2016-02-11Move DSF and DSF-GDB plugins to Java 8Marc Khouzam6-10/+10
Change-Id: I732bddb83d3e4ac33d42713ab92242a63a7fac93
2016-02-01Missing copyright header.Marc Khouzam1-1/+8
Copyright assigned to company of the committer who did the first commit of the file. Change-Id: Ia133694018c798f9558258810982f5276737a0b0
2016-01-18Incremented CDT features version to 9.0.0Marc Khouzam8-9/+9
This includes bumping the standalone debugger to 9.0.0 Change-Id: I55fae1cec995b5f6865a5b174c004ed1b76e9bea
2016-01-17Bug 484911: Clean up source directorsJonah Graham2-69/+26
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-06Bug 484894: Update generification of DisassemblyDocumentJonah Graham1-52/+45
This fix follows on from af49d7701ab719a7176ad941bc91b956931c8133 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-05bug 485170 - wrong request monitor passed inMarc Dumais1-1/+2
DefaultVMProxyStrategy#buildChildDeltasForEventContext() Change-Id: Ief972f99581b467e4a19495a989240cf7b7f522d
2016-01-04Bug 483234: Add a command example to the example plug-inJonah Graham1-1/+2
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-03Fix copyright of all CDT plugins using the copyright tool from platform.Marc Khouzam245-246/+246
This commit does not add missing copyrights, just updates the date on the existing ones. Change-Id: I646f5afd533a1fcc539bdf2e0686b22f406ecf65
2015-12-15[disassembly] Do not reuse label position for creating bp annotationAnton Leherbauer1-2/+2
2015-12-14Cleanups.Alexander Kurtakov2-22/+1
Remove useless: * casts. * suppress warnings unchecked. * @see comments Change-Id: I4713e9ddf90195cf1e465b3743f5f0bc7e41d338 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-13Fix compilation with Neon M4.Alexander Kurtakov3-38/+40
Change-Id: Ia7f862540b14a2eec37804049d4cfb27e9f028e0 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-11-25Missing rm.done()Marc Khouzam1-0/+2
Change-Id: Ica2962eeb10d56a12dce7960106426a37429211d
2015-10-15CosmeticsMarc Khouzam1-12/+1
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-10-06CosmeticsMarc Khouzam1-18/+17
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-10-06CosmeticsMarc Khouzam3-8/+8
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-09-17Bug 477610 - Remove any reference to platform .gif filesMarc Khouzam1-10/+10
Change-Id: I1c9ba791154774f54fa2b56de8859dbbfc1b55a2
2015-08-12Bug 474612 - Number format detail Shall report Error details of selectedAlvaro Sanchez-Leon3-3/+20
items Change-Id: Ie96e37912f8f32cd632a8bd6c4c0497fb5f27c5f
2015-08-10Fixed a couple of FindBugs errors in DSF examples.Jesper Eskilson2-0/+10
Change-Id: Ibce2e1ec4f128900989c1420488bf2d1d636e6fc Signed-off-by: Jesper Eskilson <jesper.eskilson@iar.com>
2015-08-04Bug 460760: Revert Fix DsfSourceDisplayAdapter.openEditor changeJonah Graham1-3/+3
Revert "Bug 460760: Fix DsfSourceDisplayAdapter.openEditor to avoid ignoring editor id set in SourceLookupResult " This reverts commit 2af7d6d5926acc33f6faa6ccdf72863920eb54d0. Change-Id: I0f2694605f95007ad1feac9a126365958d732bd4 Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2015-07-21Cleaned up random number generation in DSF examples.Jesper Eskilson2-9/+8
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-14Fix Disassembly creating 64-bit address breakpoint for 32-bit targetAnton Leherbauer1-2/+6
2015-07-14Fix capitalization of Run to Line, Move to Line, etc.Anton Leherbauer1-3/+3
2015-07-09Bug 460760: Fix DsfSourceDisplayAdapter.openEditor to avoid ignoring editor ↵Dmitry Kozlov1-3/+3
id set in SourceLookupResult Change-Id: I83ef2c8b22cf7a4acef3ccd68b9785a57cb66981 Signed-off-by: Dmitry Kozlov <ddk@codesourcery.com>
2015-07-01Bug 456958 Disassembly view sometimes doesn't update after steppingTeodor Madan1-2/+26
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-06-16Bug 317173 - Better use of genericsMarc Khouzam1-19/+27
Change-Id: I19319f85219db677328d9fc35574f07ca84a3752 Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-06-11Bug 317173 - Added genericsMarc Khouzam1-3/+2
Change-Id: I9387aa408f43cb34e93182286e5a1f5f281ca418 Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-06-11Bug 317173 - cleanup warningsJonah Graham3-12/+15
- Add generics for ServiceRegistration and ServiceReference (added <?>), See Bug 322007 which added generics to OSGI - Add generics for getAdapter, See Bug Bug 442021 - Fix calls to MessageFormat.format() - Cross reference some unused/commented out code for dprintf with associated @SuppressWarnings("unused") Change-Id: I4bacb3b37b69c97ab35615413f0f1f3e71aa2092 Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2015-06-11Bug 469926: Update readme from CVS to GIT URLsJonah Graham1-3/+3
Change-Id: I77ee51f2a59bf306b789a6664b82a5f8d79f919a Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2015-06-10Incremented CDT feature version to 8.8.0Marc Khouzam8-9/+9
Change-Id: Ib1189a08a5f0225fd676b682dc8a10477ad3acc5 Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-05-11Bug 467023 - Minor updates to the DSF Programming IntroJonah Graham1-2/+8
- Add a note about turning pre-processor off so edits made as part of the tutorial are not overwritten - Add missing ConfinedToDsfExecutor for Exercise 4 - Fix typo Change-Id: I790fc2e3f640510a665a9a29a04f20502af7c710 Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2015-05-04Incremented CDT feature version to 8.7.0Marc Khouzam8-9/+9
Change-Id: Ife0feaaa9263d2b7797e31d628250bd26caff1b5 Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-05-01Fixed copy-paste-bug causing the wrong variable to be checked in aJesper Eskilson1-1/+1
conditional. Change-Id: I4156b612b955dc5ac648b4d331ac9537f8b182f9 Signed-off-by: Jesper Eskilson <jesper.eskilson@iar.com>

Back to the top