@@ -224,7 +224,7 @@ Status ProcessElfCore::DoLoadCore() {
224224 ArchSpec core_arch (m_core_module_sp->GetArchitecture ());
225225 target_arch.MergeFrom (core_arch);
226226 GetTarget ().SetArchitecture (target_arch);
227-
227+
228228 SetUnixSignals (UnixSignals::Create (GetArchitecture ()));
229229
230230 // Ensure we found at least one thread that was stopped on a signal.
@@ -393,7 +393,7 @@ size_t ProcessElfCore::DoReadMemory(lldb::addr_t addr, void *buf, size_t size,
393393 const lldb::addr_t file_start = address_range->data .GetRangeBase ();
394394 const lldb::addr_t file_end = address_range->data .GetRangeEnd ();
395395 size_t bytes_to_read = size; // Number of bytes to read from the core file
396- size_t bytes_copied = 0 ; // Number of bytes actually read from the core file
396+ size_t bytes_copied = 0 ; // Number of bytes actually read from the core file
397397 lldb::addr_t bytes_left =
398398 0 ; // Number of bytes available in the core file from the given address
399399
@@ -476,8 +476,7 @@ lldb::addr_t ProcessElfCore::GetImageInfoAddress() {
476476
477477// Parse a FreeBSD NT_PRSTATUS note - see FreeBSD sys/procfs.h for details.
478478static void ParseFreeBSDPrStatus (ThreadData &thread_data,
479- const DataExtractor &data,
480- bool lp64) {
479+ const DataExtractor &data, bool lp64) {
481480 lldb::offset_t offset = 0 ;
482481 int pr_version = data.GetU32 (&offset);
483482
@@ -504,8 +503,7 @@ static void ParseFreeBSDPrStatus(ThreadData &thread_data,
504503
505504// Parse a FreeBSD NT_PRPSINFO note - see FreeBSD sys/procfs.h for details.
506505static void ParseFreeBSDPrPsInfo (ProcessElfCore &process,
507- const DataExtractor &data,
508- bool lp64) {
506+ const DataExtractor &data, bool lp64) {
509507 lldb::offset_t offset = 0 ;
510508 int pr_version = data.GetU32 (&offset);
511509
@@ -524,8 +522,7 @@ static void ParseFreeBSDPrPsInfo(ProcessElfCore &process,
524522}
525523
526524static llvm::Error ParseNetBSDProcInfo (const DataExtractor &data,
527- uint32_t &cpi_nlwps,
528- uint32_t &cpi_signo,
525+ uint32_t &cpi_nlwps, uint32_t &cpi_signo,
529526 uint32_t &cpi_siglwp,
530527 uint32_t &cpi_pid) {
531528 lldb::offset_t offset = 0 ;
@@ -693,8 +690,8 @@ llvm::Error ProcessElfCore::parseNetBSDNotes(llvm::ArrayRef<CoreNote> notes) {
693690
694691 if (name == " NetBSD-CORE" ) {
695692 if (note.info .n_type == NETBSD::NT_PROCINFO) {
696- llvm::Error error = ParseNetBSDProcInfo (note. data , nlwps, signo,
697- siglwp, pr_pid);
693+ llvm::Error error =
694+ ParseNetBSDProcInfo (note. data , nlwps, signo, siglwp, pr_pid);
698695 if (error)
699696 return error;
700697 SetID (pr_pid);
@@ -875,7 +872,7 @@ llvm::Error ProcessElfCore::parseOpenBSDNotes(llvm::ArrayRef<CoreNote> notes) {
875872// / - NT_SIGINFO - Information about the signal that terminated the process
876873// / - NT_AUXV - Process auxiliary vector
877874// / - NT_FILE - Files mapped into memory
878- // /
875+ // /
879876// / Additionally, for each thread in the process the core file will contain at
880877// / least the NT_PRSTATUS note, containing the thread id and general purpose
881878// / registers. It may include additional notes for other register sets (floating
@@ -920,7 +917,9 @@ llvm::Error ProcessElfCore::parseLinuxNotes(llvm::ArrayRef<CoreNote> notes) {
920917 Status status = prpsinfo.Parse (note.data , arch);
921918 if (status.Fail ())
922919 return status.ToError ();
923- thread_data.name .assign (prpsinfo.pr_fname , strnlen (prpsinfo.pr_fname , sizeof (prpsinfo.pr_fname )));
920+ thread_data.name .assign (
921+ prpsinfo.pr_fname ,
922+ strnlen (prpsinfo.pr_fname , sizeof (prpsinfo.pr_fname )));
924923 SetID (prpsinfo.pr_pid );
925924 break ;
926925 }
@@ -975,7 +974,7 @@ llvm::Error ProcessElfCore::ParseThreadContextsFromNoteSegment(
975974 assert (segment_header.p_type == llvm::ELF::PT_NOTE);
976975
977976 auto notes_or_error = parseSegment (segment_data);
978- if (!notes_or_error)
977+ if (!notes_or_error)
979978 return notes_or_error.takeError ();
980979 switch (GetArchitecture ().GetTriple ().getOS ()) {
981980 case llvm::Triple::FreeBSD:
0 commit comments