Commit graph

207 commits

Author SHA1 Message Date
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
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
5d6bef7eb5 Bug 489505 - Add hovering support to the traditional memory render
Change-Id: I06d7264835a8199398aad1a0215d775caa29e079
2016-04-11 14:29:23 -05:00
Marc Dumais
4ab317096d Cosmetics
Change the output chunk size from 4 to 1 addressable unit, for the plain
text memory exporter.

Change-Id: Iaccebdf87e0d297754bc2dd12fc11f207476871a
2016-03-31 13:33:49 -04:00
Marc Dumais
750f009c20 Bug 490685 - add missing @since tag in MemorySpacePreferencesHelper
Change-Id: Ib59fa1fbcc15d86ceed978656095a015dd099b08
2016-03-30 10:08:29 -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
91f9730d27 Bug 489579 - [memory] PlainTextExporter doesn't work as expected, when
addressable size > 1

Change-Id: I97bc6aecbc9db0c40831b8180295df72ed283410
2016-03-30 09:58:49 -04:00
Marc Dumais
da8e356c89 Bug 488115 - [memory] Add "go to address" action to the Traditional
Rendering

Change-Id: If6d3c37742530648f1019ee8933fcaaf246a505c
2016-02-26 10:54:19 -05:00
Alvaro Sanchez-Leon
fd386abe7c Bug 284459 - Traditional Memory does not show Memory Change color after the memory changes
When using DSF-GDB, the handleSuspend event is received only when a
breakpoint is hit (i.e. not when it's actually suspended),

However memory changed events are received when applicable during
stepping, however the base code does not call the "archiveDeltas()" for
this event.

This change adds a call to archiveDeltas if the update mode is set to
UPDATE_ALWAYS upon reception of memory change events.


TO REPRODUCE this problem:
The issue is that only one snap shot of history is applied with the first
address / expression search, and this is used for all other comparissions,

So you can search for a variable with bigger address value as a first 
memory search, and then step the code and see that variables close by 
with smaller address values will be updated but not colored.

e.g.  
&Test -> address 0x110
&X -> address 0x100

if &Test is used as the first memory search, and then the code changes 
value of &X while stepping the code, the cell holding &X will not be 
colored as expected.


Change-Id: Ibdc1fae6ed73ec2819fe9539d56f9ea9b6302535
2016-02-23 18:26:26 -05:00
Marc Dumais
39f168158f Bug 354754 - [Memory Browser]Changing the memory space doesn't update
the view

Change-Id: I6a68433d8c7fc53da939f9c852136ab812ea42e3
2016-02-16 06:42:36 -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
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
Alvaro Sanchez-Leon
64243f4a4c Bug 474050 - [memory] Add the context menu option "Add Watchpoint
(C/C++)" to the Memory Browser view

Change-Id: I56887ed783b527a72ba74d5f3776d5adcc42ece9
2015-08-03 08:41:07 -04:00
Alvaro Sanchez-Leon
ee31cb921d Bug 473536 - [memory] Add a Find-Replace menu option to the memory view
Change-Id: I0adfae1c9bf0b65408c9a8e6230d5be14b728650
2015-07-30 13:29:54 -04:00
Teodor Madan
c5a5040e62 Bug 387500 PgDn/PgUp jumps uses large address increments for memory
spaces with 64-bit address

- Fix scroll adjustments according to current viewport addresses
- Add CTRL-Home/CTRL-END to go to start/end of memory space
- Add Home/END to go to start/end of the row
- Add eclipse debug tracing support

Change-Id: Ifba9f1e6c67e1cc6ccb8f6f8787a55520d8bf9be
Signed-off-by: Teodor Madan <teodor.madan@freescale.com>
2015-06-18 07:02:55 -04: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
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
Marc-Andre Laperle
5da5634038 Fix version format for memory.floatingpoint
This would make Tycho 0.23.0 fail. See bug 464649.

Change-Id: I4e4ce6fc2714b5179eeb7fdd16c9461517d67a47
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-04-16 10:33:08 -04:00
Marc Khouzam
d702a8f947 Bug 425698: Refresh Traditional rendering in memory view when
stepping

Change-Id: I61c4b502a161139f98d7b73026a863dcf4f2ad52
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-04-06 15:17:42 -04: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
Marc Khouzam
37890019cb Remove warnings caused by change to getAdaptable()
getAdaptable() in 4.5 M6 has changed to use generics, making casting its
result no longer necessary.

Change-Id: Idd943216a925576bb72c784b2c5a2a4b8e8b00d2
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-03-25 11:01:46 -04:00
Alvaro Sanchez-Leon
43bc574e90 Fix Compilation Errors
Change-Id: Ie3b0facf85527370862f7a480fcbce91d0703a70
2015-03-24 15:04:59 -04:00
Sergey Prigogin
252eaf4c0f Incremented CDT feature version to 8.6.0.
Change-Id: Ic90c8e6a68d21e5b90ec3fac997da6a95a29bedf
Signed-off-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Reviewed-on: https://git.eclipse.org/r/39066
Tested-by: Hudson CI
2015-01-06 19:40:38 -05:00
Sergey Prigogin
d8154bd340 Inremented branding plugin version to 8.5 2014-07-21 17:39:01 -07:00
Sergey Prigogin
a2fbb5c879 Inremented feature version to 8.5. 2014-07-21 17:07:12 -07:00
Marc Khouzam
397b269e26 Bug 435998 - Remove 'updateSiteName' string as they are not used
Change-Id: I55485c9cba17f544d50d8e27b77d6644493d8300
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27500
Tested-by: Hudson CI
2014-06-18 15:54:57 -04:00
Marc Khouzam
ce9b270a38 Bug 435998 - Get rid of all "eclipse_update_120.jpg" files in CDT
features

Change-Id: I52a71e62f8161990657e96ef52403fd7f69698a2
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27499
2014-06-17 11:33:37 -04:00
Marc Khouzam
2c22479c9e Bug 435309 - Use the shared license file scheme for CDT
This means that:
- feature.xml files now make a reference to the shared license plugin
      using version 0.0.0
- feature.properties files no longer have the text for the license
- license.html and epl-v10.html files are removed as they are part
      of the shared license plugin
- build.properties files no longer reference removed files
- the main pom.xml file references the license repository

Change-Id: Ibd880480de3a07597084d44cce7b822903509079
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27250
2014-05-26 10:03:45 -04:00
Marc Khouzam
5806deb5b8 Update to new license text
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-05-20 11:36:39 -04:00
Marc Khouzam
fa5de3be3b Update license.html files for 2014 version
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-05-02 11:17:44 -04:00
Marc Khouzam
fe24fd0570 Enable API tooling for o.e.cdt.debug.ui.memory.traditional
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-04-21 16:33:47 -04:00
Marc Khouzam
98484e01ca Enabling API tooling for memory.floatingpoint/memorybrowser/transport
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-04-21 16:16:01 -04:00
Ling Wang
06854adaef Bug 414519: [Memory View] user specified start address is not honored.
Change-Id: I0e72b6a4d685197191427c93b67b9a96d80da682
Signed-off-by: Ling Wang <ling.wang@silabs.com>
Reviewed-on: https://git.eclipse.org/r/15214
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
IP-Clean: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-02-28 15:34:59 -05:00
Alvaro Sanchez-Leon
e49589af70 Bug 426730: [Memory] Support 16 bit addressable size
Change-Id: I1fa5498eebe66cc6febbfaf72c4e433bdfab48ed
Signed-off-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
Reviewed-on: https://git.eclipse.org/r/22118
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
IP-Clean: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-02-26 10:59:03 -05:00
Sergey Prigogin
5d7a19fa6c Enabled JDK 1.7.
Change-Id: Ic2a161ea3c318dc1e8ba01c271c936bf5ed8763d
Reviewed-on: https://git.eclipse.org/r/21020
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-01-24 13:38:55 -05:00
Sergey Prigogin
1d166260a8 Bumped up CDT version to 8.4.
Change-Id: I1229344feaaed4a3551ceb7b1ef1410545048b55
Reviewed-on: https://git.eclipse.org/r/20908
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-01-21 17:35:29 -05:00
Marc-Andre Laperle
3bf07e8a61 Bug 416391 - NullPointerException in FPRendering when adding in Mem view
Add null check. IModelProxyFactory.createModelProxy javadoc says
"Returns: model proxy or null". So a null check seems appropriate here.

Change-Id: I0d1ae4ca380c22d4f215b867d0ab5445b415a915
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/16088
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
2013-09-06 19:44:22 -04:00
Andrew Gvozdev
652ce4748e Fixed parent pom version to reference 2013-08-27 15:16:24 -04:00
Sergey Prigogin
bf2790474e Bumped up feature version to 8.3. 2013-08-22 20:06:31 -07:00
Marc-Andre Laperle
bb3e0bf7e0 Bug 414687 - Adapt to generified API from platform Debug
Change-Id: I487a20f3456597f7eddf8a7ce2e1d73ca2dfc423
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/15289
Reviewed-by: Michael Rennie <Michael_Rennie@ca.ibm.com>
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
2013-08-12 10:46:27 -04:00
congwang
440e2e87bf Bug 341632 - Trad mem rendering keyboard access
Change-Id: Iae09285e88f76d1155fd28a6aa25b818ae0164dd
Reviewed-on: https://git.eclipse.org/r/11349
Reviewed-by: Chris Recoskie <recoskie@ca.ibm.com>
IP-Clean: Chris Recoskie <recoskie@ca.ibm.com>
Tested-by: Chris Recoskie <recoskie@ca.ibm.com>
2013-03-22 12:22:48 -04:00
Mike Kucera
d11a8c4902 Bug 341545 - [Accessibility] Traditional memory rendering uses colour to
convey information

Change-Id: I8127a026a3d6abb0291e35f606c622b1fa92ac2f
Reviewed-on: https://git.eclipse.org/r/11133
IP-Clean: Chris Recoskie <recoskie@ca.ibm.com>
Reviewed-by: Jesse Weinstein <Jesse.Weinstein@clinicomp.com>
Reviewed-by: Chris Recoskie <recoskie@ca.ibm.com>
Tested-by: Chris Recoskie <recoskie@ca.ibm.com>
2013-03-22 12:21:16 -04:00
Randy Rohrbach
975d6f48e2 Bug 398329 : MemoryBrowser - switching between debuggees does not update the provider for browser operations like Import and Export
Bug 398332 : The validation logic and feedback for all of the Importers/Exporters is very bad

Added more error checking. See comments in the bugzillas for the details.
2013-01-21 17:25:10 -05:00
Randy Rohrbach
46598455db Bug 398329 : MemoryBrowser - switching between debuggees does not update the provider for browser operations like Import and Export
Bug 398332 : The validation logic and feedback for all of the Importers/Exporters is very bad

   I found some more editing edge cases as well as an NPE on starting a
   new connection with the Browser up, which was the result of a previous
   edit.
2013-01-18 17:07:29 -05:00
unknown
7bbf2d8511 Bug 398329 : MemoryBrowser - switching between debuggees does not update the provider for browser operations like Import and Export
Bug 398332 : The validation logic and feedback for all of the Importers/Exporters is very bad
2013-01-16 18:05:14 -05:00
Randy Rohrbach
dc114aff98 Bug 398136 - ILaunchable is confusing
Bug 398137 - Exporters/Importers should be filterable based on the address size they support
2013-01-14 17:27:05 -05:00
Randy Rohrbach
fb5f1bd39d Bug 397636 : Editing the SRecord Exporter length field fill it in with the
end address.
2013-01-07 17:56:47 -05:00