1
0
libqt5-qtdeclarative/Add-a-facility-to-version-type-information.patch
Dominique Leuenberger 23b3dad336 Accepting request 433174 from KDE:Qt5
- Add new version of V4-Free-up-2-address-bits-in-64bit-mode.patch
  * Fix testcase failure (boo#989341, QTBUG#54822)
- Only apply patch on AArch64 to avoid regressions where patch not
  needed (it's experimental)

- Add upstream patches for aarch64 with VA_BITS=48 (boo#989341, QTBUG#54822)
  * V4-Always-set-the-tag-when-boxing-a-pointer.patch
  * Add-a-facility-to-version-type-information.patch
  * V4-Free-up-2-address-bits-in-64bit-mode.patchv4-set-tag.patch

OBS-URL: https://build.opensuse.org/request/show/433174
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libqt5-qtdeclarative?expand=0&rev=34
2016-10-06 10:26:03 +00:00

42 lines
1.4 KiB
Diff

From ad48b299b7fe0bbed2749adc66725e4f12661f79 Mon Sep 17 00:00:00 2001
From: hjk <hjk@qt.io>
Date: Fri, 16 Sep 2016 14:30:14 +0200
Subject: [PATCH] Add a facility to version type information for debugging
This serves the same purpose as qtbase/corelib/global/qhooks.cpp,
but is meant to be in sync with changes in Qt Declarative internals.
Change-Id: I5a4a7d9ca5c340367581749e05d09380590c46fb
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
---
src/qml/debugger/qqmldebug.cpp | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/src/qml/debugger/qqmldebug.cpp b/src/qml/debugger/qqmldebug.cpp
index 35dc110..ea98bb1 100644
--- a/src/qml/debugger/qqmldebug.cpp
+++ b/src/qml/debugger/qqmldebug.cpp
@@ -119,4 +119,22 @@ bool QQmlDebuggingEnabler::connectToLocalDebugger(const QString &socketFileName,
return false;
}
+enum { HookCount = 3 };
+
+// Only add to the end, and bump version if you do.
+quintptr Q_QML_EXPORT qtDeclarativeHookData[] = {
+ // Version of this Array. Bump if you add to end.
+ 1,
+
+ // Number of entries in this array.
+ HookCount,
+
+ // TypeInformationVersion, an integral value, bumped whenever private
+ // object sizes or member offsets that are used in Qt Creator's
+ // data structure "pretty printing" change.
+ 1
+};
+
+Q_STATIC_ASSERT(HookCount == sizeof(qtDeclarativeHookData) / sizeof(qtDeclarativeHookData[0]));
+
QT_END_NAMESPACE