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

771 commits

Author SHA1 Message Date
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
Marc Khouzam
d997a7c313 Bug 317173 - Added generics
Change-Id: I9387aa408f43cb34e93182286e5a1f5f281ca418
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-06-11 10:55:26 -04:00
Jonah Graham
26bef5d321 Bug 317173 - cleanup warnings
- 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-11 10:53:35 -04:00
Jonah Graham
835288f558 Bug 469926: Update readme from CVS to GIT URLs
Change-Id: I77ee51f2a59bf306b789a6664b82a5f8d79f919a
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2015-06-11 13:01:58 +01:00
Marc Khouzam
bb61124897 Incremented CDT feature version to 8.8.0
Change-Id: Ib1189a08a5f0225fd676b682dc8a10477ad3acc5
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-06-10 09:33:49 -04:00
Jonah Graham
406950d31f Bug 467023 - Minor updates to the DSF Programming Intro
- 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-11 19:00:33 +01:00
Marc Khouzam
e820f872ad Incremented CDT feature version to 8.7.0
Change-Id: Ife0feaaa9263d2b7797e31d628250bd26caff1b5
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-05-04 21:07:13 -04:00
Jesper Eskilson
01a1046fa1 Fixed copy-paste-bug causing the wrong variable to be checked in a
conditional.

Change-Id: I4156b612b955dc5ac648b4d331ac9537f8b182f9
Signed-off-by: Jesper Eskilson <jesper.eskilson@iar.com>
2015-05-01 20:42:11 -04:00
Mikhail Khodjaiants
0215bdc330 Bug 465963 - Changing "Variable text font" preference has no effect
Change-Id: Ibe7dc5a5dbdbdd698f13094f220bf00255ad6221
2015-05-01 20:39:15 -04:00
Mikhail Khodjaiants
9d848e3ede Revert "Bug 465963 - Changing "Variable text font" preference has no effect"
This reverts commit 6d6666df33.
2015-04-30 12:36:45 -04:00
Mikhail Khodjaiants
6d6666df33 Bug 465963 - Changing "Variable text font" preference has no effect 2015-04-30 12:16:25 -04:00
Marc Khouzam
2c56fe5406 Cosmetics
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-04-20 14:22:19 -04:00
Marc Khouzam
ecf21ca882 Move to new getAdapter() signature using generics
Change-Id: If51cc778c1b7e7dfea7a6fb3b7f39acea56aa330
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-04-18 22:03:17 -04:00
Alena Laskavaia
0fec0f9cd3 Bug 464639 - DsfSourceLookupParticipant throwing exception on unknown
object

Change-Id: Iac79f1e942c90d700f5f6275da44ea89597aa3b2
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
2015-04-17 11:07:56 -04:00
Marc Khouzam
3f8305fc0f Move to new getAdapter() signature using generics
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-04-15 15:39:36 -04:00
Marc Khouzam
2335e8b93b Move to new getAdapter() signature using generics
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-04-15 14:02:24 -04:00
Jesper Eskilson
f38dd92fb6 Fixed problem where auto-unboxing may throw NPE
Change-Id: Ib7728721ce2c679565c8399722f1de50930fb3ed
Signed-off-by: Jesper Eskilson <jesper.eskilson@iar.com>
2015-03-28 10:15:35 +01:00
Marc Khouzam
4781f20495 Move some leftover plugins from Java 5 to Java 7.
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-03-25 13:42:20 -04:00