public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Smita <smita@cse.ucsc.edu>
To: gdb@sources.redhat.com
Subject: finish for nested function calls
Date: Thu, 17 Apr 2003 02:11:00 -0000	[thread overview]
Message-ID: <Pine.GSO.4.44.0304161906550.12775-100000@sundance.cse.ucsc.edu> (raw)
In-Reply-To: <16030.2067.89123.654341@localhost.redhat.com>

Hi,
 What is the expected behavior of finish when it is called from multiple
nested funtions?
e.g:
f1() calls f2():
f1()
{
  f2()
}

i do this in gdb:
b f1
finish
end
b f2
finish
end

finish takes effect only for f2() (the innermost function)
So, I get return value from f2() and gdb stops after it returns from f2().
I don't get the return value for f1().
Is that the expected beahvior?

Thanks
Smita



  parent reply	other threads:[~2003-04-17  2:11 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-16 18:18 gdb refuses to 'break' Markus Brandner
2003-04-16 19:51 ` return type of a fucntion Smita
2003-04-16 19:59   ` gdb's communication to a process/libgdb? Smita
2003-04-16 20:04     ` Daniel Jacobowitz
2003-04-16 22:07     ` libgdb Smita
2003-04-16 23:58       ` is libgdb okay to use? Smita
2003-04-17  1:44       ` libgdb Elena Zannoni
2003-04-17  2:06         ` libgdb Smita
2003-04-17  2:12           ` finish implementation Smita
2003-04-17 12:57           ` libgdb Elena Zannoni
2003-04-17  2:11         ` Smita [this message]
2003-04-17  3:37   ` return type of a fucntion Peter Barada
2003-04-17  9:13 ` gdb refuses to 'break' Markus Brandner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.GSO.4.44.0304161906550.12775-100000@sundance.cse.ucsc.edu \
    --to=smita@cse.ucsc.edu \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).