pkgsrc-WIP-changes archive

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

lldb-netbsd: clang-format over local patch for core(5)



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Tue Apr 18 03:05:20 2017 +0200
Changeset:	e11298e621065de6377fba25c199a0a9f2c0da3b

Modified Files:
	lldb-netbsd/distinfo
	lldb-netbsd/patches/patch-source_Plugins_Process_elf-core_ProcessElfCore.cpp

Log Message:
lldb-netbsd: clang-format over local patch for core(5)

No functional change.

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=e11298e621065de6377fba25c199a0a9f2c0da3b

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

diffstat:
 lldb-netbsd/distinfo                               |  2 +-
 ...rce_Plugins_Process_elf-core_ProcessElfCore.cpp | 30 ++++++++++++++--------
 2 files changed, 20 insertions(+), 12 deletions(-)

diffs:
diff --git a/lldb-netbsd/distinfo b/lldb-netbsd/distinfo
index 7fd2d4be4f..b728e2154b 100644
--- a/lldb-netbsd/distinfo
+++ b/lldb-netbsd/distinfo
@@ -21,5 +21,5 @@ SHA1 (patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD__x86__64.h
 SHA1 (patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.cpp) = d788ea7d92ffa31f2d6477e11129fc9b9fd0b8eb
 SHA1 (patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.h) = d2586e2ecdc2c979c59fc1a6a569e7870d3334ba
 SHA1 (patch-source_Plugins_Process_Utility_RegisterInfos__x86__64.h) = 47d7dc03b7da83ff7f02b684b2188da53bf269d3
-SHA1 (patch-source_Plugins_Process_elf-core_ProcessElfCore.cpp) = 40be0b020c640cca1ffa29fa308e94db1227f4b8
+SHA1 (patch-source_Plugins_Process_elf-core_ProcessElfCore.cpp) = e3b3db37a016aa6c5d7b36158575a230f35bbc8d
 SHA1 (patch-source_Plugins_Process_elf-core_ProcessElfCore.h) = 902ce5e0187aa2649986db08c79af7291b852727
diff --git a/lldb-netbsd/patches/patch-source_Plugins_Process_elf-core_ProcessElfCore.cpp b/lldb-netbsd/patches/patch-source_Plugins_Process_elf-core_ProcessElfCore.cpp
index 3c22dc0c92..efed2a90f4 100644
--- a/lldb-netbsd/patches/patch-source_Plugins_Process_elf-core_ProcessElfCore.cpp
+++ b/lldb-netbsd/patches/patch-source_Plugins_Process_elf-core_ProcessElfCore.cpp
@@ -152,7 +152,7 @@ $NetBSD$
            thread_data->fpregset = note_data;
          break;
        case NT_PRPSINFO:
-@@ -717,6 +738,124 @@ Error ProcessElfCore::ParseThreadContext
+@@ -717,6 +738,132 @@ Error ProcessElfCore::ParseThreadContext
    return error;
  }
  
@@ -222,20 +222,24 @@ $NetBSD$
 +          m_thread_data.push_back(ThreadData());
 +          m_thread_data.back().gpregset = note_data;
 +          bool success;
-+          m_thread_data.back().tid = StringConvert::ToUInt32(note.n_name.substr(12).c_str(), UINT32_MAX, 0, &success);
++          m_thread_data.back().tid = StringConvert::ToUInt32(
++              note.n_name.substr(12).c_str(), UINT32_MAX, 0, &success);
 +          if (!success)
-+            return Error("Error parsing NetBSD core(5) notes: cannot convert LWP ID to integer");
++            return Error("Error parsing NetBSD core(5) notes: cannot convert "
++                         "LWP ID to integer");
 +        } else if (note.n_type == NETBSD::AMD64::NT_FPREGS) {
 +          if (m_thread_data.empty())
-+            return Error(
-+                "Error parsing NetBSD core(5) notes: Unexpected order of NOTEs PT_GETFPREG before PT_GETREG");
++            return Error("Error parsing NetBSD core(5) notes: Unexpected order "
++                         "of NOTEs PT_GETFPREG before PT_GETREG");
 +          m_thread_data.back().fpregset = note_data;
 +        } else {
-+          return Error("Error parsing NetBSD core(5) notes: Unsupported AMD64 NOTE");
++          return Error(
++              "Error parsing NetBSD core(5) notes: Unsupported AMD64 NOTE");
 +        }
 +      } break;
 +      default:
-+        return Error("Error parsing NetBSD core(5) notes: Unsupported architecture");
++        return Error(
++            "Error parsing NetBSD core(5) notes: Unsupported architecture");
 +      }
 +    } else {
 +      return Error("Error parsing NetBSD core(5) notes: Unrecognized note");
@@ -245,10 +249,13 @@ $NetBSD$
 +  }
 +
 +  if (m_thread_data.empty())
-+    return Error("Error parsing NetBSD core(5) notes: No threads information specified in notes");
++    return Error("Error parsing NetBSD core(5) notes: No threads information "
++                 "specified in notes");
 +
 +  if (m_thread_data.size() != nlwps)
-+    return Error("rror parsing NetBSD core(5) notes: Mismatch between the number of LWPs in netbsd_elfcore_procinfo and the number of LWPs specified by MD notes");
++    return Error("rror parsing NetBSD core(5) notes: Mismatch between the "
++                 "number of LWPs in netbsd_elfcore_procinfo and the number of "
++                 "LWPs specified by MD notes");
 +
 +  /* The whole process signal */
 +  if (siglwp == 0) {
@@ -268,7 +275,8 @@ $NetBSD$
 +      }
 +    }
 +    if (!passed)
-+      return Error("Error parsing NetBSD core(5) notes: Signal passed to unknown LWP");
++      return Error(
++          "Error parsing NetBSD core(5) notes: Signal passed to unknown LWP");
 +  }
 +
 +  return Error();
@@ -277,7 +285,7 @@ $NetBSD$
  uint32_t ProcessElfCore::GetNumThreadContexts() {
    if (!m_thread_data_valid)
      DoLoadCore();
-@@ -730,7 +869,7 @@ ArchSpec ProcessElfCore::GetArchitecture
+@@ -730,7 +877,7 @@ ArchSpec ProcessElfCore::GetArchitecture
    core_file->GetArchitecture(arch);
  
    ArchSpec target_arch = GetTarget().GetArchitecture();


Home | Main Index | Thread Index | Old Index