1. 26 Jul, 2016 4 commits
  2. 25 Jul, 2016 4 commits
  3. 23 Jul, 2016 1 commit
  4. 22 Jul, 2016 1 commit
  5. 21 Jul, 2016 2 commits
  6. 20 Jul, 2016 4 commits
    • Sven Brauch's avatar
      Hopefully fix screwed-up clang higlighting. · 5d076e29
      Sven Brauch authored
      If you see this happening again, please tell me.
      Make sure to also update kdevplatform.
      CCMAIL:kdevelop-devel@kde.org
      REVIEW:128480
      The issue was that the clang plugin wouldn't store the modification
      revision for files which were marked as "not modified" by KTextEditor.
      Thus, no translation of the highlighting to the new state could be
      performed for those documents. This is wrong, since a document can
      be "not modified", but can still have changed in the time between the
      start of the parse job start and end, etc. Just imagine you
      press save after each character typed.
      5d076e29
    • David Nolden's avatar
      Search declarations by ID in addition to their range · 50041d95
      David Nolden authored
      The declaration search based on "findContextAt" completely fails when
      there are multiple different versions of a header which were parsed
      differently depending on a macro. Also, findContextAt does a linear
      search, and may be slow when there is a large list of contexts.
      Whenever possible, try finding the declaration by its qualified
      identifier based on the duchain symbol table, which should be more
      efficient and scalable.
      
      Extract the qualified identifier from clang by
      following up the chain of semantic parents. After declarations
      were found based on the symbol table, they are filtered
      the same way as those found by findContextAt -- so there should
      be no regressions. When the search fails, then use the previous
      findContextAt method instead.
      
      Added a test which tests several difficult cases that failed
      without this change, and that succeed with it.
      
      This also fixes the testDeclarationsInsideMacroExpansion test,
      which was EXPECT_FAIL, but which succeeds now.
      50041d95
    • David Nolden's avatar
      If no pinned translation unit is available, ask the duchain · a36ae328
      David Nolden authored
      This fixes highlighting, navigation, etc. for complex cases
      where the primitive "buddy" mechanism doesn't help finding
      the translation unit. The buddy mechanism is not correct for
      this case, because it was built around header/source pairs,
      but fails in more complex cases. The duchain import chain
      directly leads to the original transition unit from where
      a header is included recursively.
      a36ae328
    • Peifeng Yu's avatar
      Prepare for LLDB plugin: Move Disassemble/Registers toolview into common · db45e868
      Peifeng Yu authored
      Summary:
      - Move registers into common
      - Move DisassembleWidget into common
      - Correct debug log output category in common
      
      Both RegisterController and DisassembleWidget now accepts MIDebuggerPlugin and MIDebugSession,
      so LLDB plugin can reuse the same toolview.
      
      Test Plan: gdb unit tests
      
      Reviewers: apol, #kdevelop
      
      Reviewed By: apol, #kdevelop
      
      Subscribers: kdevelop-devel
      
      Differential Revision: https://phabricator.kde.org/D2199
      db45e868
  7. 18 Jul, 2016 2 commits
  8. 17 Jul, 2016 2 commits
  9. 15 Jul, 2016 4 commits
    • Peifeng Yu's avatar
      Turn off gdb disable-randomization when testing · 16bd7996
      Peifeng Yu authored
      Summary: On our CI server, gdb doesn't have the permission to disable ASLR when starting inferior and exits early. The patch turns off this feature for gdb when doing automated testing.
      
      Test Plan: gdb unit tests
      
      Reviewers: #kdevelop, kfunk
      
      Reviewed By: #kdevelop, kfunk
      
      Subscribers: kdevelop-devel
      
      Differential Revision: https://phabricator.kde.org/D2188
      16bd7996
    • Peifeng Yu's avatar
      Improve gdb plugin unit tests · 9cb910b9
      Peifeng Yu authored
      Summary:
      This is a side effect of my work on lldb plugin unit tests, in which I tried to fix the somewhat unreliable test results.
      
      - Move unit test debugees to common folder, make gdb uses common unit test helpers
      - Make gdb plugin unit tests more reliable. waitForState now guarantees the session state after returning is exactly the requested one (otherwise fails the test).
      
      The main problem is that DebugSession could end and get deleted when running event loop (i.e. in QTest::qWait).
      And this fix adds proper checks to it. This by itself doesn't fix any tests, but it helps when some tests
      did goes wrong. Without this fix, they could crash the whole test process due to accessing to deleted object.
      
      Test Plan: gdb plugin unit tests (and actually some lldb plugin unit tests, which is only on local yet)
      
      Reviewers: #kdevelop, apol, kfunk
      
      Reviewed By: #kdevelop, apol, kfunk
      
      Subscribers: kfunk, kdevelop-devel
      
      Differential Revision: https://phabricator.kde.org/D1985
      9cb910b9
    • Peifeng Yu's avatar
      Improve gdb plugin unit tests for 5.0 branch · ec1488f4
      Peifeng Yu authored
      Summary: Exactly the same patch as D1985, but targeting 5.0 branch
      
      Test Plan: gdb unit tests
      
      Reviewers: kfunk, #kdevelop
      
      Subscribers: kdevelop-devel
      
      Differential Revision: https://phabricator.kde.org/D2178
      ec1488f4
    • Peifeng Yu's avatar
      Fix GDB unit tests for 5.0 branch · ba4a7221
      Peifeng Yu authored
      Summary:
      This fixes
      - testStdOut (based on D2175)
      - testUpdateBreakpoint (already in master)
      - testStackSwitchThread
      
      Test Plan: GDB unit tests
      
      Reviewers: #kdevelop, kfunk
      
      Reviewed By: #kdevelop, kfunk
      
      Subscribers: kdevelop-devel
      
      Differential Revision: https://phabricator.kde.org/D2179
      ba4a7221
  10. 14 Jul, 2016 6 commits
    • Peifeng Yu's avatar
      Cleanup MIDebugger output signals · 6d7a4cfe
      Peifeng Yu authored
      Summary:
      There are 4 signals used for various output from the debugger:
      - applicationOutput: emitted when got stream record from the 'target' channel
      - userCommandOutput: emitted when got stream record from the 'console' channel and it's a user command
      - internalCommandOutput: emitted when got stream record from the 'console' channel and it's not a user command
      - internalOutput: emitted when got stream record from the 'log' channel or stderr from the debugger
      
      And there are 2 output toolviews when debugging.
      - The normal Debug Output panel controled by MIDebugJob
          * Shows applicationOutput, via MIDebugSession::inferiorOutputLines
          * Shows internalCommandOutput, via MIDebugSession::debuggerInternalCommandOutput
      - The GDBOutputWidget which is part of the GDB plugin
          * Shows userCommandOutput, via MIDebugSession::debuggerUserCommandOutput
          * Shows internalCommandOutput, via MIDebugSession::debuggerInternalCommandOutput
          * Shows internalOutput, via MIDebugSession::debuggerInternalOutput
      
      This should match the old behavior for toolviews and fixes the testStdOut unit test.
      
      Test Plan: gdb unit tests
      
      Reviewers: #kdevelop, apol
      
      Reviewed By: #kdevelop, apol
      
      Subscribers: kdevelop-devel
      
      Differential Revision: https://phabricator.kde.org/D2175
      6d7a4cfe
    • Kevin Funk's avatar
      Perf: Reduce calls to availableSessionInfos() · a844f606
      Kevin Funk authored
      It's an expensive operation which iterates through the stored session
      config directories and parses config files.
      Esp. bad with tons of available sessions (as I have).
      
      Call once, cache the result.
      a844f606
    • Kevin Funk's avatar
      Revert "Search for binary Qt resource, containing breeze theme. If found, register" · ff9fc461
      Kevin Funk authored
      No longer needed. There's a generic solution in kiconthemes now,
      resources will be loaded automatically.
      
      See: https://phabricator.kde.org/D1878
      
      This reverts commit c71a00ca.
      ff9fc461
    • Kevin Funk's avatar
      Revert "Add debug output to tryLoadIconResources" · 0bbd4598
      Kevin Funk authored
      No longer needed
      
      This reverts commit 3b85df54.
      0bbd4598
    • Kevin Funk's avatar
      Make compile · 38e82245
      Kevin Funk authored
      CCMAIL: rjvbertin@gmail.com
      38e82245
    • René J.V. Bertin's avatar
      support -iframework and -F header search path options · 46c0ea43
      René J.V. Bertin authored
      REVIEW: 128272
      46c0ea43
  11. 13 Jul, 2016 9 commits
  12. 12 Jul, 2016 1 commit