Re: [RFA] Locate sparc64 arguments correctly

Kevin Buettner
2002-04-23T23:09:49Z

On Apr 20, 2:09am, David S. Miller wrote:

> 1) Debugging information encodes LOC_ARG/LOC_REF_ARG offsets
> with the Sparc64 stack bias included, we keep track of the
> frame pointer with the stack bias removed on sparc64.
>
> sparc64_frame_args_address takes care of that.

I agree that this is the problem, but, when you do this...

> +/* Debugging information stores LOC_ARG/LOC_REF_ARG offsets with the
> + sparc64 stack bias present, this undoes that so that users of
> + FRAME_ARGS_ADDRESS use the right location. */
> +
> +static CORE_ADDR
> +sparc64_frame_args_address (struct frame_info *fi)
> +{
> + return fi->frame - 2047;
> +}

...does the output from ``info frame'' still look reasonable?