[haiku-bugs] Re: [Haiku] #6751: gdb won't single step

  • From: "grahamh" <trac@xxxxxxxxxxxx>
  • Date: Fri, 29 Oct 2010 18:59:15 -0000

#6751: gdb won't single step
----------------------------------------------+----------------------------
  Reporter:  grahamh                          |        Owner:  bonefish
      Type:  bug                              |       Status:  in-progress
  Priority:  normal                           |    Milestone:  R1
 Component:  Applications/Command Line Tools  |      Version:
Resolution:                                   |  R1/Development
Blocked By:                                   |     Keywords:
  Platform:  x86                              |  Has a Patch:  0
                                              |     Blocking:
----------------------------------------------+----------------------------

Comment (by grahamh):

 Sorry, yes, you are right. I didn't mention DISABLE_BREAKPOINTS, because
 it doesn't do anything unless there are breakpoints set - so I didn't
 realise its relevance. As you correctly say, single step doesn't set the
 thread's breakpoint flag, because on x86 single stepping doesn't work via
 breakpoints, and that is what's preventing
 x86_exit_user_debug_at_kernel_entry() from being called. Presumably
 setting the breakpoint flag for single step might be a solution (when
 getting a B_DEBUG_MESSAGE_CONTINUE_THREAD with single_step set), but I
 don't know what other things that might break.

 (This is the first time I have looked inside the Haiku kernel, so I don't
 have a good feel for how everything interconnects yet...)

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/6751#comment:11>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: