[haiku-commits] Re: haiku: hrev45033 - in src/apps/debugger: arch/x86_64 elf arch/x86_64/disasm

  • From: Rene Gollent <anevilyak@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 19 Dec 2012 22:35:41 -0500

On 12/19/12, alex@xxxxxxxxxxxxxxxx <alex@xxxxxxxxxxxxxxxx> wrote:
> c8d82cf: Started adding x86_64 support to Debugger.
>
>   Stack tracing doesn't work yet, nor does single stepping (somehow
>   manages to completely freeze the system).

Single stepping did actually work over here, though there are some
interesting errors, i.e. in some cases Step Over simply steps into the
function instead of over it, and in other cases it appears to do
nothing until you hit Step Out, at which point you wind up in the
actual function again. Step Out likewise doesn't appear to quite
behave as expected.

As far as stack tracing is concerned, at a glance one problem is that
X86_64_REGISTER_RIP isn't present in your DWARF register mapping. From
some googling it appears to correspond to register 16 [1] but that
didn't quite seem to fix it for me, though that could also be due to
the missing implementation of
ArchitectureX8664::UpdateStackFrameCpuState().

HTH,

Rene

[1] http://www.ucw.cz/~hubicka/papers/abi/node14.html

Other related posts: