1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-13 20:15:22 +02:00
Commit graph

35735 commits

Author SHA1 Message Date
Nathan Ridge
f47edd44e3 Bug 470726 - Avoid name resolution resulting in PDOM bindings for class template partial specializations defined in the AST
Change-Id: I1e08c7430dd0478357867266648e02cc45eaa888
2016-12-11 04:16:12 -05:00
Nathan Ridge
688b358746 Bug 508254 - Do not assume every field has an initializer
Change-Id: I9d6a3ba13606c8bb514598906e42cc0cc4d4d2c5
2016-12-11 05:12:15 -04:00
Nathan Ridge
db9dea4408 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-11 05:11:47 -04:00
Marc Khouzam
cf2e9fe3c8 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:57:10 -05:00
Nathan Ridge
cf6c25ae47 Bug 508254 - Improve handling of braced-init-lists
Also avoid several exceptions in related codepaths.

Change-Id: I528a123daff090033285f0ed930ac5b822100974
2016-12-08 15:13:33 -04:00
Nathan Ridge
63e6688940 Bug 508254 - Variable initializer that references the variable
Change-Id: Ic5b0692db297dead087e4c8479fa0c0f134554da
2016-12-08 15:12:54 -04:00
Marc Khouzam
17ed6bead8 Update target platform to point to oxygen
Change-Id: Ia5a817e77c128802bf6274e061ff8798a3e1a2cc
2016-12-08 12:56:28 -05:00
Nathan Ridge
0d02aea069 Bug 508254 - Do not allow instantiation of template with invalid non-type template argument
Change-Id: I29472ddda96631147022c4302f9e9b96a1e3d9e6
2016-12-07 17:25:40 -04:00
Greg Watson
df4fb93a5a Rename targets. Update to build using oxygen.
Change-Id: I779c1eba8395d9442a907d503f3947f015a23a07
Signed-off-by: Greg Watson <g.watson@computer.org>
2016-12-07 09:57:46 -05:00
Greg Watson
57114ebc1d Update to latest repos
Change-Id: Ica55a0eb53b9d8067be5c22da39c2e008b72f24a
Signed-off-by: Greg Watson <g.watson@computer.org>
2016-12-07 09:42:39 -05:00
Nathan Ridge
a93b94b822 Bug 508254 - Instantiation of id-expression naming static field
Change-Id: I97732a3f1ceba560e762e5f61c68a052ebceb7b5
2016-12-06 20:41:42 -04:00
Jonah Graham
e9c3f978a8 Add missing reference to GDB Debugging Preferences (for DSF preferences)
Change-Id: I46636de4cf8893991ba6587425c45eea6c2d93e5
2016-12-05 21:47:25 +00:00
Jonah Graham
e7ccfabb32 Bug 484900: Remove CDI User Documentation
Change-Id: I16ebb6319d3f10edba55b1b96be053a2dc9bc8b4
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-12-05 21:46:22 +00:00
Doug Schaefer
b57aa9d336 Add image to tabs for the config edit dialog.
Change-Id: Ibe5a0ddb91989de8015b8511bb960addf608d7c0
2016-12-05 15:21:36 -05:00
Doug Schaefer
b6038873b1 Upversion templates UI plug-in for maintenance release.
Change-Id: I56893d9d4c183109c911bd00e61363c9b3fab8d1
2016-12-05 14:52:39 -05:00
Doug Schaefer
1f75afd0c7 Put a border on the tab folder for the config edit dialog.
Change-Id: I07dbcf079a94f71c66669c0cc9578b98fbbc996d
2016-12-05 15:48:38 -04:00
Doug Schaefer
38433e4517 Fix Next button when template is deselected with new tag selection.
Also try and keep the selection when the tag is changed.

Change-Id: Ib676baf5021ccbc160076e3800c01df8f023e02e
2016-12-05 13:59:11 -05:00
Simon Marchi
955afec343 Fixup for "[dsf-gdb] debug tests: Use line tags where possible"
Unfortunately previous commit was submitted too early. There were
two problems that this commit corrects:

1) clear line tags before each test run - side effect of Bug 508642

When a test marked with Intermittent fails, the next retry is executed
with the same class instance.  Therefore, the new try starts with a
non-empty fTagLocations.  The test trips on the check that there are no
duplicate tags.

2) Fix failing testStopAtMainWithReverse

A blank line got inserted into the test case, that
interfered with the test logic.

Change-Id: If4c28557eac7ee740b4e3a5eac5dd2726c39a35d
Also-by: Jonah Graham <jonah@kichwacoders.com>
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2016-12-04 12:06:00 +00:00
Nathan Ridge
3a4f8c1ac7 Bug 506672 - Use ICPPEvaluation to evaluate all unary and binary C++ expressions
We were already using it for expressions whose operands didn't evaluate
to a number, but that missed expressions with enumeration operands (which
can call an overloaded operator).

Change-Id: I6f6e4ff3ba3c72db70ac6f8929473b065f2d758f
2016-12-03 21:21:50 -04:00
Nathan Ridge
d48ebf5d25 Support aggregate initialization in EvalTypeId
The patch also improves the propagation of the point of instantiation
in CompositeValue.

Change-Id: I01d508ab901efeb18a5e6fdb144853b70e1fc829
2016-12-03 21:20:48 -04:00
Simon Marchi
c389f49659 [dsf-gdb] debug tests: Use line tags where possible
The goal is to eliminate direct source line number references in tests,
so that modifying test cases is easier.

Change-Id: I9a4964478e9486bff137fb9aec199cee144c2af4
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2016-12-03 18:08:14 -05:00
Simon Marchi
e8cc363899 MIBreakpointsTest: Factor out breakpoint validation
Almost the same code is used in multiple tests to validate breakpoint
attributes.  We can factor that out in a few support functions.

Change-Id: I819da62cc9e6d7434438574b695131b4cea19c77
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2016-12-03 17:59:23 -05:00
Simon Marchi
e2c5019896 MIBreakpointsTest: Replace AsyncCompletionWaitor with queries
The queries are less verbose and less error-prone.

Change-Id: I875e7f94436b0284c236b850482f9f5ff4cbebf7
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2016-12-03 17:29:05 -05:00
Greg Watson
4206d11f69 Add better boot script error reporting. Externalize strings.
Change-Id: If0193ffeaf9ea03f44eb87cde3e6dd4a3e24f7f5
Signed-off-by: Greg Watson <g.watson@computer.org>
2016-12-01 22:33:07 -05:00
Alexander Kurtakov
67648e0396 Fix cmake feature to use license feature for proper license.
Change-Id: Iec4d07db7f73f38fe72fe698fede2b380052879d
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2016-11-30 21:45:30 +02:00
Sergey Prigogin
dccd99c843 Code cleanup
Change-Id: If94553894586f8745fff9952f3648160110ba609
2016-11-29 20:16:01 -05:00
Sergey Prigogin
83bd6f7ed4 Bug 508338 - Friend class declaration hides the real one in outer
namespace

Change-Id: I3808c74b5b64505b07b8bb1e1a482d7a4c292dfe
2016-11-29 08:32:21 -08:00
Sergey Prigogin
2236ada9fd Made some methods final.
Change-Id: I2100ee93f41df7f4815c22a348a22f823422031d
2016-11-29 10:47:09 -05:00
Sergey Prigogin
83cac8d70e Cosmetics
Change-Id: Iafd277ea476c66fd0639364e4040a3b91cda7a2a
2016-11-29 02:30:32 -04:00
Sergey Prigogin
64cf0c8c51 Cosmetics
Change-Id: I25ee17f987444b59fab219ca05d46a6fa0bf0ed3
2016-11-28 17:42:00 -08:00
Doug Schaefer
ecc24ace4d Fix descriptor name on edit config dialog.
Use the label provider if there is one.

Also externalizes strings for the dialog.

Change-Id: I3a1e5c7f2b2843cd014a033ee5859832f7e10f9e
2016-11-24 14:52:09 -05:00
Doug Schaefer
c0335a085e Bug 507989 - Allow choosing of o.e.remote connection type
Collect the list of connection types that support the command shell
service and pass that to the RemoteConnectionWidget so that you can
select which one you want.

Also adds a fix to the connection manager that was closing the
terminal of read returned 0 bytes. That's generally not an end of
file condition, especially with Serial Ports. There ugliness to them
where you can't close the port while it's blocked on the read, which
means it needs to return once in a while.

Fix setting of title and force new to match the other delegates.

Change-Id: I6b78d789ca28284379d8f1136062ec180e1a8f5c
Signed-off-by: Doug Schaefer <dschaefer@blackberry.com>
2016-11-24 10:27:17 -05:00
Greg Watson
ecd433f470 Add missing plugin to proxy feature
Change-Id: If2a8969624b0c675b13b5ee109a8f352d132049e
Signed-off-by: Greg Watson <g.watson@computer.org>
2016-11-23 14:39:12 -05:00
Simon Marchi
e5c63c7cd8 gdb build script: Make the script work with non-absolute base paths
There are two problems when passing a non-absolute path to the -b flag:

1. It ends up being used in "./configure --prefix=${base_dir}".
   configure fails, because the prefix must be absolute.
2. It ends up being used to set up symlinks, leading to broken links.

Making the install path absolute fixes those.

Change-Id: I7c1d22754c1a788f02cd912f2114cc091951b303
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2016-11-22 16:33:01 -05:00
Doug Schaefer
2e2431dd27 Fix NPE in CMake clean when generator not selected.
Change-Id: Id019a84aaffd597374bc3347229a554acf8d5dce
(cherry picked from commit cb14b447f8)
2016-11-21 15:31:06 -05:00
Marc Khouzam
74e932af4f Typo
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2016-11-21 13:54:26 -05:00
Marc Khouzam
c2914e9be9 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:22:38 -05:00
Doug Schaefer
303bd3aaa7 Fix NPE on last descriptor delete. Refactor supportsTarget code.
Change-Id: I51ed0640a187428416e6d10785b0efc22af764be
2016-11-21 11:45:09 -05:00
Doug Schaefer
4bada0e6ab Preference to Always show Launch Target. Default is auto.
Default behavior is to only show the launch target selector when
the active launch descriptor supports multiple targets. Add a pref
to always show the launch target selector.

Change-Id: I2615ab605be8a6cb706baca7407b265f8b832cf1
2016-11-21 10:49:44 -05:00
Jonah Graham
01b791031c 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:10:39 -05:00
Sergey Prigogin
352f47bc82 Improved Remove Unused Declarations code reducer
Change-Id: I6d7cdea0fe85df14fe64ea7bd57b88ac27f4f9df
2016-11-20 12:42:15 -08:00
Alvaro Sanchez-Leon
899284e8da 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 15:26:11 -05:00
Mikhail Khodjaiants
cce9a941af Bug 506950 - Moving conditional breakpoint to different location can
break synchronization between CDT and GDB

Change-Id: I29e00ae16aba3f7a3b7e035547ad3bcae29afdf8
2016-11-18 14:55:23 -05:00
Sergey Prigogin
a0a959db9d Fixed a misleading dialog title
Change-Id: Icb35ec6128d0b961ab2dc0f8b080466b6a739d10
2016-11-18 13:00:30 -05:00
Greg Watson
006b9d8342 Add remote proxy to repo.
Change-Id: I90eb87869ae4477627c1dafe96d4f09f08f3087a
Signed-off-by: Greg Watson <g.watson@computer.org>
2016-11-18 14:56:01 +00:00
Greg Watson
3f0762afad Bug 507756 - Remove internal packages from ISV docs
Change-Id: Id7ec90df85b82120dc913da0349691ca9a42a228
Signed-off-by: Greg Watson <g.watson@computer.org>
2016-11-18 13:16:09 +00:00
Marc Khouzam
92515ff23d Reverse order of versions in gdb build script
When building all gdb versions, the older ones have
a greater chance of failing, so should be done last.

Change-Id: I8bb2f600d84cc7a8f97c308995c174124d881d8d
2016-11-18 07:54:27 -04:00
Doug Schaefer
5ba9115c5d Put the Arduino and CMake features into the extra categories.
Change-Id: If371f6bc05aba1ac54221153ec0223a5dde11c56
(cherry picked from commit e88f5d7321)
2016-11-17 19:01:29 -04:00
Greg Watson
cf33718b51 Bug 507699 - Support for proxy agent
Change-Id: Ic09c458d5dbfd18f0826c1463253b4dc09283992
Signed-off-by: Greg Watson <g.watson@computer.org>
2016-11-17 13:49:13 -05:00
Simon Marchi
f55a16e8b8 gdb build script: Add missing local variable in check_supported
We use the $version variable in the check_supported function, but it is
not set.  It happens to work because we use the same variable name in
the outer scope, where check_supported is called.

Change-Id: I75e8ae4ef42a232174accf88ca146c0e427f8d4e
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2016-11-17 10:40:57 -05:00