Skip to content

Commit dec7d0a

Browse files
committed
Run clang format.
1 parent 6a8a4d5 commit dec7d0a

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

lldb/source/Core/DynamicLoader.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,7 @@ addr_t DynamicLoader::ReadPointer(addr_t addr) {
368368
return value;
369369
}
370370

371-
void DynamicLoader::LoadOperatingSystemPlugin(bool flush)
372-
{
373-
if (m_process)
374-
m_process->LoadOperatingSystemPlugin(flush);
371+
void DynamicLoader::LoadOperatingSystemPlugin(bool flush) {
372+
if (m_process)
373+
m_process->LoadOperatingSystemPlugin(flush);
375374
}

lldb/source/Plugins/Process/elf-core/ProcessElfCore.cpp

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ size_t ProcessElfCore::DoReadMemory(lldb::addr_t addr, void *buf, size_t size,
398398
const lldb::addr_t file_start = address_range->data.GetRangeBase();
399399
const lldb::addr_t file_end = address_range->data.GetRangeEnd();
400400
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
402402
lldb::addr_t bytes_left =
403403
0; // Number of bytes available in the core file from the given address
404404

@@ -481,8 +481,7 @@ lldb::addr_t ProcessElfCore::GetImageInfoAddress() {
481481

482482
// Parse a FreeBSD NT_PRSTATUS note - see FreeBSD sys/procfs.h for details.
483483
static void ParseFreeBSDPrStatus(ThreadData &thread_data,
484-
const DataExtractor &data,
485-
bool lp64) {
484+
const DataExtractor &data, bool lp64) {
486485
lldb::offset_t offset = 0;
487486
int pr_version = data.GetU32(&offset);
488487

@@ -509,8 +508,7 @@ static void ParseFreeBSDPrStatus(ThreadData &thread_data,
509508

510509
// Parse a FreeBSD NT_PRPSINFO note - see FreeBSD sys/procfs.h for details.
511510
static void ParseFreeBSDPrPsInfo(ProcessElfCore &process,
512-
const DataExtractor &data,
513-
bool lp64) {
511+
const DataExtractor &data, bool lp64) {
514512
lldb::offset_t offset = 0;
515513
int pr_version = data.GetU32(&offset);
516514

@@ -529,8 +527,7 @@ static void ParseFreeBSDPrPsInfo(ProcessElfCore &process,
529527
}
530528

531529
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,
534531
uint32_t &cpi_siglwp,
535532
uint32_t &cpi_pid) {
536533
lldb::offset_t offset = 0;
@@ -698,8 +695,8 @@ llvm::Error ProcessElfCore::parseNetBSDNotes(llvm::ArrayRef<CoreNote> notes) {
698695

699696
if (name == "NetBSD-CORE") {
700697
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);
703700
if (error)
704701
return error;
705702
SetID(pr_pid);
@@ -925,7 +922,9 @@ llvm::Error ProcessElfCore::parseLinuxNotes(llvm::ArrayRef<CoreNote> notes) {
925922
Status status = prpsinfo.Parse(note.data, arch);
926923
if (status.Fail())
927924
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)));
929928
SetID(prpsinfo.pr_pid);
930929
break;
931930
}
@@ -980,7 +979,7 @@ llvm::Error ProcessElfCore::ParseThreadContextsFromNoteSegment(
980979
assert(segment_header.p_type == llvm::ELF::PT_NOTE);
981980

982981
auto notes_or_error = parseSegment(segment_data);
983-
if(!notes_or_error)
982+
if (!notes_or_error)
984983
return notes_or_error.takeError();
985984
switch (GetArchitecture().GetTriple().getOS()) {
986985
case llvm::Triple::FreeBSD:

0 commit comments

Comments
 (0)