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

35042 commits

Author SHA1 Message Date
Jonah Graham
b044543451 Bug 573064: Test for full clear - extended "E3" capability
Change-Id: Ic30dac68f870f04808eb9038c2ba61b1da9e983f
2021-04-23 21:24:45 -04:00
Jonah Graham
3e29cd6525 Bug 341721: Test for rename terminal escape sequence
Change-Id: Id03f3d4361d0ac0ac0758c3f00eadbe2d6b568fc
2021-04-23 21:24:45 -04:00
Jonah Graham
a14c962ff2 Bug 573108: Add test harness for VT100Emulator
This contains basic tests so far, as bugs are fixed other tests
can be added here, leading to easier development of escape sequences.

Change-Id: Iadd0b24d400f72927c446d61386f19cfd8bd05a0
2021-04-23 21:24:45 -04:00
Jonah Graham
327026010b Bug 573110: Emulator can spin if Reader is ready but not available
The implementation of the read loop in the emulator can spin because
it uses Reader.ready() to determine if there is more data to read.

However the Reader contract does not specify that ready() means
that read() will return a character, simply it means that read()
won't block. As such, if a Reader won't block, but it has no
characters, the inner read loop will spin constantly polling.

The outer loop uses polling too - but it has a wait so that the
CPU does not hit 100% and yields.

Change-Id: Id9b2426c65e6c2a2c3ae817a78d2be435e568c1f
2021-04-23 21:24:45 -04:00
Jonah Graham
4ef3cb7f30 Bug 573109: Add new logging options for terminal
Change-Id: I0c35b7ce0c4350081eac6ace974dbcee3e0f103d
2021-04-23 21:24:45 -04:00
Jonah Graham
b7d017572d Bug 573109: Use new StackWalker API
Java 9+ contains new API for getting/walking stack frames. It is much
faster and has a much cleaner API than using Throwable.getStackTrace

Change-Id: Id0c888aeb06665f10605ce5ab5f0a567249e068c
2021-04-23 21:24:44 -04:00
Jonah Graham
20f73f9c64 Bug 573121: Remove unneeded dependencies in terminal
To enable the terminal to be built independently of the
rest of CDT, remove these unused dependencies.

AFAICT they may date back to a time when some of the
native code was part of the core?

Change-Id: I61505a2bfc6c85f6c2d6efd9d66ac788018f9e82
2021-04-23 21:24:17 -04:00
Jonah Graham
d3b0dd254a Bug 573121: Allow terminal to be built on its own
Change-Id: I74024d0c247159a1adef767e79ad64ab1bfd14b2
2021-04-23 17:38:34 -04:00
Marc Ernst
766d6fec6a Bug 572880: show opcodes in disassembly view as byte sequence
Change-Id: Ib7ad37968ab23ff22cbb1fc110e85b47ffc37ab8
2021-04-23 16:11:35 -04:00
Jonah Graham
6386faff0d Bug 563015: Log exception if process.pid() fails
Change-Id: Ie9888e1e56b19086890caf221f0cbd97eafa817c
2021-04-23 11:21:38 -04:00
Jonah Graham
e033c50e28 Bug 573064: Support full clear - extended "E3" capability
Change-Id: I9d4f7fffb11cc5386eb0a4e5c0445f1fc518b0a5
2021-04-21 15:37:14 -04:00
Fabrizio Iannetti
6dbad0b10e Bug 572938 Terminal: add support for reverse linefeed
Scroll up is not working with `less`, `man`, probably
other programs.

Change-Id: I99d2472ab09df6b79fffbcaa581f3024c44d3ead
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2021-04-21 15:37:05 -04:00
John Dallaway
97c834c890 Bug 572944: Show GDB path in OS format
Change-Id: I17c34e0c04132122ad972b7d0e5379084b5be622
2021-04-19 13:42:10 -04:00
Lidia Popescu
68c67c5a1b Bug 572755: Sorting for new custom templates
The changes adds sorting for source templates in alphabetic order.
Makes possible to bring to the top the new custom templates provided by
extension points, as the most frequently used ones and to avoid the need
for using the drop down list for the right option.

Change-Id: I931bd2fc08f3e37178a64e4b7908db73af1fbc2c
Signed-off-by: Lidia Popescu <lidia.popescu@windriver.com>
2021-04-19 10:24:18 -04:00
Jonah Graham
b6b66b5457 Bug 568397: Add separate text boxes for separate build command and args
Change-Id: I078a1db23a69dcbde503b1dd5e496705ecccc956
2021-04-12 17:25:15 -04:00
Fabrizio Iannetti
e6d5c634b9 Bug 563015: terminal: open files/links with ctrl-click
- hover with ctrl+mouse underlines word under cursor
- ctrl-click tries to open the word:
  - if a relative path (not starting with /) a full path is
    obtained by prepending the shell cwd
  - if the fullpath maps to a workspace file, it is opened
  - otherwise open the OpenResource dialog with the word as
    filter text
  - if there is line/column information (separated by colons)
    then the opened editor jumps to that line
- http and https words are opened in a browser window

Change-Id: I3f46accbf1eac6743d7b0c3b34bf30ac5e7523bb
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
Also-by: Jonah Graham <jonah@kichwacoders.com>
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2021-04-12 16:04:07 -04:00
Jonah Graham
104819751c [releng] Remove no longer needed API problem filters
Change-Id: I6d648357ca1b9dc46d6f9e4757deba284d90d674
2021-04-12 09:28:46 -04:00
Jonah Graham
6c146b31dc [releng] Update simrel site for 2021-06
Change-Id: Iada0a4a46fc86876f4969e089d675dc8032d02b4
2021-04-12 09:28:46 -04:00
Jonah Graham
5138a91074 [releng] Update p2.inf's reference
Change-Id: Ib423cf02dfddc6bf4a1f45b10728872afbe0a0e3
2021-04-12 09:28:45 -04:00
Jonah Graham
bbe89c853e [releng] Update to newer help-docs-eclipserun-repo
Note that:
- doc/org.eclipse.cdt.doc.isv
- doc/org.eclipse.cdt.doc.user

were updated in commit 149aca51f9 made
this release cycle.

Change-Id: I5b19c7ba14d1c3f837163c109603f9a330e9f138
2021-04-12 09:28:45 -04:00
Torbjörn Svensson
5654112209 Bug 572759: Allow debugging binaries with project relative path
In some situations, it makes sense to have a build structure parallel
with the source tree, and it this case, the build results may not be
part of the resources visible in the Eclipse workspace.
Current implementation allows absolute paths to the binary to debug.
While it works, it's a cumbersome way to handle the above situation.
By resolving the relative path outside of Eclipse scope allows to point
to files that are not part of the Eclipse workspace, allthough the path
is relative to a project in the workspace.

Contributed by STMicroelectronics

Change-Id: I284a5dad61e692dae4029e5f142d23d8cda98ed0
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2021-04-11 16:07:16 +02:00
Torbjörn SVENSSON
450e0cac52 Bug 572749: Try to always show error in English in exception
The ThrowNew JNI method requires the message to be encoded in
"modified UTF-8". The FormatMessage WinAPI method can return a string
using any encoding, so it needs to be converted to UTF-8 in order
to have it visible in the exception message.
To further help, try to extract the message in English and fall back
to the Windows installation language as a last resort.

Prefix the error message with the error code from the GetLastError()
function.

Contributed by STMicroelectronics

Change-Id: Id76ffd83e2d3ad1f061780c7ee0892c9b378649b
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
2021-04-10 14:44:44 -04:00
Jonah Graham
549b9d00c0 Bug 572742: Fix reverse debugging enable at startup
This fixes and reenables a bunch of reverse debugging tests

Change-Id: Ib44a60c06c4c94b2dfca4631794f960ed99a0465
2021-04-10 11:06:31 -04:00
Jonah Graham
554bf844d5 Bug 572742: Improve API by allowing "..." instead of String[]
Change-Id: I4bc0a5c3807caaa012d1875b5ab68008503519b9
2021-04-09 20:51:07 -04:00
Jonah Graham
e24d6a22ce Bug 572581: Run remote tests by default
Change-Id: I0c3df2409c3a2a35f7018ba3333d7187929ac4fd
2021-04-09 20:51:00 -04:00
Jonah Graham
e701b76d87 Bug 572581: fix terminating launches at end of test
this fixes cases where a single test failing does not clean up
properly causing subsequent tests to then fail.

Change-Id: I4bd9c08e5ce1a4cd2ccd5e710a446e6e96c4d353
2021-04-09 20:51:00 -04:00
Jonah Graham
6c2fc2d927 Bug 572581: Remove use of Intermittent in testsuite
Instead make the tests non-intermittent. If tests are flaky, they
should be moved to JUnit5 and marked with the flaky tag.

Change-Id: I9c165ec8f16c65383d93d64d17047c0a2597b81c
2021-04-09 20:51:00 -04:00
Jonah Graham
83d4fa001e Bug 572581: reenable disabled DSF-GDB tests
Many of the disabled tests were failing because they were dependent
on specific combinations of GDB + GCC and where exactly code
stops and steps effect when entering functions. The old code
mostly ran to a function and then stepped a known number of times.
But what changes between GDB versions is how many steps are needed.
Therefore for all failing tests update to run to a specific line
number by using tags in the .cc file and running to them to make
sure the test is precisely on that line.

This partially reverts commit 8220215a2e
and 92272c6465

Reason for revert: These tests were "temporarily" disabled a while ago
as part of the JIRO migration in Bug 545624.

Change-Id: I703429c8a81c856360f1cb4e899026200527f7c6
2021-04-09 20:51:00 -04:00
Jonah Graham
0e4917751e Bug 572581: Fix uninit field access
MIExpressionsTest.testNestedBaseChildrenBug accesses this field like
this -data-evaluate-expression "*((((*(class Base*) this)).pNested))"
which, as pNested isn't init, can cause a Cannot access memory at
address 0x0 error.

Change-Id: Ie6ba01be3499df6e72e714bc5c02dcd5355468bf
2021-04-09 20:51:00 -04:00
Jonah Graham
31fec42dee Bug 572581: fix async behaviour in test
The test for ThreadStackFrameSyncTest accessed some state in the
IGDBFocusSynchronizer from outside the Executor thread.

The test also was not waiting on events to synchronize with
the executor thread, instead using Thread.sleep().

There was also some unneeded code due to not using the ServiceEventWaitor
in all places it could be used.

This was leading to race conditions and flaky test failures.

Change-Id: Ib6a3273e20f4383714edc491de9dd9330b250487
2021-04-09 20:51:00 -04:00
Jonah Graham
779ee7979d [releng] remove non-existent directories from build.properties
Change-Id: If9a0edfbca1300ccd4c0a825d75d515ef50ae2a0
2021-04-09 16:14:07 -04:00
Jonah Graham
2073d47084 Bug 572648: Handle cases of empty (EOF) JSON files
Change-Id: I10fae3542ae75120dad0a59b52aaf7b34a67d8e9
2021-04-08 10:56:14 -04:00
Jonah Graham
22ed0e0ae6 Bug 572250: Rename variables for consistency
Renames the local variables to be consistent with the names
in similar code.

Change-Id: Ic6159b7b108d433fdbd213d44d5a410982109f1d
2021-04-08 10:56:11 -04:00
Jonah Graham
19a37f18b4 Bug 572250: [Java 16] fix illegal reflection in scannerInfoCache
Java 16 restricts some reflection. The serializing of scannerInfoCache
with gson does some reflection on Pattern which isn't allowed.
Fortunately the reflection is not needed, we just have to prevent
gson from calling setAccessible by providing our own serialization
for the IExtendedScannerInfo

Change-Id: I0db5cec9cfec1ac4caabd2e67f1d6a336e361023
2021-04-08 10:55:26 -04:00
Jonah Graham
55c2df3b03 Bug 571309: Use java Collections instead of System.arraycopy
System.arraycopy is more error prone and subsequent commits will
be modifying the array. This commit is to keep unrelated code
separate.

Change-Id: I2490318176da3e631a63974ffe5fa62da44a96ea
2021-04-06 20:23:56 -04:00
Jonah Graham
a028e22442 Bug 572593: reenable disabled meson tests
Upgrade the tests to JUnit5 so they can be marked as flaky and slow.
Also removed a bunch of unused code.

This partially reverts commit 8220215a2e.

Reason for revert: These tests were "temporarily" disabled a while ago
as part of the JIRO migration in Bug 545624.

Change-Id: I111cf4d9d9f5e07e49074ca2355a3d1f52fb1070
2021-04-06 20:21:44 -04:00
Jonah Graham
48180e437c Bug 499777: Don't fail build if no tests are found
using tags can cause all tests to be excluded, which is
ok and should not fail the build

Change-Id: Ia7f5e06c6bfb76df0cd3ac7b5ffe13e555489fad
2021-04-06 20:21:44 -04:00
Jonah Graham
b837e37254 [releng] Tycho surefire default includes now match CDT
So we can remove the duplicate definition in our project

Change-Id: Iffe54568aba5c6832c45b5798c1d515c906ac2ce
2021-04-06 20:21:44 -04:00
Jonah Graham
063e8096e9 Cosmetics.
Apply code cleanups.

Change-Id: I9207cbe1808484eeac1072bd19ed3dcbc71b53f9
2021-04-06 18:13:46 -04:00
Jonah Graham
7ef7f04d0c Remove launch files that have little value
These launch files are basically all defaults and fill every devs space
but no one is running them on a regular basis.

Change-Id: I194dadd2ca55a20489935e690e3cd94357026389
2021-04-06 13:38:01 -04:00
Jonah Graham
48156b4653 Bug 572594: Avoid using generic Consumer interface
Using the Consumer interface means that code navigation is substantially
harder. e.g. open ImportMemoryDialog and do a call hierarchy on who
calls scrollRenderings.

You end up in Consumer.accept, which (naturally) has 100s of callers, so
identifying which ones are relevant is very difficult.

Change-Id: I8817568e992955d5b01a591a9cffb2447b9e5008
2021-04-06 13:06:25 -04:00
Jonah Graham
f89c3c3003 Fix NPE in LaunchBarManager
This comes up when doing headless DSF-GDB tests, not sure users can
hit it, but rather than logging an NPE, just check for it upfront.

Change-Id: I224b7e3a881c5e7bc2e1c1b00c1c3da58c745567
2021-04-06 10:47:18 -04:00
Jonah Graham
2fae0b79c2 [releng] Fixup for Bug 572552: Correct URL for linuxtools docker
Change-Id: I2eebf1e8ef9ceac965e609f553d8a8347567fb36
2021-04-05 22:43:09 -04:00
Jonah Graham
4df00fd345 Bug 572581: Run tests on all newer GDBs
Change-Id: I10e89dae366278ab4535921f2a69e0b7806db583
2021-04-05 09:09:54 -04:00
Jonah Graham
48de9319c6 Bug 518689: Be lenient in cases where gdb provides extra info
In some targets (such as the build machines @ Eclipse) gdb is
returning thread names for remote debugging. No longer fail tests
in this case as long as the provided name is empty or correct.

Change-Id: I5f59f279a9d477e2c1ccb32098bbe1dad08cf334
2021-04-05 09:09:53 -04:00
Jonah Graham
821eb7b1a4 Cosmetics.
Change-Id: Ia7b7e64685094b4a60f2e796dae24f8575e0ed33
2021-04-05 09:09:53 -04:00
Jonah Graham
52ebe1f76f Bug 572581: update jnilibs for new version of cdt-infra
rebuilt docker images have small binary differences
in the jnilibs due to a rebuilt macOS toolchain being
used.

Change-Id: I25dc951e1e8c7c94a799d63a4c0db644d1f1be1e
2021-04-04 21:18:31 -04:00
Alexander Fedorov
8dbf024ab8 Bug 572552 - CDT releng: update versions to 10.3.0
Added missed license headers
Updated baseline for the parent pom to CDT 10.2
Updated version for pom.xml to 10.3
Updated version for features and bundles to CDT 10.3
Updated copyright for about.properties to be 2021
Incremented version + 100 where needed

Change-Id: I79666fcc0402fee6607499d7dce1eaf87a5f446d
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2021-04-04 16:17:25 -04:00
Jonah Graham
37fff49636 [releng] Update to latest (2.3.0) tycho
Change-Id: I630b694e5e314c1211b91135ad86dfd605b950ed
2021-04-03 20:40:50 -04:00
Jonah Graham
e5eb338f71 [releng] Update to latest maven-pmd-plugin
Change-Id: Idf49ce332d5480fe5982bf60788e085e0cb37d27
2021-04-03 20:40:32 -04:00