This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: behavior of finish within command set in gdb5.0
- From: Smita <smita at cse dot ucsc dot edu>
- To: Joel Brobecker <brobecker at gnat dot com>
- Cc: Smita <smita at soe dot ucsc dot edu>, <gdb at sources dot redhat dot com>
- Date: Fri, 11 Apr 2003 10:10:14 -0700 (PDT)
- Subject: Re: behavior of finish within command set in gdb5.0
Thanks. Is there a way to make it continue after htting the finish
command?
Thanks
Smita
On Fri, 11 Apr 2003, Joel Brobecker wrote:
> > 1. In gdb4.17 (netbsd), it results in a behavior where gdb stops at the
> > function, prints the return value, and contiues.
> > 2. In gdb5.0 (netbsd), it stops at the function, prints the return value,
> > and then stops at the gdb prompt, expecting input from the user.
> >
> > What's the correct behavior of finish? (1) or (2)?
>
> The correct behavior, that is the behavior documented in the GDB
> documentation, is (2). The documentation also explains why they chose
> (2).
>
> --
> Joel
>