pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lldb-netbsd: Set LLDB RegisterKind for Debug Registers



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Wed Apr 12 02:35:06 2017 +0200
Changeset:	b4278c9868765acf813267d51f761626ba194bc7

Modified Files:
	lldb-netbsd/distinfo
Added Files:
	lldb-netbsd/patches/patch-source_Plugins_Process_Utility_RegisterInfos__x86__64.h

Log Message:
lldb-netbsd: Set LLDB RegisterKind for Debug Registers

This allows us to use Debug Register in plain ReadRegister() function easier.
I don't understand why it's not set in the upstream code, maybe nothing used it
this way like NetBSD so far.

Sponsored by <The NetBSD Foundation>

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b4278c9868765acf813267d51f761626ba194bc7

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 lldb-netbsd/distinfo                                        |  1 +
 ...-source_Plugins_Process_Utility_RegisterInfos__x86__64.h | 13 +++++++++++++
 2 files changed, 14 insertions(+)

diffs:
diff --git a/lldb-netbsd/distinfo b/lldb-netbsd/distinfo
index 0407c4f699..aed8279b70 100644
--- a/lldb-netbsd/distinfo
+++ b/lldb-netbsd/distinfo
@@ -19,3 +19,4 @@ SHA1 (patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD__x86__64.c
 SHA1 (patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD__x86__64.h) = e6f51be1b1a0d14242dffc971a71fb7b9e10fda8
 SHA1 (patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.cpp) = 6bcf4b7fafe63e74e5f6127d5dc816e95070e7c6
 SHA1 (patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.h) = d2586e2ecdc2c979c59fc1a6a569e7870d3334ba
+SHA1 (patch-source_Plugins_Process_Utility_RegisterInfos__x86__64.h) = 47d7dc03b7da83ff7f02b684b2188da53bf269d3
diff --git a/lldb-netbsd/patches/patch-source_Plugins_Process_Utility_RegisterInfos__x86__64.h b/lldb-netbsd/patches/patch-source_Plugins_Process_Utility_RegisterInfos__x86__64.h
new file mode 100644
index 0000000000..26f5d9e371
--- /dev/null
+++ b/lldb-netbsd/patches/patch-source_Plugins_Process_Utility_RegisterInfos__x86__64.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- source/Plugins/Process/Utility/RegisterInfos_x86_64.h.orig	2016-12-17 10:29:58.000000000 +0000
++++ source/Plugins/Process/Utility/RegisterInfos_x86_64.h
+@@ -148,7 +148,7 @@
+         DR_OFFSET(i), eEncodingUint, eFormatHex,                               \
+                   {LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM,                   \
+                    LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM,                   \
+-                   LLDB_INVALID_REGNUM },                                      \
++                   lldb_##reg##i##_x86_64 },                                   \
+                    nullptr, nullptr, nullptr, 0                                \
+   }
+ 


Home | Main Index | Thread Index | Old Index