[PATCH] D146071: [AIX] unset bit "IsBackChainStored" of traceback table for leaf functions with no stack frame

Digger Lin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 14 10:50:22 PDT 2023


DiggerLin created this revision.
DiggerLin added reviewers: hubert.reinterpretcast, cezheng.
Herald added subscribers: kbarton, hiraditya, nemanjai.
Herald added a project: All.
DiggerLin requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

in function PPCAIXAsmPrinter::emitTracebackTable() ,the bit "IsBackChainStored" of traceback table always set true, it will cause aix debug tools "dbx" emit an error info "libdebug assertion "(framep->getGpr(STKP, &addr) == DB_SUCCESS && *nextStkpp == addr)"  when debug a leaf functions with no stack frame.

If a a leaf functions with no stack frame , the bit IsBackChainStored should be unset.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D146071

Files:
  llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
  llvm/test/CodeGen/PowerPC/aix-emit-tracebacktable-clobber-register.ll
  llvm/test/CodeGen/PowerPC/aix-emit-tracebacktable-vectorinfo.ll
  llvm/test/CodeGen/PowerPC/aix-emit-tracebacktable-vectorinfo_hasvarg.ll
  llvm/test/CodeGen/PowerPC/aix-emit-tracebacktable.ll
  llvm/test/DebugInfo/XCOFF/empty.ll
  llvm/test/DebugInfo/XCOFF/explicit-section.ll
  llvm/test/DebugInfo/XCOFF/function-sections.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146071.505165.patch
Type: text/x-patch
Size: 13791 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230314/a4e028a6/attachment.bin>


More information about the llvm-commits mailing list