@@ -398,7 +398,7 @@ size_t ProcessElfCore::DoReadMemory(lldb::addr_t addr, void *buf, size_t size,
398
398
const lldb::addr_t file_start = address_range->data .GetRangeBase ();
399
399
const lldb::addr_t file_end = address_range->data .GetRangeEnd ();
400
400
size_t bytes_to_read = size; // Number of bytes to read from the core file
401
- size_t bytes_copied = 0 ; // Number of bytes actually read from the core file
401
+ size_t bytes_copied = 0 ; // Number of bytes actually read from the core file
402
402
lldb::addr_t bytes_left =
403
403
0 ; // Number of bytes available in the core file from the given address
404
404
@@ -481,8 +481,7 @@ lldb::addr_t ProcessElfCore::GetImageInfoAddress() {
481
481
482
482
// Parse a FreeBSD NT_PRSTATUS note - see FreeBSD sys/procfs.h for details.
483
483
static void ParseFreeBSDPrStatus (ThreadData &thread_data,
484
- const DataExtractor &data,
485
- bool lp64) {
484
+ const DataExtractor &data, bool lp64) {
486
485
lldb::offset_t offset = 0 ;
487
486
int pr_version = data.GetU32 (&offset);
488
487
@@ -509,8 +508,7 @@ static void ParseFreeBSDPrStatus(ThreadData &thread_data,
509
508
510
509
// Parse a FreeBSD NT_PRPSINFO note - see FreeBSD sys/procfs.h for details.
511
510
static void ParseFreeBSDPrPsInfo (ProcessElfCore &process,
512
- const DataExtractor &data,
513
- bool lp64) {
511
+ const DataExtractor &data, bool lp64) {
514
512
lldb::offset_t offset = 0 ;
515
513
int pr_version = data.GetU32 (&offset);
516
514
@@ -529,8 +527,7 @@ static void ParseFreeBSDPrPsInfo(ProcessElfCore &process,
529
527
}
530
528
531
529
static llvm::Error ParseNetBSDProcInfo (const DataExtractor &data,
532
- uint32_t &cpi_nlwps,
533
- uint32_t &cpi_signo,
530
+ uint32_t &cpi_nlwps, uint32_t &cpi_signo,
534
531
uint32_t &cpi_siglwp,
535
532
uint32_t &cpi_pid) {
536
533
lldb::offset_t offset = 0 ;
@@ -698,8 +695,8 @@ llvm::Error ProcessElfCore::parseNetBSDNotes(llvm::ArrayRef<CoreNote> notes) {
698
695
699
696
if (name == " NetBSD-CORE" ) {
700
697
if (note.info .n_type == NETBSD::NT_PROCINFO) {
701
- llvm::Error error = ParseNetBSDProcInfo (note. data , nlwps, signo,
702
- siglwp, pr_pid);
698
+ llvm::Error error =
699
+ ParseNetBSDProcInfo (note. data , nlwps, signo, siglwp, pr_pid);
703
700
if (error)
704
701
return error;
705
702
SetID (pr_pid);
@@ -925,7 +922,9 @@ llvm::Error ProcessElfCore::parseLinuxNotes(llvm::ArrayRef<CoreNote> notes) {
925
922
Status status = prpsinfo.Parse (note.data , arch);
926
923
if (status.Fail ())
927
924
return status.ToError ();
928
- thread_data.name .assign (prpsinfo.pr_fname , strnlen (prpsinfo.pr_fname , sizeof (prpsinfo.pr_fname )));
925
+ thread_data.name .assign (
926
+ prpsinfo.pr_fname ,
927
+ strnlen (prpsinfo.pr_fname , sizeof (prpsinfo.pr_fname )));
929
928
SetID (prpsinfo.pr_pid );
930
929
break ;
931
930
}
@@ -980,7 +979,7 @@ llvm::Error ProcessElfCore::ParseThreadContextsFromNoteSegment(
980
979
assert (segment_header.p_type == llvm::ELF::PT_NOTE);
981
980
982
981
auto notes_or_error = parseSegment (segment_data);
983
- if (!notes_or_error)
982
+ if (!notes_or_error)
984
983
return notes_or_error.takeError ();
985
984
switch (GetArchitecture ().GetTriple ().getOS ()) {
986
985
case llvm::Triple::FreeBSD:
0 commit comments