This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: GDB 4.17 Patch for stack aligned i386 code
- To: nsd at bosbc dot com
- Subject: Re: GDB 4.17 Patch for stack aligned i386 code
- From: John Wehle <john at feith dot com>
- Date: Fri, 24 Mar 2000 18:55:03 -0500 (EST)
- CC: cgf at cygnus dot com, eliz at delorie dot com, gdb-patches at sourceware dot cygnus dot com, jimb at cygnus dot com, msnyder at cygnus dot com
>>> It's desirable to omit the frame pointer when compiling leaf functions
>>> when targeting the x86 processor as this provides another hard register
>>> (%ebp) which can be used by the register allocators.
>
> The code I wrote handles non-leaf functions too. It only works on x86 at
> the moment, but I tried to make it architecture-independent.
I only handle non-leaf functions if the stack pointer is unchanging (i.e.
there are no arguments placed on the stack of the function being called).
Are you handling non-leaf functions even when the stack pointer is changing?
Does your patch handle functions where the prologue uses "andl" to align
the frame?
-- John
-------------------------------------------------------------------------
| Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com |
| John Wehle | Fax: 1-215-540-5495 | |
-------------------------------------------------------------------------