strat: use m_ for member variables

This commit is contained in:
Michael Scire 2021-10-10 00:14:06 -07:00
parent ce28591ab2
commit a595c232b9
425 changed files with 8531 additions and 8484 deletions

View file

@ -60,53 +60,53 @@ namespace ams::creport {
static constexpr size_t StackTraceSizeMax = 0x20;
static constexpr size_t NameLengthMax = 0x20;
private:
svc::ThreadContext context = {};
u64 thread_id = 0;
u64 stack_top = 0;
u64 stack_bottom = 0;
u64 stack_trace[StackTraceSizeMax] = {};
size_t stack_trace_size = 0;
u64 tls_address = 0;
u8 tls[0x100] = {};
u64 stack_dump_base = 0;
u8 stack_dump[0x100] = {};
char name[NameLengthMax + 1] = {};
ModuleList *module_list = nullptr;
svc::ThreadContext m_context = {};
u64 m_thread_id = 0;
u64 m_stack_top = 0;
u64 m_stack_bottom = 0;
u64 m_stack_trace[StackTraceSizeMax] = {};
size_t m_stack_trace_size = 0;
u64 m_tls_address = 0;
u8 m_tls[0x100] = {};
u64 m_stack_dump_base = 0;
u8 m_stack_dump[0x100] = {};
char m_name[NameLengthMax + 1] = {};
ModuleList *m_module_list = nullptr;
public:
u64 GetGeneralPurposeRegister(size_t i) const {
return this->context.r[i];
return m_context.r[i];
}
u64 GetPC() const {
return this->context.pc;
return m_context.pc;
}
u64 GetLR() const {
return this->context.lr;
return m_context.lr;
}
u64 GetFP() const {
return this->context.fp;
return m_context.fp;
}
u64 GetSP() const {
return this->context.sp;
return m_context.sp;
}
u64 GetThreadId() const {
return this->thread_id;
return m_thread_id;
}
size_t GetStackTraceSize() const {
return this->stack_trace_size;
return m_stack_trace_size;
}
u64 GetStackTrace(size_t i) const {
return this->stack_trace[i];
return m_stack_trace[i];
}
void SetModuleList(ModuleList *ml) {
this->module_list = ml;
m_module_list = ml;
}
bool ReadFromProcess(os::NativeHandle debug_handle, ThreadTlsMap &tls_map, u64 thread_id, bool is_64_bit);
@ -118,20 +118,20 @@ namespace ams::creport {
class ThreadList {
private:
size_t thread_count = 0;
ThreadInfo threads[ThreadCountMax];
size_t m_thread_count = 0;
ThreadInfo m_threads[ThreadCountMax];
public:
size_t GetThreadCount() const {
return this->thread_count;
return m_thread_count;
}
const ThreadInfo &GetThreadInfo(size_t i) const {
return this->threads[i];
return m_threads[i];
}
void SetModuleList(ModuleList *ml) {
for (size_t i = 0; i < this->thread_count; i++) {
this->threads[i].SetModuleList(ml);
for (size_t i = 0; i < m_thread_count; i++) {
m_threads[i].SetModuleList(ml);
}
}