On Thu, Jan 22, 2004 at 10:39:14AM +0530, Amit S. Kale wrote:I think the asm is not the issue. the only stuff used is constant and pointer generation code, no machine instructions. All that would have to be done is to describe, in the dwarft language, the interrupt frame. This is different for different archs so this is where the work would be needed.
On Thursday 22 Jan 2004 4:30 am, George Anzinger wrote:
Amit S. Kale wrote:
Now back to gdb problem of not being able to locate registers.
schedule results in code of this form:
schedule:
framesetup
registers save
...
...
save registers
change esp
call switchto
restore registers
...
I have not analyzed this as yet. However, it does seem to me to be the
same problem as trying to bt through an interrupt frame. The correct way
to do this is to build the dwarf frame descriptors. I have done this for
the interrupt frame and intend to send said patch out in a day or so.
Great! I had to do it this ackward way:
i386 ->
[snip]
I guess your patch will fix this problem for i386 only. Any ideas on doing it for powerpc too?
Maybe I'm missing something, but aside from having to re-write the
solution in PPC asm, if it's in i386 asm, why wouldn't this work for PPC
as well?