use link register to determine return address when appropriate in getStackTrace

On PowerPC and ARM, we can't rely on the return address having already
been saved on the stack on entry to a thunk, so we must look for it in
the link register instead.
This commit is contained in:
Joel Dice
2011-02-21 15:25:52 -07:00
parent 20f4510122
commit e20daca297
5 changed files with 24 additions and 2 deletions

View File

@ -1838,7 +1838,11 @@ class MyArchitecture: public Assembler::Architecture {
return index;
}
virtual bool hasLinkRegister() {
return true;
}
virtual unsigned stackAlignmentInWords() {
return StackAlignmentInWords;
}