This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH RFA] gdb.base/signals.exp: explicitly set count = 0
- To: gdb-patches at sources dot redhat dot com
- Subject: Re: [PATCH RFA] gdb.base/signals.exp: explicitly set count = 0
- From: Orjan Friberg <orjan dot friberg at axis dot com>
- Date: Fri, 16 Mar 2001 10:07:13 +0100
- Organization: Axis Communications AB
- References: <3AB0C976.53755DF7@axis.com> <3AB0D1C8.B42213EF@redhat.com>
Fernando Nasser wrote:
>
> Orjan Friberg wrote:
> >
> > gdb.base/signals.exp runs the main function in signals.c twice.
> > signal.c contains a static variable count which is initialized to 0.
> > The second time the main function is run, the test case relies on count
> > being 0, which depends on how runto_main is implemented for the target.
> > My target does a simple "jump *main", which obviously doesn't
> > re-initialize count to 0. This patch sets count to 0 explicitly.
> >
> > Ok to commit?
> >
>
> Yes.
>
Committed. Thanks.
--
Orjan Friberg E-mail: orjan.friberg@axis.com
Axis Communications AB Phone: +46 46 272 17 68