[Lldb-commits] [PATCH] D14633: [LLDB][MIPS] Clear bug 25194 - LLDB-Server Assertion raised when single stepping on MIPS
Tamas Berghammer via lldb-commits
lldb-commits at lists.llvm.org
Fri Nov 13 02:36:02 PST 2015
tberghammer requested changes to this revision.
tberghammer added a comment.
This revision now requires changes to proceed.
You are created a new ReadRegisterUnsigned method in the derived class what will hide a method from the base class with the same name but with different return type. I think from code health perspective it is a very bad idea and will lead to surprising differences between calling ReadRegisterUnsigned on an EmulateInstruction* or on an EmulateInstructionMIPS* with the same underlying object.
The route cause of your problem is that ReadRegisterUnsigned returns a value where the 32 MSB is garbage while the expected behavior is to zero out those bits (it works on i386 and arm AFAIK). You should find out why that is happening and fix the root cause of it what will fix your single stepping issue as well.
More information about the lldb-commits