From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fernando Nasser To: Eli Zaretskii Cc: Fernando Nasser , Andrew Cagney , Michael Snyder , Daniel Jacobowitz , gdb-patches@sourceware.cygnus.com Subject: Re: [RFA] Testsuite addition for x86 linux GDB and SIGALRM fix Date: Thu, 26 Jul 2001 10:21:00 -0000 Message-id: <3B6050EE.6E3D62DB@cygnus.com> References: X-SW-Source: 2001-07/msg00656.html Eli Zaretskii wrote: > > On Thu, 26 Jul 2001, Fernando Nasser wrote: > > > > int i = (foo (), bar ()); > > > > > > or even like this: > > > > > > int i = foo (); bar (); > > > > > > Where would you suggest that "finish" leaves you in these cases, and what > > > does ``in the middle of source lines'' mean in these cases? Also, do you > > > think these two cases are fundamentally different from "foo (bar ());", > > > and if so, how are they different? > > > > All are the same. "step" gets into foo(), a "finish" finishes foo(), > > but then there is bar() so you stop there next. > > So you are saying that "finish" should run all the way until the first > call exits, then print the return value (if any), and then do one more > "step" automatically, to get inside of the second call, is that it? Yes, but it does it to leave the line with the call. As any step, it will stop if there is a call in the way. That is why it will stop at the second. -- Fernando Nasser Red Hat - Toronto E-Mail: fnasser@redhat.com 2323 Yonge Street, Suite #300 Toronto, Ontario M4P 2C9