NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-amd64/38969: ddb backtrace on amd64 doesn't show function arguments
The following reply was made to PR port-amd64/38969; it has been noted by GNATS.
From: David Laight <david%l8s.co.uk@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: port-amd64/38969: ddb backtrace on amd64 doesn't show function
arguments
Date: Wed, 18 Jun 2008 22:32:37 +0100
On Tue, Jun 17, 2008 at 06:25:00AM +0000, Simon Burge wrote:
> >Number: 38969
> >Category: port-amd64
> >Synopsis: ddb backtrace on amd64 doesn't show function arguments
>
> >Fix:
> Not sure. Just changing amd64/md64/db_trace.c:db_numargs()
> to return "6" instead of "0" didn't look to provide realistic
> function args at a glance - I think this is similar to
> sparc/mips/<other-register-args-archs> do? Maybe tempt the
> compiler somehow to save function arguments on the stack?
The problem is that the first 6? arguments are passed in registers
so are very hard to locate.
David
--
David Laight: david%l8s.co.uk@localhost
Home |
Main Index |
Thread Index |
Old Index