Skip to content
Snippets Groups Projects
Commit a17dd300 authored by Lioncash's avatar Lioncash
Browse files

arm_interface: Make LogBacktrace() a const member function

This function doesn't modify instance state, so it can be made const.
parent 776ce5d7
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include "core/memory.h" #include "core/memory.h"
namespace Core { namespace Core {
void ARM_Interface::LogBacktrace() { void ARM_Interface::LogBacktrace() const {
VAddr fp = GetReg(29); VAddr fp = GetReg(29);
VAddr lr = GetReg(30); VAddr lr = GetReg(30);
const VAddr sp = GetReg(13); const VAddr sp = GetReg(13);
......
...@@ -148,7 +148,7 @@ public: ...@@ -148,7 +148,7 @@ public:
/// Frame records are two words long: /// Frame records are two words long:
/// fp+0 : pointer to previous frame record /// fp+0 : pointer to previous frame record
/// fp+8 : value of lr for frame /// fp+8 : value of lr for frame
void LogBacktrace(); void LogBacktrace() const;
}; };
} // namespace Core } // namespace Core
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment