@@ -224,7 +224,7 @@ Status ProcessElfCore::DoLoadCore() {
224
224
ArchSpec core_arch (m_core_module_sp->GetArchitecture ());
225
225
target_arch.MergeFrom (core_arch);
226
226
GetTarget ().SetArchitecture (target_arch);
227
-
227
+
228
228
SetUnixSignals (UnixSignals::Create (GetArchitecture ()));
229
229
230
230
// 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,
393
393
const lldb::addr_t file_start = address_range->data .GetRangeBase ();
394
394
const lldb::addr_t file_end = address_range->data .GetRangeEnd ();
395
395
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
397
397
lldb::addr_t bytes_left =
398
398
0 ; // Number of bytes available in the core file from the given address
399
399
@@ -476,8 +476,7 @@ lldb::addr_t ProcessElfCore::GetImageInfoAddress() {
476
476
477
477
// Parse a FreeBSD NT_PRSTATUS note - see FreeBSD sys/procfs.h for details.
478
478
static void ParseFreeBSDPrStatus (ThreadData &thread_data,
479
- const DataExtractor &data,
480
- bool lp64) {
479
+ const DataExtractor &data, bool lp64) {
481
480
lldb::offset_t offset = 0 ;
482
481
int pr_version = data.GetU32 (&offset);
483
482
@@ -504,8 +503,7 @@ static void ParseFreeBSDPrStatus(ThreadData &thread_data,
504
503
505
504
// Parse a FreeBSD NT_PRPSINFO note - see FreeBSD sys/procfs.h for details.
506
505
static void ParseFreeBSDPrPsInfo (ProcessElfCore &process,
507
- const DataExtractor &data,
508
- bool lp64) {
506
+ const DataExtractor &data, bool lp64) {
509
507
lldb::offset_t offset = 0 ;
510
508
int pr_version = data.GetU32 (&offset);
511
509
@@ -524,8 +522,7 @@ static void ParseFreeBSDPrPsInfo(ProcessElfCore &process,
524
522
}
525
523
526
524
static 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,
529
526
uint32_t &cpi_siglwp,
530
527
uint32_t &cpi_pid) {
531
528
lldb::offset_t offset = 0 ;
@@ -693,8 +690,8 @@ llvm::Error ProcessElfCore::parseNetBSDNotes(llvm::ArrayRef<CoreNote> notes) {
693
690
694
691
if (name == " NetBSD-CORE" ) {
695
692
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);
698
695
if (error)
699
696
return error;
700
697
SetID (pr_pid);
@@ -875,7 +872,7 @@ llvm::Error ProcessElfCore::parseOpenBSDNotes(llvm::ArrayRef<CoreNote> notes) {
875
872
// / - NT_SIGINFO - Information about the signal that terminated the process
876
873
// / - NT_AUXV - Process auxiliary vector
877
874
// / - NT_FILE - Files mapped into memory
878
- // /
875
+ // /
879
876
// / Additionally, for each thread in the process the core file will contain at
880
877
// / least the NT_PRSTATUS note, containing the thread id and general purpose
881
878
// / registers. It may include additional notes for other register sets (floating
@@ -920,7 +917,9 @@ llvm::Error ProcessElfCore::parseLinuxNotes(llvm::ArrayRef<CoreNote> notes) {
920
917
Status status = prpsinfo.Parse (note.data , arch);
921
918
if (status.Fail ())
922
919
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 )));
924
923
SetID (prpsinfo.pr_pid );
925
924
break ;
926
925
}
@@ -975,7 +974,7 @@ llvm::Error ProcessElfCore::ParseThreadContextsFromNoteSegment(
975
974
assert (segment_header.p_type == llvm::ELF::PT_NOTE);
976
975
977
976
auto notes_or_error = parseSegment (segment_data);
978
- if (!notes_or_error)
977
+ if (!notes_or_error)
979
978
return notes_or_error.takeError ();
980
979
switch (GetArchitecture ().GetTriple ().getOS ()) {
981
980
case llvm::Triple::FreeBSD:
0 commit comments