1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
Commit graph

23523 commits

Author SHA1 Message Date
Sergey Prigogin
a424fc6329 Cosmetics. 2015-02-06 10:55:00 -08:00
Marc-Andre Laperle
312aebf72b Enable assertions (-ea) in default launch configuration args
Target definitions and Oomph setup can specify default arguments for launch
configurations. Enabling assertions is especially useful when doing development
in DSF components.

Change-Id: I9bf56515559804b966fd7d3be0cabb726ddf5c4e
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-02-06 13:14:42 -05:00
Marc-Andre Laperle
afd11359e6 Extract test VM args to common property base.test.vmargs
This makes it easier to change arguments for all tests. As a side-effect,
all tests now enable assertion (-ea) and have the same max heap size, etc.

Change-Id: I0965d40ba3283efe7eacdf927f6c302ee0ab30f0
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-02-06 13:02:28 -05:00
Marc Khouzam
7f0174bec5 Update description of Standalone Debugger SDK
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-02-05 14:28:14 -05:00
Sergey Prigogin
03e69933b1 Bug 459179 - ClassCastException in CPPSemantics.getParentScope
Return proper global scope in QtPDOMLinkage.getGlobalScope() method.
2015-02-04 21:38:28 -08:00
Sergey Prigogin
b465383510 Bug 459179 - ClassCastException in CPPSemantics.getParentScope
Fixed compilation error in QtPDOMLinkage.java.
2015-02-04 21:34:53 -08:00
Sergey Prigogin
dc08061cc6 Bug 459186 - Index read locks are leaking 2015-02-04 20:45:30 -08:00
Sergey Prigogin
e98bf3e3e3 Cosmetics. 2015-02-04 20:38:29 -08:00
Sergey Prigogin
c89ac99edf Bug 459179 - ClassCastException in CPPSemantics.getParentScope 2015-02-04 15:11:39 -08:00
Alena Laskavaia
d3718b536f Bug 458091 - Debug frames - cache part II
- added more comments and fixed copyright
- changed one the functions in cache class from private to public
- changed request for stack frames to request for stack depths in
getFrames fallback
- removed an extra private function which is not used anymore

Change-Id: I405e0ad61c6f9bf00bdccd041c0897f423f0b947
2015-02-04 14:24:07 -05:00
Michi
3cf9300566 Bug 459047 - [AccessContext] namingClass not found for nested class
specializations

if a binding is a member of a ClassInstance (owner) we should not try to
find a corresponding class template (target).

Change-Id: Ic865161f137ecb2a300afd03761cc26ee758b38b
Signed-off-by: Michi <woskimi@yahoo.de>
2015-02-04 11:55:03 -05:00
Nathan Ridge
9ca379e67f Bug 458679 - Ranking list-initialization sequences with user-defined
conversions

Change-Id: Ia976acf656f3431f96880b32fedc575a56c4e86b
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-02-04 11:29:07 -05:00
Simon Marchi
3cf7241ccb debug tests: Remove fWait field from GDBProcessesTest
Re-using the waitor between tests possibly a dependency between tests
(e.g. on the order they are ran). It would be easy to forget to add an
fWait.waitReset() to a test and break another test.

It is safer to create a new one every time, while the performance hit is
negligible.

Change-Id: I404d240b29dddffb07899e7e529e7205282bd1d2
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-02-04 11:26:29 -05:00
Simon Marchi
a96fcd5a37 debug tests: MIMemoryTest: Use assertEquals instead of assertTrue when
possible

Change-Id: If9fc8f3f0f1f2070b7bc4ea6dc23778001dc0092
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-02-04 11:22:18 -05:00
Alena Laskavaia
d41b69136d Bug 458091 - Debug frames - cache
- Implemented cache for stack trace (replaces original stack depth
cache with a cache of frames and depth)
 - This is mostly done to mitigate bugs in gdb but it will also help
speed up the debugger since the mi cache doesn't cache commands with
different limits and does not know that if we requested frames already
we don't need to ask about stack depth anymore
 - In case of unrecoverable errors I will also return some constant
depth like 5, later the front end will ask to fill it up and in many
cases gdb will be happy to do that, even if it failed to report the
proper depth in the first place. We originally just returned 1 but it is
really not enough for most of the cases. This will result in potential
white gaps at the end of trace, but it is better then showing just the
first frame when we have errors

Change-Id: I24b42fd7ffea082e8064a9c5348fd95c5f7777be
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
2015-02-02 10:22:56 -05:00
Simon Marchi
59854a48cd debug tests: Factor out duplicated code in MIMemoryTest.memoryCachedRead
Change-Id: I8ee7883e96e99d2daebe7a3748d4e5e6b3a165fe
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-02-01 20:47:19 -05:00
Simon Marchi
9ae9ed49f6 debug tests: Use SyncUtil's memory functions in MIMemoryTest
Change-Id: I47b9e4e65d418743da97bfddb78bfdce29f3c688
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-02-01 20:46:06 -05:00
Simon Marchi
e11bdc4502 debug tests: Use SyncUtil.readMemory in PostMortemCoreTest
Change-Id: I2572e7f9bef8512bd32df7c040f3f12506dc5453
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-02-01 20:44:45 -05:00
Simon Marchi
5500e418c9 debug tests: Use SyncUtil.readMemory in GDBConsoleSynchronizingTest
Change-Id: Ied75ccb790842a746f09e3d7b51bb9225891af96
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-02-01 20:41:45 -05:00
Marc Khouzam
624446b2c3 Bug 458499 - Unable to debug when GDB command contains additional
arguments

Change-Id: I0cfb07dd04d28062a653f76dbd23510d712e4c71
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-01-30 16:14:15 -05:00
Simon Marchi
b662f3b063 debug tests: Add memory access functions to SyncUtil
Unlike those in AsyncCompletionWaitor, these functions are based on
queries. The patch also changes occurences in MIMemoryTest where it
makes sense to use synchronous functions.

Change-Id: Id5e47b7634153d916bf896e47f6cc48f1a4727bd
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-01-30 15:17:55 -05:00
Marc-Andre Laperle
619216fca4 Add build flag (-DskipDoc) to be able to skip building documentation
Building documentation can take several minutes and is often not necessary.
I suggest that we leave it on by default so that people building locally
still get a full, consistent build of CDT but that it should be possible to
skip it on demand.

My build time went from 4:14s to 1:45s (without running tests).

Change-Id: Ic7c4535f3faf82080534d39ccbe6f452d8b52317
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-01-29 22:07:31 -05:00
Marc-Andre Laperle
c6156d2ee6 o.e.cdt.debug.application should export its packages
Change-Id: Ifeb5f78d776eca939187738180434000b0b2f8b2
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-01-29 17:42:05 -05:00
Jeff Johnston
f433cb1e85 Bug 458066 - cannot specify pid to Standalone Debugger
- allow pid to be specified following -a option for Standalone debugger
- if pid is specified, use it to set the ATTR_ATTACH_PROCESS_ID
  setting for the launch configuration
- setting the pid will cause the process dialog not to appear and
  the debugger will attempt to debug the given process
- an invalid pid will result in in the dialog being opened
- the pid is not used with the -r option and is ignored
- updated the README file and docs

Change-Id: I5a1d39f97285ad41dcb986dfb4692f9d808bafeb
2015-01-29 17:24:25 -05:00
Alena Laskavaia
5df84dcfe0 MIStack correct code style
- removed trailing whitespace
- added/removed curly braces according to cdt style
- corrected indentation using tabs only policy

Change-Id: I605f68ed47753e0486aef42049f2e7392cadf9d0
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
2015-01-29 14:43:39 -05:00
Teodor Madan
196d978624 Bug 458650 - NPE when creating a "C/C++ Remote Application" launch
config

Change-Id: I72f48aa4fa7b46e0d5ba5e5e8f6e4877269ea7f5
Signed-off-by: Teodor Madan <teodor.madan@freescale.com>
2015-01-29 09:50:51 +02:00
Alvaro Sanchez-Leon
d95f95521e Bug 458566 - [visualizer] NPE Closing the visualizer when the debug view is not present
Change-Id: I330a91f78504c4430dc39bd58dfb309a3ef6c18a
2015-01-27 13:17:36 -05:00
Sergey Prigogin
d0476b4ae0 Cosmetics. 2015-01-26 22:04:18 -08:00
Sergey Prigogin
021c9c38af Comment adjustment. 2015-01-26 21:55:38 -08:00
Sergey Prigogin
4738597265 Bug 436656 - [Organize includes] Add include for base class when code
using derived class
2015-01-26 21:43:06 -08:00
Sergey Prigogin
3d92885495 Cosmetics. 2015-01-26 21:43:04 -08:00
Marc-Andre Laperle
e3830010d7 Specify program and VM args for target in Oomph setup
Change-Id: Idb4e7c11aa44881309b71e40b5f158e2b33e8423
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-01-26 14:23:28 -05:00
Alena Laskavaia
5a7e047ab5 Bug 458091 - Debug frames are missing or not shown in some cases
- one case where debugger fails to return stack depth, but returns
correct stack frames
- second case where debugger fails to return stack frames when asked
without limit, but can return a specific frame

Both of these are workaround for GDB bugs where it fails to return data
consistently

Change-Id: I4fb0d4e850fbce6adc655849ec3f73c85adb1bdc
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
2015-01-26 10:46:11 -05:00
Alena Laskavaia
b7829381f2 Fixed NPE when opening preference page for Working Sets
java.lang.NullPointerException
	at
org.eclipse.cdt.internal.ui.workingsets.IWorkingSetProjectConfigurationFactory$Registry$1.compare(IWorkingSetProjectConfigurationFactory.java:180)
	at
org.eclipse.cdt.internal.ui.workingsets.IWorkingSetProjectConfigurationFactory$Registry$1.compare(IWorkingSetProjectConfigurationFactory.java:1)
	at java.util.TimSort.countRunAndMakeAscending(TimSort.java:352)
	at java.util.TimSort.sort(TimSort.java:216)
	at java.util.Arrays.sort(Arrays.java:1438)
	
	

Change-Id: Ibe91a679c876ed5f70f4f787188e13e52203466c
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
2015-01-26 10:44:56 -05:00
Marc Dumais
674e89ad8f Bug 458076 - [visualizer] load of some cores missing when there are
multiple CPUs

Change-Id: Ice5e6d7447336ddaf678d37854783eff349e22bb
2015-01-26 08:17:25 -05:00
Simon Marchi
80ff1f872f debug tests: Factor out test in GDBConsoleSynchronizingTest
Factor out the code for testSettingVariableWithSet and
testSettingVariableWithPrint.

testSettingVariableWithSetWithMemory is not exactly the same, so I
didn't factor it out.

Change-Id: Ib4e79eda4851ec2291fcf32054694b76e40c65ca
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-01-25 10:18:36 -05:00
Nathan Ridge
0613bf527a Bug 458317 - Fix an NPE in MethodHighlighting.consumes()
Change-Id: I6a88e26aa60d57dd8c95079672ce0c1ceff8b3d7
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-01-24 05:23:26 -05:00
mazab
69aa2d0bf0 Bug 438549. Add mechanism for parameter guessing.
Change-Id: I5545d179cfd7c54e2a52f856ea21da43e57587d6
Signed-off-by: mazab <mohamed_azab@mentor.com>
2015-01-23 20:22:33 -05:00
Alena Laskavaia
7124bcc621 Enhanced Expressions: menu for add locals and registers in dsf
Added a popup menu in expressions menu to add locals group
and registers group - for discoverability of this feature.

The menus are added to generic dsf but the command handlers 
added to the gdb plugin, just in case somebody wants to implement
this for another dsf based debugger

Change-Id: Iab64e2a9f3a0c81f8bac939a2a5e94c67ef1daba
2015-01-23 20:14:12 -05:00
Marc Khouzam
56aa41f360 Missing fragment description for ppc64le
Change-Id: I08a69ccb69e184a8d6c08ff22f1e4ac956f648a4
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-01-23 13:18:00 -05:00
Teodor Madan
c00e25a8ad [Bug 457699] Fix NPE when renaming project and executable path LC
attribute is empty

Change-Id: I27405f759a0cdec1d66bc6bc63be0e7dbd183bf8
Signed-off-by: Teodor Madan <teodor.madan@freescale.com>
2015-01-23 03:21:17 -05:00
Marc-Andre Laperle
bd247695cc Add setup file for Oomph
This patch adds a setup file for Oomph. To test it:
1. Start the Oomph installer (https://wiki.eclipse.org/Eclipse_Oomph_Installer)
2. At the package selection, click the Advanced Mode button in the top-right
corner
3. Select Eclipse IDE for Eclipse Committers. Click next.
4. Select Eclipse.org
5. Click on the '+' button in the top-right corner, browse file system for
CDT.setup.
6. Double-click on CDT in the tree. Click next.
7. Enter installation folder name, workspace name. Click Next, Finish.

This should install and start a new Eclipse installation with the CDT code
ready to be worked on. Once this patch is merged, the setup will be added to
Eclipse catalog so that the user doesn't have to browse for the file.

Change-Id: Ia84383e9cc64fd3eec0e738e5266dcd8ba6dad0a
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-01-22 21:45:57 -05:00
Jeff Johnston
c9f9ee1bb9 Initial Standalone debugger SWTBot test
- includes a launch configuration for launching directly from
  an Eclipse session

Change-Id: I238e72894b739f827dd6efba3acef9d304771f0d
2015-01-22 15:00:53 -05:00
Marc Khouzam
b36c74eb6a Bug 214398: Small cleanup
Change-Id: Iff09cb9815bfc9913ad6cc69a94e6fe8f4cb4251
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-01-22 14:07:58 -05:00
Ungureanu Dan-B07892
f03ce33b71 [457699]. Update C/C++ Application path at project rename
Change-Id: Ia9a2cd7c57a12bb74346915f22b6617fbb42a309
Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=457699
Signed-off-by: Dan Ungureanu <dan.ungureanu@freescale.com>
2015-01-22 04:02:44 -05:00
Sergey Prigogin
2c9a404d44 Bug 451082 - Added support for 'alignof' 2015-01-21 14:33:16 -08:00
Alena Laskavaia
8e7e750522 CAbstractMainTab: fixed possible NPE if method called direcly
updateBuildConfigCombo originally accepted null as arument, restored
this behavior (it is not called with null from cdt code, but may be
called from overriding classes)

Change-Id: I7d0f271b2bd414d380a1804b838ce38fbdc7c0af
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
2015-01-21 09:14:21 -05:00
Marc Khouzam
8855a845a3 Bug 456959 - Unit tests for bp after restart bug
Change-Id: Id25d6a6c7c2e094b5308ca42e2f1fa24c260f6af
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-01-21 08:13:07 -05:00
Sergey Prigogin
686ad904b2 Bug 457511 - Instantiation of nested class used inside enumerator
Change-Id: I45f8f49ab1aa45b8f1309bb465ca08b001762173
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-01-20 20:29:06 -08:00
Marc Khouzam
b447d066aa Bug 457495 - Include packed jars for CDT builds
With this change the build will now contain the 
packed jars for each plugin.  They can be seen under
releng/org.eclipse.cdt.repo/target/repository/plugins/*pack.gz.

Those packed jars are removed from the zip file as they just duplicate
the existing jars.

Change-Id: Ida5804e6939f1dd99a5cc169518738bb394198a6
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-01-19 18:25:31 -05:00