This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Locate sparc64 arguments correctly


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]