1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-19 06:05:56 +02:00
Commit graph

22581 commits

Author SHA1 Message Date
Anton Leherbauer
99f7cf5d40 Disassembly: Improve reliability of client-side address navigation 2014-07-29 16:33:06 +02:00
David Kaspar
db2f21e5f2 Bug 433869: IQMakeProjectInfo is not updating on active conf. changed
Fixing incorrect eventTypes used for registering
CProjectDescriptionListener in QMakeProjectInfo.start() method.

Change-Id: Ieb602a38999868e3da8487a1757c69bd50cb5837
Signed-off-by: David Kaspar <dkaspar@blackberry.com>
Reviewed-on: https://git.eclipse.org/r/26264
Tested-by: Hudson CI
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
2014-07-02 21:02:18 -04:00
Anton Leherbauer
62369d66e9 Bug 434103 - winpty instance might get reused by another PTY 2014-05-05 16:35:34 +02:00
Anton Leherbauer
06e6284eff Bug 433308 - Always show the Common page initially for new breakpoints 2014-04-24 14:22:03 +02:00
Doug Schaefer
8d6b31bff3 Clean up stale comment. 2014-04-16 10:46:25 -04:00
Doug Schaefer
b12b65bfb8 Bug 432839 - Fix out of memory condition with Qt projects.
Turn the cache in QtPDOMLinkage into a WeahHashMap.

Change-Id: I261d3aec5ee6b7537c4bfaa204dadd85b686140c
Reviewed-on: https://git.eclipse.org/r/25064
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
Tested-by: Doug Schaefer <dschaefer@qnx.com>
2014-04-15 12:06:13 -04:00
Brad Chiu
995e0da76c Bug 427401 - Failure to Parse addr2line binutil output
Fixed Addr2line.java

Change-Id: I9b42e8925c86e238ce6dc610d9e0617b11981f42
Signed-off-by: Brad Chiu <brad@andestech.com>
Reviewed-on: https://git.eclipse.org/r/24935
Tested-by: Hudson CI
Reviewed-by: Jonathan Williams <jonwilliams@qnx.com>
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
(cherry picked from commit 84974e6725)
Reviewed-on: https://git.eclipse.org/r/25066
Tested-by: Doug Schaefer <dschaefer@qnx.com>
2014-04-15 11:36:35 -04:00
Doug Schaefer
3bfbd4e243 JI:449069 Add filtering to the PDOM generator
Adds a -exclude option to list directories and files that are to be
excluded from the pre-built PDOM so we don't get header files that
users don't get suggest optional headers.
2014-04-10 16:51:23 -04:00
Doug Schaefer
bc51092be8 JI:449069 Add filtering to the PDOM generator
Adds a -exclude option to list directories and files that are to be
excluded from the pre-built PDOM so we don't get header files that
users don't get suggest optional headers.

Change-Id: I4e06ccda2207f9955bb743006af8cf947c5d67f3
2014-04-10 16:51:16 -04:00
Doug Schaefer
1ab4528000 Adjustments to adaptBinding stackOverflow solution.
Wrapped the method in try/finally and made inProgress thread local.
2014-04-03 14:14:55 -04:00
Doug Schaefer
126da7d685 Bug 429196 Eliminate StackOverflow on adaptBinding.
A pretty simple and kludgy fix to the problem, but if we detect that
we are adapting a binding that we are just in the middle of adapting,
we bail and return null. Added Andrew's JUnit that reproduces the
problem in case someone wants to try a better solution.

Change-Id: Ib4a85c161be6aee073fee7ac0501464b70020fac
Reviewed-on: https://git.eclipse.org/r/24396
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
Tested-by: Doug Schaefer <dschaefer@qnx.com>
2014-04-03 11:27:59 -04:00
Nathan Ridge
27a02639b9 Bug 151329 - Accept '\r' as line delimiter in the lexer
Change-Id: Ie3fb2926270a605db2a8590f6e00c1dc6ab7855a
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/23096
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-03-31 19:32:50 -07:00
Anton Leherbauer
6fc76a8adc Bug 430117 - "Connect to Process" is always enabled initially 2014-03-31 13:11:43 +02:00
Anton Leherbauer
0b03b25be8 Bug 428121 - Can't force refresh of the disassembly on a different address 2014-03-31 11:42:14 +02:00
Anton Leherbauer
0fc9062326 Limit opcode ruler width to max 20 chars 2014-03-31 11:41:38 +02:00
David Kaspar
13b45e7bff Bug 431012: Missing IQMakeProjectInfo.updateQMakeInfo()
Adding IQMakeProjectInfo.updateQMakeInfo():QMakeInfo method to allow
explicit calculation of QMakeInfo at the time of the method call.

Change-Id: I665bedd5e095d1968f0c39ff2abb19c60aac9e14
Signed-off-by: David Kaspar <dkaspar@blackberry.com>
Reviewed-on: https://git.eclipse.org/r/23800
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
Tested-by: Doug Schaefer <dschaefer@qnx.com>
2014-03-24 15:02:27 -04:00
Doug Schaefer
e81422fe2b PR 383941 - Support binaries with dots in their name. 2014-03-24 11:46:43 -04:00
David Kaspar
d118d80af7 Bug 429488: Fix for deadlock in QMakeProjectInfo.updateActiveConfiguration
To prevent a deadlock between two the workspace and QMakeProjectInfo.sync
locks, QMakeProjectInfo class has been rewritten to not call any method
under sync-lock except for IQMakeEnv.init/destroy method.

All methods should allow calling under workspace lock.

Added a new IQMakeEnv2 interface to provide an explicit init method.

Original QMakeProjectInfo has been split to
QMakeProjectInfo and QMakeProjectInfoManager.

This change is fully backward compatible.

Change-Id: I880f22dd9bd999af1d3f47e4a3c4c0ab216b4ad2
Signed-off-by: David Kaspar <dkaspar@blackberry.com>
Reviewed-on: https://git.eclipse.org/r/23270
Tested-by: Hudson CI
Reviewed-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
2014-03-12 20:54:17 -04:00
Sergey Prigogin
4e3697b648 Bug 425595 - Opening 'C/C++ General-> Formatter' of a project properties
cuases NPE
2014-03-03 15:30:36 -08:00
Andrew Gvozdev
439d470fda bug 428230: What's New and Noteworthy in CDT 8.3? 2014-02-14 16:39:32 -05:00
Sergey Prigogin
8f11a283dd Bug 428041 - NPE in ReturnChecker 2014-02-12 13:28:57 -08:00
Sergey Prigogin
9dabdb0469 Don't throw UnsupportedOPerationException from ASTAmbiguousNode methods. 2014-02-10 12:32:51 -08:00
Doug Schaefer
3f10d98bc7 Remove eclipse.inf file from core.tests to allow packing to work. 2014-02-06 12:38:59 -05:00
Doug Schaefer
991075791a Try again. Fixing signing. 2014-02-06 11:36:50 -05:00
Doug Schaefer
b7cec54596 Try to fix signing. 2014-02-06 11:31:40 -05:00
Anton Leherbauer
fd647bfd0d Fix potential synchronization issue in Spawner 2014-02-04 16:57:05 +01:00
Andrew Eidsness
c3733d0473 Bug 426784: Qt Codan checker uses wrong type
view.connect( view.engine(), SIGNAL( quit() ), ...

The return type of view.engine() should be checked for the quit()
signal.  The implementation was actually checking the type of view.

I've fixed a copy/paste error in a utility function.

Change-Id: Id483015214f04951fb30e3271d43499f31614446
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/21189
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
Tested-by: Doug Schaefer <dschaefer@qnx.com>
2014-01-30 11:30:01 -05:00
Andrew Eidsness
69e866058d Bug 426781: Qt content assist is too aggressive
In Content Assist cases like:

    q->

(when the cursor is to the right of the arrow operator) the name that is
returned by the content assist context is the empty string.  This was
used to check if the QObject::connect function applied.  Since the empt
string matches all bindings the Qt assistant incorrectly continued.

I've added a check to stop processing when the current name is the empty
string.

Change-Id: I4e5bf52f4ca1ddc33d88a48917213adbbeb81836
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/21188
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
Tested-by: Doug Schaefer <dschaefer@qnx.com>
2014-01-28 11:08:31 -05:00
Marc Khouzam
f9bdf28321 Bug 426586 - [launch] Rename launch delegates to be more descriptive to
the user

Change-Id: Icd070b655a707474f60438bb9c2217fd87e210ce
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/21109
2014-01-27 15:43:32 -05:00
Andrew Eidsness
6de9f5288e Bug 426238: Update head of external references list when needed
When a PDOMName is deleted and that name is the head of an external
references list, the list's head must be changed.

The Qt plugin is the only user of the external reference list.  One case
is the link from a SIGNAL or SLOT expansion to the C++ method binding
for the corresponding function.  In this case, the problem will appear
when all of the following are true:

1) The file containing the SIGNAL/SLOT expansion is changed and the
   index updated
2) The corresponding function is declared in a different file
3) The the function is the first entry in the external references list

When #2 is false, the binding (and the entire list) is removed as part
of updating the file containing the name.

When #3 is false, the list is updated with existing code using the
PDOMName's {next|prev}InBinding pointers.

Change-Id: I1e27c7c2356ca1fb68f57d69c40728289288ed66
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/20972
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
2014-01-24 14:31:29 -05:00
Nathan Ridge
4272059ea2 Bug 424765 - Implicit conversion from lambda to function pointer not
recongized

Change-Id: I33ae542ef428005dd2eaa5ca8010f53f04f54a27
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/20926
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-01-22 11:10:12 -08:00
Sergey Prigogin
23c1747ebc Adjusted plugin version numbers to not go back compared to CDT 8.2.1. 2014-01-22 10:59:08 -08:00
Jiří Nytra
cd869eeed6 Bug 423696 - [New Class Wizard] base classes has a fully qualified name,
even though the new class is in the same namespace

Change-Id: I08c2486686b2db540ba321334976a8d5830a2813
Signed-off-by: Jiří Nytra <jiri.nytra@gmail.com>
Reviewed-on: https://git.eclipse.org/r/20900
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-01-22 10:24:07 -08:00
Teodor Madan
d3a8e639c8 Bug 425955: NPE in DwarfReader
- Fix parsing .debug_line section in version format, part of Dwarf 4.
- Refactor in a separate method reading initial length field to
consistently handle 64-bit dwarf format

Change-Id: I9f32862ed91540c24ce33227eeb384a5d6b141da
Signed-off-by: Teodor Madan <teodor.madan@freescale.com>
Reviewed-on: https://git.eclipse.org/r/20830
2014-01-21 04:12:53 -05:00
Andrew Eidsness
fd074ab029 Bug 425102 QObject::connect content assist still broken
The content assistant was treating all function calls in the same way.
Here is an example showing the two cases that should be handled:

    qobj.connect( qobj.func(), SIGNAL( sig() ), SLOT( slot() ) );

In this case sig() applies to the return type of qobj::func() and slot()
applies to qobj (the same instance that connect is called upon).

The previous implementation of the assistant was not making a
distinction between these two cases.

I've added another test case to confirm behaviour in this area.

Change-Id: I8f76a5d5ae7384ea5162c5d36abeebb4c79c394b
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/20848
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
2014-01-20 22:40:56 -05:00
Andrew Eidsness
25a0992a63 Bug 425787: Reindex projects when Qt nature is added
If a project description is changed to add the Qt nature then the PDOM
needs to be rebuilt.

Since index rebuilds are potentially expensive, this first checks to
make sure the PDOM does not already contain the QtLinkage.  If the
linkage already exists, then it will be updated by the normal triggers.

The reindex operation should only be needed to add the linkage the first
time the nature is added.

This does not trigger a reindex if the nature is removed.  Without the
nature, the extra linkage will be safely ignored.  The C++ linkage is
(proportionally) much larger than the Qt linkage, so it doesn't make
sense to spend significant time rebuilding the index just for the small
space savings.

Change-Id: I263b05e4de407775979843f5d6a9c8c172948d72
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/20680
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
2014-01-20 12:11:46 -05:00
Doug Schaefer
801c10d789 Bug 425938 - Make Qt5 template work with 5.2. Remove Qt4 template.
Change-Id: I422a907e9db51be26acd0857d3e9e409bbd3ba2e
Reviewed-on: https://git.eclipse.org/r/20728
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
2014-01-17 10:06:53 -05:00
David Kaspar
81ebdf8e82 Bug 422797 - API for retrieving QMake information from Qt project
Changes:
* QtPlugin calls QMakeProjectInfo.start/stop to start/stop listening
  on resource changes
* QMakeProjectInfo listens on changes in project description
  e.g. changing natures
* QMakeProjectInfo.getQMakeProjectInfoFor() returns info even for
  project without QtNature - this prevents race-condition that happens
  when opening legacy QML projects where QtNature is added lazily after
  the project is opened and somebody already asks for QMakeProjectInfo
* Fixing QMakeProjectInfo.stop() and
  QMakeProjectInfo.getQMakeProjectInfoFor() to fire notification outside
  of synchronized blocks

Change-Id: Ib49238f252a249d2b5936b6d8344aae93e0ef583
Signed-off-by: David Kaspar <dkaspar@blackberry.com>
Reviewed-on: https://git.eclipse.org/r/20722
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
2014-01-17 10:01:12 -05:00
Daniel Pesch
eb5c0c8a55 Bug 425538 - Syntax errors in QML reported as "C/C++ Problems" because errors from Qt Linguist
The problem is solved by allowing to ignore duplicated markers in case
there is already loaded a plugin that could handle QML files

The ProblemMarkerFilter extension point allows to filter out unneeded
problem markers. For example during building of Qt base project with QML
files tool Qt Linguist could report syntax errors in some qml file.
These errors are presented as "C/C++ Problems" in qml files because they
match format CDT expects for errors. If there is already installed plug-in
that handles QML files it is a wise to ignore such errors because they
are already reported as "QML Problems" with more meaningful descriptions.

Change-Id: I3a0a1b58e9690bed9c2774e4328760c695d54a54
Signed-off-by: Daniel Pesch <dpesch@blackberry.com>
Reviewed-on: https://git.eclipse.org/r/20581
Tested-by: Hudson CI
Reviewed-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
2014-01-16 10:46:50 -05:00
Sergey Prigogin
93c60329b8 Removed the deprecated PDOMLinkage.getNode(long) method.
Change-Id: I7a1bf76e0261fc18b616387cdcec16f81f8b0bf3
Reviewed-on: https://git.eclipse.org/r/20692
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-01-16 00:25:25 -05:00
Sergey Prigogin
5637d3dceb Cosmetics. 2014-01-15 20:36:03 -08:00
Sergey Prigogin
a0ce578175 Removed uses of the deprecated PDOMLinkage.getNode(long) method. 2014-01-15 20:32:09 -08:00
Sergey Prigogin
8d14ab8793 Bug 425833 - IllegalArgumentException I is not a member of Cls1
Change-Id: I61d52d2585142c15be21638e614d5b8daa13dfae
2014-01-15 20:06:08 -08:00
Alvaro Sanchez-Leon
f1639f8a85 Bug 250323 - Each memory context needs a different memory retrieval
Change-Id: I7874d84e5831aeb36be508a5b6b83c1623fcc5ab
Signed-off-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
Reviewed-on: https://git.eclipse.org/r/19453
Reviewed-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
IP-Clean: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
Tested-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
Tested-by: Hudson CI
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
IP-Clean: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-01-15 09:06:21 -05:00
Andrew Eidsness
54a0b2dd06 Fix Qt core plugin's provider and plug-in names
Change-Id: Ib38b93cb2e1fef0b1e57cd4afed14c35b4bccb23
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/20606
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
2014-01-14 09:53:09 -05:00
Sergey Prigogin
74c0954dc8 Bug 425595 - Opening 'C/C++ General-> Formatter' of a project properties
cuases NPE
2014-01-13 11:40:57 -08:00
Mikhail Khodjaiants
6891ce8e0f Bug 412547 - Selection is lost when stepping over "pthread_create" for
gdbserver sessions

Change-Id: Ide875ba350dfd3e17579519360999b82c572c355
Reviewed-on: https://git.eclipse.org/r/14415
Reviewed-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
IP-Clean: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
Tested-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
2014-01-13 14:28:14 -05:00
Andrew Eidsness
6873bc9001 Bug 422841 QtIndex accessor for QmlRegistrations of an IQObject
This adds an API method to IQObject that will return the list of QML
registrations for that type.

I've also renamed the previous "QmlRegistered" to "QmlRegistration"
because it makes more sense.

The main part of this patch is a change to the QtPDOMLinkage.  It now
maintains an index of the registrations that are keyed by type.  The
index is a BTree that uses the QObject name as the key and a list of QML
registration PDOMNames as the value.

The list is created in the linkage's onCreate callback.  Old names are
removed in the list's onDelete callback.

This includes a test case for this scenario and also updates the
previous tests to match the new naming.

Change-Id: I4b994a51958c848b4e2a3209165e6e6866e22270
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/20527
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
2014-01-13 10:54:42 -05:00
David Kaspar
5927d7ea30 Bug 422797 - API for retrieving QMake information from Qt project
Adding a new IQMakeInfo getter:
* getQMakeQueryMap()
* getQtDocPath()
* getResourceFiles()
* getFormFiles()

Fixing incorrect parsing of OTHER_FILES variable.

Adding QMakeTests.testQMakeInfo() JUnit test for qmake output parser.

Change-Id: Ic4e0180381967e2a96455d6a3411fe51ce1cef91
Signed-off-by: David Kaspar <dkaspar@blackberry.com>
Reviewed-on: https://git.eclipse.org/r/20500
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
Tested-by: Doug Schaefer <dschaefer@qnx.com>
2014-01-13 09:47:43 -05:00
Sergey Prigogin
e9b3224eaa Cosmetics. 2014-01-10 09:54:58 -08:00