[Gammaray-commits] [KDAB/GammaRay] 5ac60e: Add class to represent a probe ABI, and to find a ...

Volker Krause volker.krause at kdab.com
Wed Mar 26 18:50:03 CET 2014


  Branch: refs/heads/master
  Home:   https://github.com/KDAB/GammaRay
  Commit: 5ac60e4a3f36ae567546d571b972dddff2a43004
      https://github.com/KDAB/GammaRay/commit/5ac60e4a3f36ae567546d571b972dddff2a43004
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-25 (Tue, 25 Mar 2014)

  Changed paths:
    M common/CMakeLists.txt
    A common/probeabi.cpp
    A common/probeabi.h
    M tests/CMakeLists.txt
    A tests/probeabitest.cpp

  Log Message:
  -----------
  Add class to represent a probe ABI, and to find a matching one.


  Commit: ac61f5f1e5dff0a0b358001e7f9f009361e5d112
      https://github.com/KDAB/GammaRay/commit/ac61f5f1e5dff0a0b358001e7f9f009361e5d112
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-25 (Tue, 25 Mar 2014)

  Changed paths:
    M common/CMakeLists.txt
    A common/probeabidetector.cpp
    A common/probeabidetector.h
    A common/probeabidetector_dummy.cpp
    A common/probeabidetector_elf.cpp
    A common/probeabidetector_mac.cpp
    A common/probeabidetector_win.cpp
    M tests/CMakeLists.txt
    A tests/probeabidetectortest.cpp

  Log Message:
  -----------
  Empty stub of the probe ABI detector.

Apart from the dummy implementation (which is functionally equivalent to
the current behavior), we can't actually detect anything yet though, on
any platform.


  Commit: b0da75c17386faf28405ab348eb8922c7a10a26d
      https://github.com/KDAB/GammaRay/commit/b0da75c17386faf28405ab348eb8922c7a10a26d
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-25 (Tue, 25 Mar 2014)

  Changed paths:
    M common/probeabi.cpp
    M common/probeabi.h

  Log Message:
  -----------
  Add convenience API to check if the Qt version is set.


  Commit: 98f5358c582b54129850a046978351bd53d8274c
      https://github.com/KDAB/GammaRay/commit/98f5358c582b54129850a046978351bd53d8274c
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-25 (Tue, 25 Mar 2014)

  Changed paths:
    M common/probeabidetector.cpp
    M common/probeabidetector.h

  Log Message:
  -----------
  Add caching of probe ABIs for QtCore DLLs.


  Commit: 9d072dbff6884fff08dc1a329be9d650f0217f86
      https://github.com/KDAB/GammaRay/commit/9d072dbff6884fff08dc1a329be9d650f0217f86
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-25 (Tue, 25 Mar 2014)

  Changed paths:
    M common/probeabidetector.h
    M common/probeabidetector_dummy.cpp
    M common/probeabidetector_elf.cpp
    M common/probeabidetector_mac.cpp
    M common/probeabidetector_win.cpp

  Log Message:
  -----------
  Implement QtCore version detection for ELF, and detecting QtCore for a PID.

We currently have two ways of detecting the version:
- the file name
- the version printed when executing QtCore.so

For detecting QtCore for a given PID we only support /proc lookup at the
moment, a non-/proc fallback as we have it in the process list still needs
to be added.


  Commit: 13c5d2eb160ef10a690d0f29528c19445678cecd
      https://github.com/KDAB/GammaRay/commit/13c5d2eb160ef10a690d0f29528c19445678cecd
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-25 (Tue, 25 Mar 2014)

  Changed paths:
    M CMakeLists.txt
    M common/probeabidetector_elf.cpp
    M config-gammaray.h.cmake

  Log Message:
  -----------
  Add architecture detection for ELF.


  Commit: 0179a9a9782d91d0e860d7024bed0ee55e73a929
      https://github.com/KDAB/GammaRay/commit/0179a9a9782d91d0e860d7024bed0ee55e73a929
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-25 (Tue, 25 Mar 2014)

  Changed paths:
    M common/probeabidetector_elf.cpp

  Log Message:
  -----------
  Add ldd-based detection of QtCore DLL used by a executable.


  Commit: b049a14fc0554c1afa0c12e4e9026d045c3ab1a1
      https://github.com/KDAB/GammaRay/commit/b049a14fc0554c1afa0c12e4e9026d045c3ab1a1
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-25 (Tue, 25 Mar 2014)

  Changed paths:
    M launcher/CMakeLists.txt
    M launcher/main.cpp
    M launcher/probefinder.cpp
    M launcher/probefinder.h
    M launcher/ui/attachdialog.cpp
    M launcher/ui/launchpage.cpp
    M launcher/ui/selftestpage.cpp

  Log Message:
  -----------
  Start to use GammaRay::ProbeABI in the ProbeFinder API.


  Commit: 22d21e2edd7f71e4eaaca1265d2c6b5916c9d6a1
      https://github.com/KDAB/GammaRay/commit/22d21e2edd7f71e4eaaca1265d2c6b5916c9d6a1
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-25 (Tue, 25 Mar 2014)

  Changed paths:
    M launcher/launchoptions.cpp
    M launcher/launchoptions.h

  Log Message:
  -----------
  Add a method to get the absolute executable path, for ABI detection.


  Commit: 04c4278c92e3977f61b35b064024c67790bd8bcc
      https://github.com/KDAB/GammaRay/commit/04c4278c92e3977f61b35b064024c67790bd8bcc
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-25 (Tue, 25 Mar 2014)

  Changed paths:
    M launcher/main.cpp

  Log Message:
  -----------
  Run the probe ABI detection, if no ABI is specified explicitly.


  Commit: 3f4e42a07dddd86aeae8244d563251370af7d467
      https://github.com/KDAB/GammaRay/commit/3f4e42a07dddd86aeae8244d563251370af7d467
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-25 (Tue, 25 Mar 2014)

  Changed paths:
    M launcher/main.cpp
    M launcher/probefinder.cpp
    M launcher/probefinder.h

  Log Message:
  -----------
  Pick the best available probe.


  Commit: a950b8cbabc361dff65f8feb277cca8cbe07584b
      https://github.com/KDAB/GammaRay/commit/a950b8cbabc361dff65f8feb277cca8cbe07584b
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-25 (Tue, 25 Mar 2014)

  Changed paths:
    M common/probeabi.cpp
    M common/probeabi.h

  Log Message:
  -----------
  Add operator== for GammaRay::ProbeABI.


  Commit: 54c6ff8436a078488ae81807ebfa3b3ddabace4d
      https://github.com/KDAB/GammaRay/commit/54c6ff8436a078488ae81807ebfa3b3ddabace4d
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-25 (Tue, 25 Mar 2014)

  Changed paths:
    M launcher/probefinder.cpp
    M launcher/probefinder.h
    M launcher/ui/CMakeLists.txt
    M launcher/ui/launchpage.cpp
    M launcher/ui/launchpage.h
    A launcher/ui/probeabimodel.cpp
    A launcher/ui/probeabimodel.h

  Log Message:
  -----------
  Auto-detect the ABI when picking an executable on the launcher page.

Also use the nicer display names for the probe ABIs in the UI.


  Commit: ab395a5a2bc28560623d3c593caa4239f499f804
      https://github.com/KDAB/GammaRay/commit/ab395a5a2bc28560623d3c593caa4239f499f804
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-25 (Tue, 25 Mar 2014)

  Changed paths:
    M common/probeabidetector_mac.cpp

  Log Message:
  -----------
  Find QtCore on Mac, using otool and lsof.


  Commit: 92548bf12086df0c35c7686dc8ba8f635ecd3615
      https://github.com/KDAB/GammaRay/commit/92548bf12086df0c35c7686dc8ba8f635ecd3615
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-25 (Tue, 25 Mar 2014)

  Changed paths:
    M common/probeabidetector_mac.cpp

  Log Message:
  -----------
  Add architecture detection for Mach-O files.


  Commit: fc9cd145013074b0d7aa2c0f23bd23829849446f
      https://github.com/KDAB/GammaRay/commit/fc9cd145013074b0d7aa2c0f23bd23829849446f
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-25 (Tue, 25 Mar 2014)

  Changed paths:
    M common/probeabidetector_mac.cpp

  Log Message:
  -----------
  Refactor Mach-O parsing to prepare for reading load commands.


  Commit: 84b8f0b86ec5ef3c1e833c01a9a970d558fb43a4
      https://github.com/KDAB/GammaRay/commit/84b8f0b86ec5ef3c1e833c01a9a970d558fb43a4
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-25 (Tue, 25 Mar 2014)

  Changed paths:
    M common/probeabidetector_mac.cpp

  Log Message:
  -----------
  Read Mach-O load commands to obtain the QtCore version number.


  Commit: 465966c15f91822509ce639d72d6d53103a1bbf4
      https://github.com/KDAB/GammaRay/commit/465966c15f91822509ce639d72d6d53103a1bbf4
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-25 (Tue, 25 Mar 2014)

  Changed paths:
    M common/probeabidetector_win.cpp

  Log Message:
  -----------
  Implement finding the used QtCore DLL for a given process id on Windows.


  Commit: dee7233e9bd8a5b5c178adbdba4423aa36b3e7be
      https://github.com/KDAB/GammaRay/commit/dee7233e9bd8a5b5c178adbdba4423aa36b3e7be
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-25 (Tue, 25 Mar 2014)

  Changed paths:
    M common/probeabidetector_win.cpp

  Log Message:
  -----------
  Implement architecture detection for a given QtCore DLL on Windows.


  Commit: 33c6e77e40943d8b75ab09dc52f8c2bc871840b2
      https://github.com/KDAB/GammaRay/commit/33c6e77e40943d8b75ab09dc52f8c2bc871840b2
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-25 (Tue, 25 Mar 2014)

  Changed paths:
    M common/CMakeLists.txt
    M common/probeabidetector_win.cpp

  Log Message:
  -----------
  Add Qt version detection for Windows.


  Commit: 0e31346e80b5b00ff09d8c7980d79430dd41ddf8
      https://github.com/KDAB/GammaRay/commit/0e31346e80b5b00ff09d8c7980d79430dd41ddf8
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-25 (Tue, 25 Mar 2014)

  Changed paths:
    M common/probeabidetector_win.cpp

  Log Message:
  -----------
  Parse DLL import tables, and determine the compiler ABI based on that.


  Commit: 945594d355fa3488577664306959e53087365a23
      https://github.com/KDAB/GammaRay/commit/945594d355fa3488577664306959e53087365a23
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-25 (Tue, 25 Mar 2014)

  Changed paths:
    M common/probeabidetector_win.cpp

  Log Message:
  -----------
  Add debug vs. release build detection for MSVC.


  Commit: 237c5fe1f04a22d4e1e0ea6a2d5dc83d3ebe5b71
      https://github.com/KDAB/GammaRay/commit/237c5fe1f04a22d4e1e0ea6a2d5dc83d3ebe5b71
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-25 (Tue, 25 Mar 2014)

  Changed paths:
    M common/probeabi.cpp
    M common/probeabi.h
    M tests/probeabitest.cpp

  Log Message:
  -----------
  Debug vs. release ABI compatibility is only relevant for MSVC.

So, make this dynamic, depending on the specified compiler.


  Commit: 4556165a1e92d0e1b7b73176eca267fb60c4710c
      https://github.com/KDAB/GammaRay/commit/4556165a1e92d0e1b7b73176eca267fb60c4710c
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-25 (Tue, 25 Mar 2014)

  Changed paths:
    M cmake/GammaRayProbeABI.cmake

  Log Message:
  -----------
  Only include debug/release info in the probe ABI with MSVC, not with mingw.


  Commit: 5806988026ac4b95d862358e4685085918187897
      https://github.com/KDAB/GammaRay/commit/5806988026ac4b95d862358e4685085918187897
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-25 (Tue, 25 Mar 2014)

  Changed paths:
    M common/probeabidetector.cpp
    M common/probeabidetector.h
    M common/probeabidetector_elf.cpp
    M common/probeabidetector_mac.cpp

  Log Message:
  -----------
  Move lsof code to the generic part, and use it as a fallback on UNIX too.

That's what the process list also does, and should work with non-Linux
UNIX systems too.


  Commit: 60f6346f4493c909a8b205165c7f131e3615a7de
      https://github.com/KDAB/GammaRay/commit/60f6346f4493c909a8b205165c7f131e3615a7de
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-25 (Tue, 25 Mar 2014)

  Changed paths:
    M launcher/ui/processfiltermodel.cpp
    M launcher/ui/processlist.h
    M launcher/ui/processlist_unix.cpp
    M launcher/ui/processmodel.cpp

  Log Message:
  -----------
  Port UNIX process list to use the new probe ABI detection code.


  Commit: e6e49b8b9bf1a0e363899376557fbca4706464d9
      https://github.com/KDAB/GammaRay/commit/e6e49b8b9bf1a0e363899376557fbca4706464d9
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-26 (Wed, 26 Mar 2014)

  Changed paths:
    M launcher/ui/processlist_win.cpp

  Log Message:
  -----------
  Port the Windows process list to the new ABI detection code.


  Commit: 4fadf7e976dd2c2ab6d649b79c8da6705ca03bbf
      https://github.com/KDAB/GammaRay/commit/4fadf7e976dd2c2ab6d649b79c8da6705ca03bbf
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-26 (Wed, 26 Mar 2014)

  Changed paths:
    M launcher/ui/processmodel.cpp
    M launcher/ui/processmodel.h

  Log Message:
  -----------
  Integrate probe ABI support into the process model.


  Commit: b8821f61d07f4dd8e42c04b3d2cbb413d29e482f
      https://github.com/KDAB/GammaRay/commit/b8821f61d07f4dd8e42c04b3d2cbb413d29e482f
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-26 (Wed, 26 Mar 2014)

  Changed paths:
    M launcher/ui/attachdialog.cpp
    M launcher/ui/attachdialog.h

  Log Message:
  -----------
  Pick a matching probe ABI in the combo box for the current process.


  Commit: 7dd18b9d94e2c036746b326e1ea4e4ca6ceb96b2
      https://github.com/KDAB/GammaRay/commit/7dd18b9d94e2c036746b326e1ea4e4ca6ceb96b2
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-26 (Wed, 26 Mar 2014)

  Changed paths:
    M launcher/ui/processmodel.cpp
    M launcher/ui/processmodel.h

  Log Message:
  -----------
  Disable entries in the process list we don't have a probe for.


  Commit: c57aca4a0ec7404677cbcf33b27f26637bb2cec4
      https://github.com/KDAB/GammaRay/commit/c57aca4a0ec7404677cbcf33b27f26637bb2cec4
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-26 (Wed, 26 Mar 2014)

  Changed paths:
    M launcher/launchoptions.cpp
    M launcher/launchoptions.h
    M launcher/main.cpp
    M launcher/probefinder.cpp
    M launcher/probefinder.h
    M launcher/ui/attachdialog.cpp
    M launcher/ui/launchpage.cpp
    M launcher/ui/selftestpage.cpp

  Log Message:
  -----------
  Pass around ProbeABI objects rather than string identifiers where possible.


  Commit: 32f2b1b57f03e662e4cfa142c54c76da2429da9f
      https://github.com/KDAB/GammaRay/commit/32f2b1b57f03e662e4cfa142c54c76da2429da9f
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-26 (Wed, 26 Mar 2014)

  Changed paths:
    M common/probeabidetector_elf.cpp

  Log Message:
  -----------
  Add ARM, and warn when encountering an unknown architecture.


  Commit: 3e9b534e2cb68500e604af99e31d32726d4fb2ad
      https://github.com/KDAB/GammaRay/commit/3e9b534e2cb68500e604af99e31d32726d4fb2ad
  Author: Volker Krause <volker.krause at kdab.com>
  Date:   2014-03-26 (Wed, 26 Mar 2014)

  Changed paths:
    M cmake/GammaRayProbeABI.cmake

  Log Message:
  -----------
  Map all ARM versions to just "arm", to match what's in the ELF header.


Compare: https://github.com/KDAB/GammaRay/compare/6778c8ad297f...3e9b534e2cb6


More information about the Gammaray-commits mailing list