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

24999 commits

Author SHA1 Message Date
Doug Schaefer
14b07f490c Bug 510987 - Properly support PIE executables as build output
When checking whether gathering the build output from a
CBuildConfiguration, if a binary is a shared library and is an
ELF file, dig deeper and see if it has an INTERP section in the
program header. That tells us it's actually a PIE executable and
add it to the list.

As a rider to this bill, improve the error message when a Qt install
can't be found for a given toolchain/target.

Change-Id: I8fd0bf2d204e9425b02916d7b17f4309a5ad9dd5
2017-01-25 09:45:36 -05:00
Nathan Ridge
7023f59741 Bug 456293 - Completion of destructor name
Change-Id: I53422b1daf693e8ab6c0ad64857e8b07c970444c
2017-01-24 16:23:53 -05:00
Nathan Ridge
0a23da7e56 Bug 509182 - Completion of class type in using-declaration
Change-Id: Iacd0ab4bfead2df31cddc78840853eb697139b02
2017-01-24 16:10:07 -05:00
Nathan Ridge
d02a030f03 Bug 509191 - Do not create parameter guessing proposal if we know we are not calling the function
Change-Id: I7e45501707e0f58ed6d8745506a3519e29c0763a
2017-01-24 16:05:32 -05:00
Nathan Ridge
72fe8bfa97 Bug 510010 - Uniform initialization in template argument
Change-Id: I55853735e44fdf6240bebb53f2e7ab1a6885b273
2017-01-24 11:04:14 -05:00
Nathan Ridge
1a627cc928 Bug 509734 - Cross-project references to template instances
Change-Id: I14ed61d2f709f615ba74501e70ac4ddc0db3d05a
2017-01-23 23:44:49 -05:00
Doug Schaefer
f810db333f Bug 510885 Fix case where two env vars try to prepend
The env var operation processer always turned the resulting operation
into a replace, even if it was two prepends. That kills the actual
prepend operation. In this case, keep it as a prepend. Also fix the
append case this way.

Unfortunately this is still broken in other multiple operation
cases, like appending then prepending.

Change-Id: Ib158317f16d025a479201745159a2aa3c1335e25
2017-01-23 16:45:58 -05:00
Marc Khouzam
18a6da0bab Bug 508543 - Reverse Bp Action doesn't display type properly for editing
The value returned by IBreakpointAction#getTypeName() must match the
value provided in the plugin.xml file for that same action.  The two
names are compared in ActionDialog.createDialogArea() to know if the 
proper action has been found.  This is a fragile technique, that should 
eventually be improved.  For now, we just fix the current problem.

Change-Id: I70fd8b90fc680d3a5d55a95bdd5193d382b6c6f2
2017-01-23 14:59:41 -04:00
Marc Khouzam
1bd7c6a8f4 Must use DSF Executor to fetch service.
Change-Id: I3750fe262a3c507d26fb761fa6adad0b715313c3
2017-01-23 12:59:16 -05:00
Marc Khouzam
0575292e2d Typo in error message
Change-Id: Icb470bfadd25ae37fcfacece90ec49b4423f88f0
2017-01-23 12:56:25 -05:00
Nathan Ridge
9c8ec378db Bug 509731 - Completion between empty parentheses in simple-type-constructor-expression
Change-Id: Ibe87a0fdfb0e7c8dd1a1392bc9643bc03ac73c38
2017-01-22 13:46:13 -05:00
Joseph Henry
785f442ee1 Bug 495423 - Indexer produces a erroneous "Symbol could not be found"
Added catch all condition to ConditionalExpression type evaluation where
both positive and negative types are the same.

Change-Id: I990b502dfce8ef71c753ac188e072de312b7ea9f
Signed-off-by: Joseph Henry <joseph.henry@sas.com>
2017-01-21 15:19:14 -05:00
Doug Schaefer
db3d5974e6 Fixes for Windows Serial Port.
Cleaned up some error messages. Especially when a system has no
serial ports. Also added a delay when ports are closed since some
serial port drivers (FDTI in particular) take a bit longer to
properly close. Especially important in pause situations where we
want to use the serial port for some other purpose right away.

Change-Id: Ifc9b7171682962e0aed8e9ed9ebf5472fc9e8206
2017-01-19 19:44:30 -05:00
Nathan Ridge
0ade726481 Bug 509833 - Follow-up to fix propagation of the point of instantiation in ClassTypeHelper.findOverriders()
Change-Id: Ia59c361e075874dec5551803d985ed20329245da
2017-01-18 14:59:08 -05:00
Nathan Ridge
8eb4c53571 Bug 509871 - ClassCastException in EvalConstructor.computeForFunctionCall()
Change-Id: If4b7dac7a6665619f80a57ebfe83ce8749b7dd9c
2017-01-17 19:48:05 -05:00
Alvaro Sanchez-Leon
8f096340f4 Bug 509895 - GdbBasicCliConsole left running after platform shutdown
when launch fails

Change-Id: I45f92c635af0bdb24e2bb88adf4f1df915cb4a0f
2017-01-17 14:01:48 -04:00
Nathan Ridge
9c3cd51e49 Bug 509833 - Fix unsafe method call in ClassTypeHelper.findOverriders()
Change-Id: I3368d7dd22ce8e207f6363509b6830099a8f0236
2017-01-16 12:04:16 -05:00
Nathan Ridge
2a613abcd2 Bug 509733 - Open Declaration with source and target inside a macro invocation
Change-Id: I1f31a94caa0b48ba07380f28dc11ba74629b202e
2017-01-14 22:35:28 -05:00
Nathan Ridge
a72d9b4198 Bug 497500 - Display per-file indexing time for diagnostic purposes
Controlled by the org.eclipse.cdt.core/debug/indexer/activity debug option.

Change-Id: I9eceb9e72697230b51221db7b0680494fefad154
2017-01-14 22:33:42 -05:00
Nathan Ridge
fbbed5cf82 Bug 509662 - Friend function declared in header included at non-global scope
This fix is a hacky workaround. A proper fix involves fixing bug 315964.

Change-Id: I733064fe3aa0d9416854954ef3e3a8250566dac1
2017-01-10 20:55:18 -05:00
Nathan Ridge
86ab2bdefc Bug 509619 - Highlighting of pointer passed by const reference
Change-Id: Ife414e63ad7076334b7ced9d33aa9b59084caa02
2017-01-06 20:06:15 -05:00
Marc-Andre Laperle
fed5bbe01e Bug 509737 - Disable full GDB console on Mac
Until we can figure out a nice fix for it. See bug for the findings
so far. Hopefully this will just be a stopgap.

Change-Id: Id4f7d91645fd25b140d3eb256da5ebdedc1d0e3f
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
(cherry picked from commit 6adc3c29a6)
2017-01-06 16:02:12 -04:00
Nathan Ridge
07780470e8 Bug 507138 - Avoid collisions between the keys of CProjectAnnotations used for statement folding
This is mostly to mitigate the effects of a bug in ProjectionViewer
(bug 509559). See the discussion in bug 507138 for details.

Change-Id: Icf36b54d6a11892f02214a168ef1c9c284478710
2017-01-05 22:23:36 -05:00
Nathan Ridge
b850913c5d Bug 509497 - ArrayIndexOutOfBoundsException in EvalCompositeAccess.getType()
Change-Id: I9f72d7b0dcf1436c2b1e0f7780556906266a11a5
2017-01-05 22:23:19 -05:00
Nathan Ridge
9cfde14e8f Bug 509496 - ClassCastException in CPPASTInitializerList.createEvaluation()
Change-Id: I9008c56a5489b6e4dbf114eddcf1900d8447bff9
2017-01-05 22:23:08 -05:00
Jonah Graham
e49517eb7c Bug 509320: Increase version dependency to current o.e.cdt.core.native
Change-Id: Ifc5af78ff92f6bf8b6b06b34fe22295aa10eb37e
2017-01-03 12:52:28 +00:00
Nathan Ridge
3f8b3f0870 Bug 508254 - Gracefully handle ProblemBinding arising during instantiation of EvalConstructor
Change-Id: Ib5c5ce10e32cb0e7b42ccf0283709295da311931
2017-01-01 18:56:51 -05:00
Nathan Ridge
94f4b03a06 Bug 508254 - Have adapter bindings for anonymous AST bindings implement ICPPInternalBinding
Change-Id: I02f035e6746aec4a937a325982033d70d711ffc7
2016-12-31 13:29:36 -05:00
Nathan Ridge
d45c9b4851 Bug 491343 - Find references with only polymorphic results
This commit also adds infrastructure for testing 'Find References'.

Change-Id: Ibe33dd00dd178587b202a9ebb1dd29315711f6fb
2016-12-26 19:43:44 -05:00
Nathan Ridge
ade410bbe9 Bug 508254 - Static field of enclosing class type
We previously guarded against recursion in this case, but the
result was an invalid composite value that could cause problems
down the line.

This patch avoids getting into the recursion to begin with by
skipping the processing of static fields in a case where it's
not necessary to begin with.

Change-Id: Ic3a346092bb7ad5c94cd15871110dd17ecd64886
2016-12-26 19:43:35 -05:00
Nathan Ridge
9b3a28f334 Bug 508254 - Fix some more indexer exceptions
- Avoid a ClassCastException in CPPConstructor.getMemberEvaluation()
  - Fix an unsafe method call in EvalCompositeAccess.getType()
  - Emit a log message in an error case in ASTInternal.getDefinitionOfBinding()
  - Emit a log message in an error case in CompositeValue.setSubValue()

Change-Id: I5932c8b661e31eff32c2bb138efdb3029894d0ab
2016-12-21 20:16:46 -04:00
Nathan Ridge
2155b119ea Bug 470726 - Avoid name resolution resulting in PDOM bindings for class template partial specializations defined in the AST
Change-Id: I1e08c7430dd0478357867266648e02cc45eaa888
2016-12-21 20:15:21 -04:00
Nathan Ridge
5805a97600 Bug 508254 - Do not assume every field has an initializer
Change-Id: I9d6a3ba13606c8bb514598906e42cc0cc4d4d2c5
2016-12-21 20:13:45 -04:00
Nathan Ridge
1a7d4622e2 BUg 508254 - Move the recursion protection set in CPPVariable.getInitialValue() to EvalUtil.getVariableValue()
This catches recursion along paths in EvalUtil.getVariableValue() that don't
go through CPPVariabble.getInitialValue().

The patch also improves caching in EvalInitList.

Change-Id: I343bbf1bb7493b2c83771de3659209e5d512fd80
2016-12-21 19:44:05 -04:00
Nathan Ridge
6ede80fd95 Bug 508254 - Improve handling of braced-init-lists
Also avoid several exceptions in related codepaths.

Change-Id: I528a123daff090033285f0ed930ac5b822100974
2016-12-21 19:43:03 -04:00
Nathan Ridge
36feebd088 Bug 508254 - Variable initializer that references the variable
Change-Id: Ic5b0692db297dead087e4c8479fa0c0f134554da
2016-12-21 19:41:29 -04:00
Nathan Ridge
a067fa4afb Bug 508254 - Do not allow instantiation of template with invalid non-type template argument
Change-Id: I29472ddda96631147022c4302f9e9b96a1e3d9e6
2016-12-20 20:41:30 -04:00
Nathan Ridge
94734f0fd1 Bug 508254 - Instantiation of id-expression naming static field
Change-Id: I97732a3f1ceba560e762e5f61c68a052ebceb7b5
2016-12-20 17:45:26 -05:00
Christian Sell
7f9171cd74 Bug 503153.Fixed NPE in GCCToolChain.getDefaultScannerInfo()
Change-Id: I51c4d4c2e517fc5743b180c99212dc9c3b8134ed
Signed-off-by: Christian Sell <c.sell@byterefinery.de>
(cherry picked from commit e0c3180f80)
2016-12-15 12:26:39 -04:00
Jonah Graham
0b024e9e3e Bug 509248: Disable unstable/intermittent SWTBot based tests
Change-Id: I97b764c2aa695fed32a9c39232ba53522383deca
2016-12-14 15:57:23 -04:00
Marc Khouzam
7f36a0c128 Remove dependency to cdt-master from CDT's target file.
The CDT does not need to depend on itself.
I believe this dependency was added while troubleshooting another
problem.

Change-Id: Ic79cc8c00c67f323198bb49d1596e4d254bbd924
2016-12-09 09:59:19 -05:00
Alvaro Sanchez-Leon
ebb8212e4a Bug 507950 - Deadlock when changing a variable value when reverse
debugging with full gdb console

Change-Id: I85618169e49a181a074417f132a4860cd9b7c026
2016-11-27 20:02:54 -04:00
Doug Schaefer
cb14b447f8 Fix NPE in CMake clean when generator not selected.
Change-Id: Id019a84aaffd597374bc3347229a554acf8d5dce
2016-11-21 13:39:47 -05:00
Marc Khouzam
b7739323be Add id to GdbFullCliConsole and GdbBasicCliConsole menu
The GdbFullCliConsole has id:  GdbFullCliConsole.#ContextMenu
The GdbBasicCliConsole has id: GdbBasicCliConsole.#ContextMenu

The commit also adds an example of adding a new button to those menus in
org.eclipse.examples.dsf.gdb

Change-Id: If9579e3e60524f39a332df868f512c5f457043ed
2016-11-21 13:29:13 -05:00
Jonah Graham
8ae2e13a00 Bug 506382: Be more lenient with GDB protocol error
Due to a GDB bug present in numerous versions of GDB
https://sourceware.org/bugzilla/show_bug.cgi?id=19637
CDT can fail to display advanced memory info and
registers view properly.

This fix is more lenient, and if the user really wants
to see the registers, a workaround for GDB's bug is linked
to.

Change-Id: Ia78947e29a1e446837ef992d470dfd14f047bda2
2016-11-21 04:09:40 -04:00
Alvaro Sanchez-Leon
b57bc0690f Bug 507752 - [debugger console] Check if view is opened in perspective
The Debugger console view should remain visible when switching
perspectives

Change-Id: I22bcfefca980324c9e2918d91217ef83ade056b8
2016-11-18 16:18:35 -04:00
Doug Schaefer
e88f5d7321 Put the Arduino and CMake features into the extra categories.
Change-Id: If371f6bc05aba1ac54221153ec0223a5dde11c56
2016-11-17 16:44:00 -05:00
Marc Khouzam
d53b5ed4bb Point cdt_9_2 build to its own location
Change-Id: Ie545ef1a4c1aa97beb86e461c2d67f084021be07
2016-11-15 20:25:25 -05:00
Marc Khouzam
d7b8286b69 Update p2.inf for 9.2 release
Change-Id: I6d458a1598d21d1cc7f25aa13479f8f30e16adfb
2016-11-15 21:05:18 -04:00
Marc Khouzam
bece8fc16c Revert "Update plugin version and fix @since tag"
Commit 6335a5c2ba reverted
a previous commit which made the changes being reverted
here unecessary.

This reverts commit 896eba55c5.

Change-Id: I890a67513b35df7708f9fc33c0be3e879fdb9e0e
2016-11-15 21:05:03 -04:00