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


   From: Kevin Buettner <kevinb@redhat.com>
   Date: Tue, 23 Apr 2002 16:09:40 -0700

   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?
   
You're right, it does the wrong thing for info frame.

This indicates that FRAME_ARGS_ADDRESS is being used for two entirely
different purposes.  One is to interpret debugging information, the
other is to print arguments on the stack via info frame.

This particular case would be cured by adjusting what we use for
FRAME_ARGS_SKIP on a 64-bit sparc target such that the STACK bias is
calcelled back out.  I will make that modification to my patch and
resubmit.

Thanks for pointing this out.


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