pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lldb-netbsd: clang-format -i *.cpp *.h
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Wed Mar 29 04:40:58 2017 +0200
Changeset: 71d79aab33a5d0e83bbfb2b30b97e586ea531888
Modified Files:
lldb-netbsd/distinfo
lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.cpp
lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.h
Log Message:
lldb-netbsd: clang-format -i *.cpp *.h
Prepare style for pushing this code upstream.
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=71d79aab33a5d0e83bbfb2b30b97e586ea531888
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
lldb-netbsd/distinfo | 4 ++--
..._Plugins_Process_NetBSD_NativeProcessNetBSD.cpp | 23 +++++++++++-----------
...ns_Process_NetBSD_NativeRegisterContextNetBSD.h | 6 ++----
3 files changed, 16 insertions(+), 17 deletions(-)
diffs:
diff --git a/lldb-netbsd/distinfo b/lldb-netbsd/distinfo
index 1307cc3720..7fc8ebf121 100644
--- a/lldb-netbsd/distinfo
+++ b/lldb-netbsd/distinfo
@@ -14,9 +14,9 @@ RMD160 (llvm-3.6.2.src.tar.xz) = 521cbc5fe2925ea3c6e90c7a31f752a04045c972
Size (llvm-3.6.2.src.tar.xz) = 12802380 bytes
SHA1 (patch-source_Host_common_Host.cpp) = 7d48b8bb1e4350ba6d3ddc6357b9b8dc82d6b32d
SHA1 (patch-source_Plugins_DynamicLoader_POSIX-DYLD_DYLDRendezvous.cpp) = 32d683eb388ded96e7f9aedec827202b5b056392
-SHA1 (patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.cpp) = 1915bc4243ca42d50d0014d076dddf3a412ab4a2
+SHA1 (patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.cpp) = 307ddb37500be7c7bfba196a9ec8017df726a2b7
SHA1 (patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.cpp) = 1c4e5f6f6bf6f665ed659b195de02f7ca26827c9
-SHA1 (patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.h) = b5b66057b90010ea9048a43238366a5647fa48f8
+SHA1 (patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.h) = 7438ec533021afadea9f0b8ef28a4432b1fe682c
SHA1 (patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD__x86__64.cpp) = ea9781e8a37719bee1baad234f3a59720a1720d4
SHA1 (patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD__x86__64.h) = 4717298b6ce2923218f99042d8369639f5665c6a
SHA1 (patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.cpp) = bd6777974a75faf1c98683e838d1048eceac3e57
diff --git a/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.cpp b/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.cpp
index b8f05dd65e..088a3019d5 100644
--- a/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.cpp
+++ b/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.cpp
@@ -2,7 +2,7 @@ $NetBSD$
--- source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp.orig 2017-03-29 00:14:15.000000000 +0000
+++ source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp
-@@ -235,6 +235,41 @@ void NativeProcessNetBSD::MonitorSIGTRAP
+@@ -235,6 +235,39 @@ void NativeProcessNetBSD::MonitorSIGTRAP
}
SetState(StateType::eStateStopped, true);
break;
@@ -12,8 +12,7 @@ $NetBSD$
+ }
+ SetState(StateType::eStateStopped, true);
+ break;
-+ case TRAP_EXEC:
-+ {
++ case TRAP_EXEC: {
+ // Clear old threads
+ m_threads.clear();
+
@@ -39,12 +38,11 @@ $NetBSD$
+ NotifyDidExec();
+
+ SetState(StateType::eStateStopped, true);
-+ }
-+ break;
++ } break;
}
}
}
-@@ -389,10 +424,12 @@ Error NativeProcessNetBSD::Resume(const
+@@ -389,11 +422,13 @@ Error NativeProcessNetBSD::Resume(const
return Error();
}
@@ -54,17 +52,20 @@ $NetBSD$
case eStateRunning: {
// Run the thread, possibly feeding it the signal.
- Error error = NativeProcessNetBSD::PtraceWrapper(PT_CONTINUE, GetID(),
-+ error = NativeProcessNetBSD::PtraceWrapper(PT_CONTINUE, GetID(),
- (void *)1, action->signal);
+- (void *)1, action->signal);
++ error = NativeProcessNetBSD::PtraceWrapper(PT_CONTINUE, GetID(), (void *)1,
++ action->signal);
if (!error.Success())
return error;
-@@ -403,7 +440,14 @@ Error NativeProcessNetBSD::Resume(const
+ for (const auto &thread_sp : m_threads) {
+@@ -403,7 +438,15 @@ Error NativeProcessNetBSD::Resume(const
break;
}
case eStateStepping:
- return Error("Not implemented");
+ // Run the thread, possibly feeding it the signal.
-+ error = NativeProcessNetBSD::PtraceWrapper(PT_STEP, GetID(),(void *)1, action->signal);
++ error = NativeProcessNetBSD::PtraceWrapper(PT_STEP, GetID(), (void *)1,
++ action->signal);
+ if (!error.Success())
+ return error;
+ for (const auto &thread_sp : m_threads) {
@@ -74,7 +75,7 @@ $NetBSD$
break;
case eStateSuspended:
-@@ -850,9 +894,6 @@ NativeThreadNetBSDSP NativeProcessNetBSD
+@@ -850,9 +893,6 @@ NativeThreadNetBSDSP NativeProcessNetBSD
::pid_t NativeProcessNetBSD::Attach(lldb::pid_t pid, Error &error) {
Log *log(GetLogIfAllCategoriesSet(LIBLLDB_LOG_PROCESS));
diff --git a/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.h b/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.h
index ed776c85a0..9fbb4f0430 100644
--- a/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.h
+++ b/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.h
@@ -2,7 +2,7 @@ $NetBSD$
--- source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD.h.orig 2017-03-29 00:14:15.000000000 +0000
+++ source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD.h
-@@ -37,13 +37,26 @@ public:
+@@ -37,13 +37,24 @@ public:
protected:
virtual Error ReadGPR();
virtual Error WriteGPR();
@@ -16,9 +16,7 @@ $NetBSD$
}
+
+ virtual void *GetFPRBuffer() { return nullptr; }
-+ virtual size_t GetFPRSize() {
-+ return 0;
-+ }
++ virtual size_t GetFPRSize() { return 0; }
+
virtual Error DoReadGPR(void *buf);
virtual Error DoWriteGPR(void *buf);
Home |
Main Index |
Thread Index |
Old Index