This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch]: x64 windows about red-zone-area
- From: Kai Tietz <Kai dot Tietz at onevision dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 25 Jan 2010 12:42:58 +0100
- Subject: [patch]: x64 windows about red-zone-area
Hello,
Question is, if for x64 windows target the red-zone size shouldn't be set
to zero. It is possible to use SYSV via attribute switching in x64
windows code, but by default x64 windows ABI doesn't have red-zone area at
all. So I think it makes sense to set it to zero in amd64-windows-tdep.c
ChangeLog
2010-01-25 Kai Tietz <kai.tietz@onevision.com>
* amd64-windows-tdep.c (amd64_windows_init_abi): Set red-zone
size to zero.
Tested for x86_64-w64-mingw32. Ok for apply?
Regards,
Kai
| (\_/) This is Bunny. Copy and paste Bunny
| (='.'=) into your signature to help him gain
| (")_(") world domination.
Index: amd64-windows-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/amd64-windows-tdep.c,v
retrieving revision 1.2
diff -u -3 -r1.2 amd64-windows-tdep.c
--- amd64-windows-tdep.c 1 Jan 2010 07:31:29 -0000 1.2
+++ amd64-windows-tdep.c 25 Jan 2010 11:37:59 -0000
@@ -28,6 +28,7 @@
/* On Windows, "long"s are only 32bit. */
set_gdbarch_long_bit (gdbarch, 32);
+ set_gdbarch_frame_red_zone_size (gdbarch, 0);
set_solib_ops (gdbarch, &solib_target_so_ops);
}