Skip to content

Commit 7b067e5

Browse files
committed
[mips] Add stub for lldb arch functions on loongson3
1 parent 14946c1 commit 7b067e5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,15 @@ class NativeRegisterContextLinux
4040
#endif
4141

4242
// Determine the architecture of the thread given by its ID.
43+
#ifdef __mips64
44+
static llvm::Expected<ArchSpec> DetermineArchitecture(lldb::tid_t tid) {
45+
return llvm::createStringError(
46+
llvm::inconvertibleErrorCode(),
47+
"Architecture does not support this function");
48+
}
49+
#else
4350
static llvm::Expected<ArchSpec> DetermineArchitecture(lldb::tid_t tid);
51+
#endif
4452

4553
// Invalidates cached values in register context data structures
4654
virtual void InvalidateAllRegisters(){}

0 commit comments

Comments
 (0)