This is the mail archive of the gdb-prs@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: tdep/1155: s/390 Linux: GDB can't reselect the right frame afteran inferior function call


The following reply was made to PR tdep/1155; it has been noted by GNATS.

From: Andrew Cagney <ac131313 at redhat dot com>
To: Jim Blandy <jimb at redhat dot com>
Cc: gdb-gnats at sources dot redhat dot com
Subject: Re: tdep/1155: s/390 Linux: GDB can't reselect the right frame after
 an inferior function call
Date: Fri, 28 Mar 2003 15:07:08 -0500

 > This explains why, of all the architectures, only the s390 is seeing
 >> this problem.  That stack address needs to be constant throughout the
 >> lifetime of the frame, and the easiest safest way of doing that is to
 >> put it at the start of the frame.
 > 
 > 
 > Well, what I said isn't quite right.  Frames for functions that don't
 > call alloca use the SP as their ID.  Functions that do call alloca
 > allocate a frame pointer register, and we use that as the ID for those
 > frames.  So either way the ID is constant throughout the life of the
 > frame; but it isn't always the outermost end of the stack.
 
 Does that lifetime include the prologue (trying to include the epilogue 
 is getting hard)?
 
 Andrew
 
 


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