@@ -434,7 +434,7 @@ size_t ProcessElfCore::DoReadMemory(lldb::addr_t addr, void *buf, size_t size,
434434 const lldb::addr_t file_start = address_range->data .GetRangeBase ();
435435 const lldb::addr_t file_end = address_range->data .GetRangeEnd ();
436436 size_t bytes_to_read = size; // Number of bytes to read from the core file
437- size_t bytes_copied = 0 ; // Number of bytes actually read from the core file
437+ size_t bytes_copied = 0 ; // Number of bytes actually read from the core file
438438 lldb::addr_t bytes_left =
439439 0 ; // Number of bytes available in the core file from the given address
440440
@@ -517,7 +517,8 @@ lldb::addr_t ProcessElfCore::GetImageInfoAddress() {
517517
518518// Parse a FreeBSD NT_PRSTATUS note - see FreeBSD sys/procfs.h for details.
519519static void ParseFreeBSDPrStatus (ThreadData &thread_data,
520- const DataExtractor &data, bool lp64) {
520+ const DataExtractor &data,
521+ bool lp64) {
521522 lldb::offset_t offset = 0 ;
522523 int pr_version = data.GetU32 (&offset);
523524
@@ -544,7 +545,8 @@ static void ParseFreeBSDPrStatus(ThreadData &thread_data,
544545
545546// Parse a FreeBSD NT_PRPSINFO note - see FreeBSD sys/procfs.h for details.
546547static void ParseFreeBSDPrPsInfo (ProcessElfCore &process,
547- const DataExtractor &data, bool lp64) {
548+ const DataExtractor &data,
549+ bool lp64) {
548550 lldb::offset_t offset = 0 ;
549551 int pr_version = data.GetU32 (&offset);
550552
@@ -563,7 +565,8 @@ static void ParseFreeBSDPrPsInfo(ProcessElfCore &process,
563565}
564566
565567static llvm::Error ParseNetBSDProcInfo (const DataExtractor &data,
566- uint32_t &cpi_nlwps, uint32_t &cpi_signo,
568+ uint32_t &cpi_nlwps,
569+ uint32_t &cpi_signo,
567570 uint32_t &cpi_siglwp,
568571 uint32_t &cpi_pid) {
569572 lldb::offset_t offset = 0 ;
@@ -731,8 +734,8 @@ llvm::Error ProcessElfCore::parseNetBSDNotes(llvm::ArrayRef<CoreNote> notes) {
731734
732735 if (name == " NetBSD-CORE" ) {
733736 if (note.info .n_type == NETBSD::NT_PROCINFO) {
734- llvm::Error error =
735- ParseNetBSDProcInfo (note. data , nlwps, signo, siglwp, pr_pid);
737+ llvm::Error error = ParseNetBSDProcInfo (note. data , nlwps, signo,
738+ siglwp, pr_pid);
736739 if (error)
737740 return error;
738741 SetID (pr_pid);
@@ -958,9 +961,7 @@ llvm::Error ProcessElfCore::parseLinuxNotes(llvm::ArrayRef<CoreNote> notes) {
958961 Status status = prpsinfo.Parse (note.data , arch);
959962 if (status.Fail ())
960963 return status.ToError ();
961- thread_data.name .assign (
962- prpsinfo.pr_fname ,
963- strnlen (prpsinfo.pr_fname , sizeof (prpsinfo.pr_fname )));
964+ thread_data.name .assign (prpsinfo.pr_fname , strnlen (prpsinfo.pr_fname , sizeof (prpsinfo.pr_fname )));
964965 SetID (prpsinfo.pr_pid );
965966 m_executable_name = thread_data.name ;
966967 break ;
@@ -1015,7 +1016,7 @@ llvm::Error ProcessElfCore::ParseThreadContextsFromNoteSegment(
10151016 assert (segment_header.p_type == llvm::ELF::PT_NOTE);
10161017
10171018 auto notes_or_error = parseSegment (segment_data);
1018- if (!notes_or_error)
1019+ if (!notes_or_error)
10191020 return notes_or_error.takeError ();
10201021 switch (GetArchitecture ().GetTriple ().getOS ()) {
10211022 case llvm::Triple::FreeBSD:
0 commit comments