[haiku-bugs] Re: [Haiku] #6139: [PATCH] ppc: Implement arch_debug_get_caller

  • From: "andreasf" <trac@xxxxxxxxxxxx>
  • Date: Sun, 06 Jun 2010 12:43:30 -0000

#6139: [PATCH] ppc: Implement arch_debug_get_caller
---------------------------+------------------------------------------------
 Reporter:  andreasf       |       Owner:  axeld         
     Type:  enhancement    |      Status:  new           
 Priority:  normal         |   Milestone:  R1            
Component:  System/Kernel  |     Version:  R1/Development
 Keywords:                 |    Platform:  PowerPC       
Blockedby:                 |       Patch:  1             
 Blocking:                 |  
---------------------------+------------------------------------------------

Comment(by andreasf):

 Right, it would've returned the requesting function as caller.

 As can be seen in [comment:ticket:6129:5 #6129], {{{stack_trace}}} itself
 is included in the stack trace. This is remedied accordingly in patch 2.

 Ideally I would like to see everything including {{{panic}}} vanish from
 the regular stack trace, but that would seem to require major kernel
 debugger API refactoring, pushing the callsite of
 {{{debug_call_with_fault_handler}}} to arch-specific code to strip known-
 preceding frames.[[BR]]
 Inside ppc it might be feasible to split {{{stack_trace}}} in one function
 with {{{stack_frame*}}} argument and a wrapper with the present {{{int
 argc, char** argv}}} args to handle the {{{evaluate_debug_command}}} case.

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

Other related posts: