This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: "break main; run" test
- From: "Eli Zaretskii" <eliz at elta dot co dot il>
- To: mec dot gnu at mindspring dot com (Michael Elizabeth Chastain)
- Cc: gdb at sources dot redhat dot com, nathanw at wasabisystems dot com
- Date: Fri, 09 Jan 2004 10:49:14 +0200
- Subject: Re: "break main; run" test
- References: <20040109031621.412084B35A@berman.michael-chastain.com>
- Reply-to: Eli Zaretskii <eliz at elta dot co dot il>
> Date: Thu, 8 Jan 2004 22:16:21 -0500 (EST)
> From: mec.gnu@mindspring.com (Michael Elizabeth Chastain)
>
> > When people refer to the test of starting gdb on a program, setting a
> > breakpoint on "main", and running to that point, is there a particular
> > standard test program in mind? "Hello world"? The GDB binary itself?
>
> You are right; it is ambiguous.
Seconded. Perhaps we should replace that language with something less
ambiguous.
> To me, it usually means "the gdb binary itself", since the gdb binary is
> a large program and it's guaranteed to exist. Sometimes it means
> "hello world", and sometimes it means "any random program".
It should IMHO preferably be some non-trivially large program, as some
subtle problems don't get expiosed unless GDB needs to deal with
complex debug info structures. It certainly cannot be a program with
no debug info, since then it's not guaranteed that GDB will know where
to find the symbol `main'.