1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00
Commit graph

1564 commits

Author SHA1 Message Date
John Dallaway
60d95da97b Bug 399460: Resolve variables using launch context
Resolve project-related string variables within the GDB command, based
on the launch configuration rather than the current selection.

Change-Id: I6fc5d2f1de515624aff59397de60d0c394acf72f
Signed-off-by: John Dallaway <john@dallaway.org.uk>
2018-04-21 01:15:16 -04:00
Samuel Hultgren
ec9361bd45 Bug 533771 - Allow limit scope of MIStackListArguments
Change-Id: Ibe63ea352fa4daae0d91989595d79b39c3ef92f0
Signed-off-by: Samuel Hultgren <samuel.hultgren@st.com>
2018-04-20 07:14:46 -04:00
Samuel Hultgren
4dd0d4ec05 Bug 533769 - Show error messages directly
Include the error message in the message shown directly in the error
dialog.

Change-Id: I8d6e65353750ee59966ede59b75ebc6256658cb6
Signed-off-by: Samuel Hultgren <samuel.hultgren@st.com>
2018-04-20 07:12:18 -04:00
Torbjörn Svensson
72a51e79d9 Bug 533766 - Deadlock at IDE shutdown with active debug session
When shutting down eclipse and there is an active debug session, eclipse
might deadlock if it can't destroy the debug session and would normally
leave a zombie process for the eclipse instance.  This fix allows
eclipse to properly shutdown if the debug session is destroyed in less
than 1 minute, else the IDE will simply be terminated.

Change-Id: Icb9b019c7ff2ec9cdc9870a392a657fe0dfde81b
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2018-04-18 17:54:44 +02:00
Jonah Graham
06273ad9fb Bug 532592: [tests] use disassembly mode supported on GDB >= 7.5
Previous code was only supported on GDB >= 8.0 with /s was introduced
to disassemble command.

Change-Id: Ic82b43c13e0567972d0a032325b12df4786a7ce3
2018-03-20 09:26:14 +00:00
Jonah Graham
6a0de9f520 Bug 532592: [tests] cleanup use of DEBUGGER_MODE_REMOTE in tests
Be consistent in using DEBUGGER_MODE_REMOTE to set remote session
in parameterized tests.

Change-Id: Ie8db7df02ec575f3e89d22e00b06e4e197833a37
2018-03-20 09:16:00 +00:00
Jonah Graham
f388f97fff Bug 532592: [tests] fix bitrotten GDBRemoteTracepointsTest
When I fixed the assume on "remote" in commit 4a447ce1a6
I exposed this test as having not been run in a while and it has
bitrotten due to changes in the compiler behaviour and the bad
definition of fastTracepointsSupported. This commit brings the test up
to speed.

Change-Id: I5eee6af4de111d864465851de91889aecf875dfb
2018-03-19 22:35:56 +00:00
Jonah Graham
220e0696ed Bug 532599: [tests] use os allocated port for gdbserver comms
Change-Id: I2843472de14cf767896070fcba8add508a1a9eca
2018-03-19 13:19:17 +00:00
Jonah Graham
4a447ce1a6 Bug 532592: [tests] properly exclude non-remote tests
This includes changing BaseParametrizedTestCase.remote to be a
Boolean so that users of remote before it is initialzed causes
an NPE. For example, GDBRemoteTracepointsTest was never running
because of this logic error.

Change-Id: I3fb46fd67c554af7ec912f175815165533021a1b
2018-03-19 12:13:20 +00:00
Jonah Graham
9537e51cf3 Bug 532297: Cache registers per version of GDB
Change-Id: I2da702830f01035b99dc61fcdfb9e7a43fcc8d55
2018-03-11 19:37:30 +00:00
Jonah Graham
b4ac2d3ebf [releng] bump version of gdb to test with to gdb 8.1
Change-Id: I811bc22a02ff84cc638872b21c71345e10d288ab
2018-03-11 19:37:30 +00:00
Jonah Graham
8934f52ae6 Bug 532035: Enable synchronizer to resynchronize/flushCaches
Change-Id: Ib1ebbe5a1b87e9402d961383fcf15dae865ac0c5
2018-03-05 20:06:22 +00:00
Jonah Graham
377374febb Bug 532035: Be explicit in iterating over IBreakpointsTargetDMContext
Change-Id: I802ad946347c01d466f5011883ad644b8f31aca1
2018-03-05 20:06:22 +00:00
Jonah Graham
a819504873 Bug 530377: Fix corrupt bp state & add test for fast bp events.
This generally required adding RequestMonitors everywhere possible
and then holding up processing future bp events until previous
ones were finished.

Change-Id: Icc641071249f7f8c619f0592e07772e47645c9db
2018-03-02 08:22:41 +00:00
Jonah Graham
3afc828ae0 [releng] Bump version to 9.5.0
Change-Id: Ie342f02f7aae633f41a7ab7d39c21e056793a04a
2018-02-13 11:25:08 +00:00
Simon Marchi
fadd0a5015 Update GDB versions in download-build-gdb.sh
- 8.0.1 is out now, so we should use this instead of 8.0.
- 8.1 is out, so add it.

Change-Id: Iba8a0cf453dfd0b2e488fd89f7412a02aac421f6
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2018-02-12 11:40:51 -05:00
Jonah Graham
65157ef4d5 Bug 530635: Add ability to do "set remotetimeout" via UI
Change-Id: Iaeaea1e8656d85cb854a5b27f5f212fa37a3159d
2018-02-06 09:08:39 -05:00
Jonah Graham
ee784263c2 Bug 530371: fix device disposed SWTException on shutdown
Change-Id: I2cb4bf5da4ce35d8b7da4a31d0fa2845c9587985
2018-01-26 10:12:40 -05:00
John Dallaway
a08cc01f56 Bug 527419: Process async output with no variable
Change-Id: I4deb2b9db4421016b27e01353b0ae4745b139361
Signed-off-by: John Dallaway <john@dallaway.org.uk>
2017-11-18 02:26:13 -05:00
Jonah Graham
2173d1dd52 Bug 500988: better handle race condition in SourceContainer
Instead of an indiscriminate NPE at termination of a launch, handle it
more cleanly with a friendly error message.

Change-Id: Ie37e675c3f5e4883c0b160bfe86c4848f1983fa7
2017-11-15 10:46:38 +00:00
Doug Schaefer
15c8bad95d Serial Flash Target and Launch. Clean up Generic Launch.
Adds target, launch classes, and launch bar support for targets
intended to upload their code to flash using a Serial Port. The
port is co-ordinated with the Serial Terminal so that the terminal
is paused during the upload.

Also cleaned up the Generic Launch so it's not using the
External Tools launch which has a number of UX issues. This
simplifies the settings and gives us more control. And it's made
reusable for the Serial Flash launch.

Change-Id: I31e9970243fbf1cf22d027bbdb892fde104dbefe
2017-11-13 15:56:57 -05:00
Jonah Graham
b090f32e64 Bug 520580: Implement new-console support on Windows
A new checkbox on Windows only that starts inferiors in new window.

Change-Id: If3efbe5e6b037e3b1c9528eed67068088702b0fe
2017-11-13 03:27:30 -05:00
Jonah Graham
18f76e8313 Bug 527090: fix bad whitespace on windows
Change-Id: Iba9d1ff94cc1ffa2bc53944256b4562a50f10c5a
2017-11-09 16:35:33 -05:00
Jonah Graham
5fd3ddb84d Bug 522367: prevent hang of -target-attach on Ubuntu 16.04 / GDB 7.11
-target-attach on Ubuntu 16.04 / GDB 7.11 does not flush its error
response, leaving CDT hanging in final launch sequence. Sending
a newline to GDB after the target-attach causes GDB to flush the
buffer so CDT sees the error.

Change-Id: I8816ac6c88eeaffc6d243ebdae9eb347cfdc5cf0
2017-11-09 13:40:14 -05:00
Alex Schuilenburg
8a45638df7 Bug 526254: Increase choice of speeds to match that of modern USB Serial
FTDI chips.

Increase the choice of serial baud rates for GDB as modern USB Serial
FTDI chips can reliably support serial baud rates higher than the old
RS232 115200 maxiumum.

Change-Id: If60fd006fdb02d94e86ef2e76a26b56da7a3a067
Signed-off-by: Alex Schuilenburg <alexs@ecoscentric.com>
2017-10-19 15:05:16 +01:00
Doug Schaefer
affb599f24 Allow for changing manually setting toolchains for build configs.
A number of changes that clean up how build configs are done. Now
build settings are stored with the build config instead of in launch
configs. That makes it less launch bar specific. Add build settings
UI to change the toolchain used for a given launch config.

Also changed CMake so it's IToolchain based instead of property which
doesn't work when multiple IToolchains match.

Change-Id: I958d90ede3c1f873ab1530c2b2880808e8f7abef
2017-10-12 16:03:58 -04:00
Doug Schaefer
11dcec43f2 Add UI tests plugin for CMake. Fix a couple of bugs it found.
Also restructures the pom.xmls to put the modules in the top level
so we can order them to have the test plugins build after them.

Change-Id: I2f0e4ebd252791fb8844cdf0f635d574946207aa
2017-10-06 16:36:51 -04:00
Jonah Graham
cfd6e9867e Bug 525666: Fix NPE when DebuggerConsole closes before async code can run
Fix the async calls that can run after the DebuggerConsole is closed
and removed so that they can't NPE.

Change-Id: I7905ee18a92be0ff5de25a4c8d770a694b06bfe1
2017-10-06 10:59:19 -04:00
Jonah Graham
94b8301bbc Bug 525667: Allow IGDBFocusSynchronizer to be an optional service
All the uses of the service in the code base allow it not to exist,
so allow the service not to exist at launch too.

Change-Id: I907038907e87d5fbc882272b6e41cd1587617281
2017-10-06 10:59:13 -04:00
Jonah Graham
7af3055b85 Bug 525664: Add missing close in new Debugger Console
On Windows the PTY's waitFor will be blocked (and therefore not
see debugger termination) until the handle to stream is closed.

Change-Id: Ifa079a064733a12a03b07c3e7361e1d19d2b8be8
2017-10-06 10:59:06 -04:00
Doug Schaefer
d8cc0751ae Update feature versions to CDT 9.4.
Also remove remaining pom.xmls for feature projects.

Change-Id: I78d6335f92d70ad2699b8a25801ff72d2935aefe
2017-09-11 11:18:42 -04:00
Jonah Graham
5acb4c10d8 Bug 520952: Use filename when handling function breakpoints in console
Change-Id: I6bcdc658bf4c9453cdbe156808b292296a214fde
2017-08-15 08:35:46 +01:00
Jonah Graham
41b5a72c73 Bug 518699: cleanup platform breakpoints between tests
Ensure no platform breakpoints are left over from previous tests

Change-Id: I3266636e9014d4930ec72f7411c9a4dc737d0d9f
2017-06-23 14:06:03 +01:00
Jonah Graham
195ae12776 Bug 516102: Change DSF tests to run GDB 8.0 tests by default
Change-Id: I868d58fd4eeee812fa3e5361561a9eb879a71627
2017-06-22 11:35:13 -04:00
Jonah Graham
8d26859710 Bug 518643: Increase wait for CDT to quit GDB
This is due to a new 500ms delay between inferior exiting and CDT
killing GDB.

Change-Id: I561f69e74caff3e82d89fd8cf2e4babe2c30392a
2017-06-22 11:34:50 -04:00
Jonah Graham
125220eb63 Bug 516102: Add fs_base as new register in GDB 8.0
Change-Id: Ia0600cca38153139fe0b6fb63f087821e0cd336a
2017-06-22 10:49:15 -04:00
Jonah Graham
6e95bbbd58 Bug 516102: Adding GDB 8.0 to the download-build-gdb.sh script
Change-Id: I5ca3e76e57f4b27dce842b08e729e3542b874248
2017-06-22 10:48:01 -04:00
Jonah Graham
d8c3c0967d Bug 518627: Squelch Device Disposed exception at shutdown
Note, can't simply check isDisposed as that still leaves a race
condition between isDisposed call and asyncExec call

Change-Id: I3e0e196d9d1dd9b9c8d4048a1aec55405d6dd6e0
2017-06-22 07:03:34 -04:00
Vincent Guignot
e74222b86c Bug 516227: solib-search-path with space fails
If the solib-search-path path contains a space, CDT adds doubles quote
to escape the space (in MIStandardParameterAdjustable class) . But Gdb
client doesn’t understand the double quotes path.
This patch do not add double quotes when the path contains spaces.

Change-Id: I080be17023647dfac2b00296cdd54c7f9499102a
Signed-off-by: Vincent Guignot <vincent.guignot@ingenico.com>
2017-05-23 04:47:59 -04:00
Jonah Graham
121d748c2c Bug 516053: Enable extending of MIBreakpointsManager/Synchronizer
This involves API improvements and documentation to allow extenders
to extend these DSF services.

Change-Id: Ieb87a6fca757794c9f950d610bb6999e8a86e30d
2017-05-05 09:51:19 -04:00
Jonah Graham
903da92803 Bug 516244: Allow subclasses to provide the current CLI context
Change-Id: I8138f16bb57433af1690dbd77a735c810cef052f
2017-05-05 09:42:33 -04:00
Jonah Graham
d4ecd37bb1 Bug 516053: Allow MIBreakpointDMData to be extended
New API to allow third-parties to extend MIBreakpointDMData with their
own custom Breakpoint handling.

Includes deperecating of MIBreakpointNature that was not used anywhere
in CDT except within internals of MIBreakpointDMData. It arguably
should never have been API in the first place.

Change-Id: I6bcdf2ccaa28d15835ab022648b9b4b0aa7498a7
2017-05-05 08:35:48 -04:00
Jonah Graham
a36ecd3839 Bug 516053: Allow MIBreakpoint to be extended
New API to allow third-parties to extend MIBreakpoint with their
own custom Breakpoint handling.

Change-Id: I64abfc41916a2053cfbed7e3db2357fbf2572050
2017-05-05 08:32:35 -04:00
Jonah Graham
6edd1c6a53 Bug 499778: Stop losing stacktraces in tests
Rather than try/catch/fail just let exception cascade so that the full
stacktrace is available in the test results.

The braces have been left in place for scoping and to minimize changes.

Change-Id: I5407829ea964f828e3f996794489a7b884de25fb
2017-04-28 21:11:27 +01:00
Simon Marchi
9462c1db24 Bug 399494 - Consider all variable objects as not complex
There are cases where we consider some variables as complex when they
are not.  In particular, if a pointer is declared using a typedef, is
will be considered complex with the current code.  This is because it
has a child (the pointed value), but CDT doesn't know it's a pointer.

One of the consequence is that we assume the value is not modifiable.
Therefore, we won't update its value when it changes, and we won't let
the user edit it.

Initially I thought it would be safe to assume that variables with two
or more children are complex, but pointers to structures have as many
children as the structure has fields.  Therefore, a pointer to a
structure, declared as a typedef, will still be wrongfully considered as
complex.  Since there's no easy way to know for sure whether a variable
is complex, just assume everything is simple.

I added a test to verify that the value of a pointer declared using a
typedef will update correctly in CDT as it changes in the program.
There are two distinct scenarios, pointers that are variables and
pointers that are fields of structures.  Instead of adding content to
testUpdateOfPointer, I decided to make a similar test method,
testUpdateOfPointerTypedef.  The original test method was getting too
long and was difficult to follow.  I think it's good to keep them short
and focused.

Another test verifies that the same kind of pointer can properly be
written/modified by the user.

Change-Id: If43b3b6e49cd4a20ea929c2a096745a32de14cd0
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2017-04-28 10:59:24 -04:00
Jonah Graham
6473183440 Fix typo in javadoc
Change-Id: I24a3a59423b8c9a153abc9e4d99f94d7760aa3a2
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2017-04-26 05:03:08 -04:00
Jonah Graham
98a578cf94 Bug 515768: Don't install BPs that are entirely filtered
This check already existed for modifying breakpoints, but didn't exist
for creating new breakpoints or installing initial breakpoints.

Change-Id: I5ff5ce0b3ac603ccffa49bd98d60f7202505a7bd
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2017-04-25 14:42:47 +01:00
Jonah Graham
a797534968 Bug 515756: Allow extending classes to provide getFilterExtension
This affects the synchronizer as it now should defer to the manager
to get the filter extension, instead of trying to load it directly.

Change-Id: I0e646f115ba089453c56f2cc356a4e0a99a1a3b7
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2017-04-25 12:08:22 +01:00
Jonah Graham
fffe6bbf80 Bug 515653: Fix SWT disposed exception
Change-Id: I2d39961189552602464ee96e0464eba060fcfb03
2017-04-24 07:35:06 -04:00
Jonah Graham
1670530ffb Bug 515307: Run test order of magnitude faster
Remove massage timeouts for places waiting for no events
This is a partial revert of c19640498d
which was part of Bug 499784.

Change-Id: Ib66ed5eaf45977d4ffae77358deaf1f593e005c6
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2017-04-15 03:43:52 -04:00