[Top] [All Lists]

Re: [PATCH, RFC] MIPS: Implement the getcontext API

To: Ralf Baechle <>
Subject: Re: [PATCH, RFC] MIPS: Implement the getcontext API
From: Daniel Jacobowitz <>
Date: Thu, 2 Apr 2009 16:06:56 -0400
Cc: David Daney <>, Brian Foster <>, "Maciej W. Rozycki" <>,,, "Maciej W. Rozycki" <>
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <> <> <> <>
User-agent: Mutt/1.5.17 (2008-05-11)
On Thu, Apr 02, 2009 at 03:29:36PM +0200, Ralf Baechle wrote:
> To maintaine compatibility with old debuggers and possibly other software
> that knows about the stackframe layout I wrote the signal code to only
> use the larger alignment of the stackframe if a particular processor
> requires it.
> However one possible improvment would be to change the way a struct sigframe
> or rt_sigframe is allocated on the stack such that not the beginning of
> the structure is aligned but the rs_code field is kept aligned.  Would
> such a change cause problems for gdb?

If you don't change the internal layout of the structure, I don't
think GDB will even notice - it does not know about the more-aligned variant.

Daniel Jacobowitz

<Prev in Thread] Current Thread [Next in Thread>