This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [ob] fix i366-nto-tdep.c
- From: "Kris Warkentin" <kewarken at qnx dot com>
- To: "Andrew Cagney" <ac131313 at redhat dot com>
- Cc: "Gdb-Patches at Sources dot Redhat dot Com" <gdb-patches at sources dot redhat dot com>
- Date: Tue, 17 Jun 2003 13:51:08 -0400
- Subject: Re: [ob] fix i366-nto-tdep.c
- References: <092c01c334f7$17a8c9d0$0202040a@catdog> <3EEF52E4.1060708@redhat.com>
Oops...sorry. Looked at 'extract_unsigned' rather than 'function returning
CORE_ADDR'. That's two careless ones in one day. I fixed and committed it.
cheers,
Kris
----- Original Message -----
From: "Andrew Cagney" <ac131313@redhat.com>
To: "Kris Warkentin" <kewarken@qnx.com>
Cc: "Gdb-Patches@Sources.Redhat.Com" <gdb-patches@sources.redhat.com>
Sent: Tuesday, June 17, 2003 1:41 PM
Subject: Re: [ob] fix i366-nto-tdep.c
> > Committed as obvious.
> >
> > cheers,
> >
> > Kris
> >
> > ChangeLog:
> >
> > * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
> >
> >
> > Index: i386-nto-tdep.c
> > ===================================================================
> > RCS file: /cvs/src/src/gdb/i386-nto-tdep.c,v
> > retrieving revision 1.3
> > diff -u -r1.3 i386-nto-tdep.c
> > --- i386-nto-tdep.c 30 May 2003 19:24:29 -0000 1.3
> > +++ i386-nto-tdep.c 17 Jun 2003 17:34:13 -0000
> > @@ -240,6 +240,7 @@
> > i386nto_sigcontext_addr (struct frame_info *next_frame)
> > {
> > char buf[4];
> > + unsigned sp;
> >
> > frame_unwind_register (next_frame, SP_REGNUM, buf);
> > sp = extract_unsigned_integer (buf, 4);
>
> You'll want that to be CORE_ADDR.
>
> Andrew
>
>
>