This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: what marks the end of stack?
- From: Andrew Haley <aph at redhat dot com>
- To: Oliver Kowalke <oliver dot kowalke at gmx dot de>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 30 Mar 2012 10:57:28 +0100
- Subject: Re: what marks the end of stack?
- References: <20120330061801.190310@gmx.net>
On 03/30/2012 07:18 AM, Oliver Kowalke wrote:
>> Normally the unwinder returns _URC_END_OF_STACK when it finds a stack
>> > frame with a PC value with no associated FDE. A specific such PC value
>> > is zero.
> In the example _URC_END_OF_STACK is not returned. A simple memory
> chunk is used as stack. Maybe I've to append a special page at the
> end of the stack - or something else?
Read what Ian wrote, more slowly! You have to save a PC of zero to
mark the end of the stack.
Andrew.