Added TODO regarding issues with recursive functions.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31665 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -252,6 +252,10 @@ ThreadHandler::HandleThreadAction(uint32 action)
|
|||||||
if (frame->Type() == STACK_FRAME_TYPE_SYSCALL) {
|
if (frame->Type() == STACK_FRAME_TYPE_SYSCALL) {
|
||||||
// set a breakpoint at the CPU state's instruction pointer (points to
|
// set a breakpoint at the CPU state's instruction pointer (points to
|
||||||
// the return address, unlike the stack frame's instruction pointer)
|
// the return address, unlike the stack frame's instruction pointer)
|
||||||
|
// TODO: That's OK in principle, but needs additional work with recursive
|
||||||
|
// functions. We need to store some information that allows us to determine
|
||||||
|
// whether we've actually stepped out of the current frame when we have hit
|
||||||
|
// the breakpoint.
|
||||||
status_t error = _InstallTemporaryBreakpoint(
|
status_t error = _InstallTemporaryBreakpoint(
|
||||||
frame->GetCpuState()->InstructionPointer());
|
frame->GetCpuState()->InstructionPointer());
|
||||||
if (error != B_OK) {
|
if (error != B_OK) {
|
||||||
|
|||||||
Reference in New Issue
Block a user