Re: [PATCH] dump_stack() based on prologue code analysis

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Atsushi Nemoto wrote:
On Thu, 27 Jul 2006 20:12:45 +0100, Thiemo Seufer <ths@xxxxxxxxxxxx> wrote:

IOW, binary analysis can't be expected to provide full accuracy, but
we can live with a reasonable approximation, I think.


Yes, this is a starting point.

The patch (and current mips get_wchan() implementation) tries to do is
what I used to do to analyze stack dump by hand.

1. Determine PC and SP.
2. Disassemble a function containing the PC address.
3. If the function is leaf, make use RA for new PC.

This was always the tricky part for me. How do you know if the function is a leaf?

.
.
.
David Daney


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux