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

25085 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
Marc Khouzam
a39620356c Update p2.inf for 9.3 release
Change-Id: Ia9447fb5845f63da345af084e6cf191eeafc7d6f
2016-11-15 20:50:11 -05:00
Marc Khouzam
8cf5ed53f2 Update version to 9.3.0
Change-Id: Ic953ccc5d38ff3661ca44de21ed8c4b7dad5b246
2016-11-15 20:32:51 -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
Jonah Graham
03b701c9a5 Bug 494246: prepare command line arguments properly for Windows GDB
Includes splitting out and expanding CommandLineArgsTest
from LaunchConfigurationAndRestartTest.

Change-Id: I19fa97a847d908c1c780ca767cf688f26a51d684
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-11-15 16:59:57 -04:00
Marc Dumais
2ae122963c Bug 303808 - Silence error changing thread in all-stop
In all-stop mode for a remote session, it's not possible to have the
target switch thread, while the target is running. At the moment, the
GDB focus synchronizer attempts to switch the thread in that case, when
the user switches thread in the Debug View, which can fail and ends-up
logging an error. 

This patch silences this error.

Change-Id: Ib21347fe9f4c31b3a42b4a83d289dbcd10b74a07
2016-11-15 15:48:34 -05:00
Alvaro Sanchez-Leon
31f0cc6476 Bug 303808: Run all-stop mode with target async on GDB 7.12
The previous all-stop implementation use Ctrl-C (variants) to suspend
the target program.  This option is not supported when using the new
GDB full CLI console provided in GDB 7.12.

So the alternative is to send the mi command -exec-interrupt to suspend
the target, however this option requires the use of target async-on mode
(already in use for non stop mode).

This update makes all-stop mode use target async mode when using
versions higher or equal to GDB 7.12.

This update also removes the non-stop mode restriction initially
implemented for the use of the new GDB Full CLI console.

Change-Id: Iabef20bdee814d413fc338f9ec8c2d99d6311c20
2016-11-15 15:11:56 -05:00
Alvaro Sanchez-Leon
36fd126919 Bug 303808: Add a GDB CLI Console history buffer
Change-Id: Ide52d3223b65323f3e9476d2c280d0ebe6640ba8
2016-11-15 11:34:55 -04:00
Jonah Graham
b4cc24e31e Cosmetics
Change-Id: I8036046d2e755de2e77ef5bf6502008d4ada0e49
2016-11-15 04:17:06 -04:00
Marc Khouzam
334777eb6e Update version to 9.2.0
Change-Id: I36ad4218b20b8ea70584c89f5be45c757bf4c714
2016-11-14 23:50:05 -05:00
Sergey Prigogin
3797ebcc83 Made template argument classes final.
Change-Id: I06d532e6b4be8f3684e7d3e1470d10df1985db57
2016-11-14 20:28:53 -08:00
Sergey Prigogin
08eb54b46d Bug 507511 - Template function resolution problem when using index
Change-Id: I7e75a188f8902c6b21f2c96660cc68fcebfdd0db
2016-11-14 20:24:15 -08:00
Doug Schaefer
88b2f8564a Fix up feature names for Neon.2 SimRel repo.
Change-Id: I5436457e553610d0676cc87385c2986040e04f2a
2016-11-14 18:24:02 -05:00
Doug Schaefer
a6c3d5d3f4 Mark CMake feature as experimental.
We will the put it into the simrel repository so people can try it out.

Change-Id: Ie7bd94062cfb236f266e413a8350c214ccdadb2c
2016-11-14 16:52:51 -05:00
Marc Khouzam
39c781f81a Bug 497166: Support the user using the 'run' command in the gdb console
This commit introduces a PersistentPTY.  By using it, we now allow the
user to restart the process from the GDB console (by pressing 'run').
In this case, the I/O will continue using the PersistentPTY.

Previously, the PTY would have been closed, and GDB would fail to
restart the process because it would fail to use the closed PTY.

Change-Id: I395b402e297a2043af8fce33df163eddef9e6c7a
2016-11-14 15:30:23 -05:00
Marc Khouzam
e8480ca0f8 Bug 498782 - add synchronize of process selection between the DV and GDB
This patch synchronizes the GDB focus when the user selects a process
node in the DV.

When the user selects a new process (inferior) from the GDB console, we
are already synchronizing the DV to the thread/frame that GDB selects
from that process.

Change-Id: I11dfd175d51ec49e969f4d07288f80f7ea72a3e1
2016-11-14 10:12:03 -05:00
Marc Khouzam
c2b4f18943 Don't force the GDB console to be shown when created.
When a new launch is triggered and a new GDB console created, it was
shown automatically.  However, if there was a current debug session
where the selection was a stack frame, our sticky policy
(DefaultDsfSelectionPolicy) prevents the new session from being
selected, so the new GDB console shown didn't match the selection in the
DV.

With this patch, when a new GDB console is created, we don't show it
automatically, but let other logic figure out if it should be shown or
not.

Change-Id: If826677a6fb0f925f6b397a13f61fc75fc892748
2016-11-13 22:14:38 -05:00
Marc Khouzam
2cbf669a38 Adding API filter for default method
Change-Id: I3a7441ce7820976b663ba5711e848761c8d41f66
2016-11-13 22:10:24 -05:00