[haiku-bugs] Re: [Haiku] #9773: Add exception breakpoint support

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Sun, 09 Jun 2013 22:48:37 -0000

#9773: Add exception breakpoint support
-------------------------------------+----------------------------
   Reporter:  bonefish               |      Owner:  anevilyak
       Type:  enhancement            |     Status:  in-progress
   Priority:  normal                 |  Milestone:  Unscheduled
  Component:  Applications/Debugger  |    Version:  R1/Development
 Resolution:                         |   Keywords:
 Blocked By:  9713                   |   Blocking:
Has a Patch:  0                      |   Platform:  All
-------------------------------------+----------------------------

Comment (by bonefish):

 I'm afraid I can't say much about unwinding frameless functions either.
 There's the trivial case, when the instruction pointer points to the first
 instruction of the function. Then you can easily unwind all registers. If
 the IP points anywhere else, you'll have to do quite a bit of work to even
 unwind esp and eip correctly. The only approach I can think of is, with
 the help of the disassembler, to simulate instruction execution starting
 at the IP continuing until you hit a "ret" instruction (at a conditional
 jump instruction e.g. try a depth-first search strategy). This way it
 should be possible to unwind esp and eip as well as all callee preserved
 registers. If the IP isn't too far into the function yet and before any
 jump target address, simulating instruction execution from the beginning
 to the IP would be possible as well.

 Obviously this approach would not only work for frameless functions but
 also for functions with frame (in the absence of debug info).

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

Other related posts: