This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: ChangeLog entry, re: gdb-5.2 and SCO OpenServer 5.0.5
- From: william at nscs dot fast dot net
- To: kevinb at redhat dot com
- Cc: ac131313 at ges dot redhat dot com, gdb-patches at sources dot redhat dot com
- Date: Fri, 16 Aug 2002 18:18:20 EDT
- Subject: Re: ChangeLog entry, re: gdb-5.2 and SCO OpenServer 5.0.5
- Bcc: william at mip486 dot nscs dot fast dot net
- References: <200208161749.aa10539@mip486.nscs.fast.net> <1020816220813.ZM31901@localhost.localdomain>
- Source-info: From (or Sender) name not authenticated.
How is this:
2002-08-16 William Bader <william@nscs.fast.net>
* gdb/i386-tdep.c: Dynamically allocate buf;
TARGET_PTR_BIT is not a constant.
--- gdb-5.2/gdb/i386-tdep.c- Tue Feb 19 13:42:27 2002
+++ gdb-5.2/gdb/i386-tdep.c Fri Aug 16 18:13:00 2002
@@ -858,7 +858,7 @@
int
get_longjmp_target (CORE_ADDR *pc)
{
- char buf[TARGET_PTR_BIT / TARGET_CHAR_BIT];
+ char *buf = alloca (TARGET_PTR_BIT / TARGET_CHAR_BIT);
CORE_ADDR sp, jb_addr;
sp = read_register (SP_REGNUM);