summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/PrologEpilogInserter.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-03-03 19:14:00 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-03-03 19:14:00 +0000
commited4019802d2f1bbb9db9349b9cadb3047abf99cc (patch)
treeab8f4c3d3218af980448cb515a7d5a5dbabcbc2c /llvm/lib/CodeGen/PrologEpilogInserter.cpp
parentc8d0d3ae0bc515855de1e1741012e14ec1154b33 (diff)
downloadbcm5719-llvm-ed4019802d2f1bbb9db9349b9cadb3047abf99cc.tar.gz
bcm5719-llvm-ed4019802d2f1bbb9db9349b9cadb3047abf99cc.zip
Add TestDisasmAPI.py which exercises the newly added SBFunction/SBSymbol.GetStartAddress(),
among other things: // When stopped on breakppint 1, we can get the line entry using SBFrame API // SBFrame.GetLineEntry(). We'll get the start address for the the line entry // with the SBAddress type, resolve the symbol context using the SBTarget API // SBTarget.ResolveSymbolContextForAddress() in order to get the SBSymbol. // // We then stop at breakpoint 2, get the SBFrame, and the the SBFunction object. // // The address from calling GetStartAddress() on the symbol and the function // should point to the same address, and we also verify that. And add one utility function disassemble(target, function_or_symbol) to lldbutil.py: """Disassemble the function or symbol given a target. It returns the disassembly content in a string object. """ TestDisasm.py uses the disassemble() function to do disassembly on the SBSymbol, and then the SBFunction object. llvm-svn: 126955
Diffstat (limited to 'llvm/lib/CodeGen/PrologEpilogInserter.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud