[PATCH] Add stack unwind support for the functions in .ko

Howard Su howard0su at gmail.com
Sun Dec 22 09:50:32 UTC 2013


here is the new version which address the print registers out problem.

On Monday, December 16, 2013, Warner Losh wrote:

>
> On Dec 15, 2013, at 4:56 PM, Howard Su wrote:
>
> > On Monday, December 16, 2013, Andrew Turner wrote:
> >
> >> On Mon, 9 Dec 2013 22:44:14 +0800
> >> Howard Su <howard0su at gmail.com <javascript:;> <javascript:;>> wrote:
> >>
> >>> Here is a new version which solve the unreadable $a problem. (the fix
> >>> is in ddb/db_main.c in the end of the patch.)
> >>>
> >>> I attached the diff for review.
> >>
> >> I can't comment on the MD parts of the code, but the ARM change looks
> >> good. My only request is to add a kernel option to turn on printing the
> >> registers in the stack trace as it has been useful for tracking down
> >> bugs.
> >>
> > I read the MD code of MIPS. seems it faces the same situation like arm
> > (register pass parameter). I will follow its pattern to print out
> register.
> > better than an option?
>
> I thought MIPS printed the args from those registers as args and ARM was
> the odd man out...
>
> Warner
>
>

-- 
-Howard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unwind.patch
Type: text/x-patch
Size: 12854 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20131222/65088c10/attachment.bin>


More information about the freebsd-arm mailing list