| 1261 | |
| 1262 | |
| 1263 | uint64_t LldbAdapter::GetInstructionOffset() |
| 1264 | { |
| 1265 | SBThread thread = m_process.GetSelectedThread(); |
| 1266 | if (!thread.IsValid()) |
| 1267 | return 0; |
| 1268 | |
| 1269 | uint64_t pc = 0; |
| 1270 | size_t frameCount = thread.GetNumFrames(); |
| 1271 | if (frameCount > 0) |
| 1272 | { |
| 1273 | SBFrame frame = thread.GetFrameAtIndex(0); |
| 1274 | if (frame.IsValid()) |
| 1275 | pc = frame.GetPC(); |
| 1276 | } |
| 1277 | |
| 1278 | return pc; |
| 1279 | } |
| 1280 | |
| 1281 | |
| 1282 | uint64_t LldbAdapter::GetStackPointer() |