From mboxrd@z Thu Jan 1 00:00:00 1970 From: Orjan Friberg To: gdb-patches@sources.redhat.com Subject: Re: [PATCH RFA] gdb.base/signals.exp: explicitly set count = 0 Date: Fri, 16 Mar 2001 01:08:00 -0000 Message-id: <3AB1D7C1.20CED9EC@axis.com> References: <3AB0C976.53755DF7@axis.com> <3AB0D1C8.B42213EF@redhat.com> X-SW-Source: 2001-03/msg00276.html 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