Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: murugesan <mukeshgct@hotpop.com>
To: "gdb@sources.redhat.com" <gdb@sources.redhat.com>
Subject: Output the filename ,the function name and the line number after returning from a function call
Date: Wed, 11 Feb 2004 10:27:00 -0000	[thread overview]
Message-ID: <1076495025.4979.43.camel@mun-co> (raw)
In-Reply-To: <20040211052236.GA9887@redhat.com>

Hello all,
	As you all know gdb outputs the filename ,the function name and the
line number after returning from a function call.
But this does not happen when a function has a parameter as another
function.

That is,
# gdb a.out
gdb> break main
gdb> s
     .
gdb> bt
     fun
     main
gdb> s
     .
     .

main (Argc=1, Argv=0x7e9f081c) at openssl.c:236
This is getting printed when returning from fun.
But this does not happen in the following case.

eg: 

fun(ret_val())
{
}

Here when returning from ret_val 
main (Argc=1, Argv=0x7e9f081c) at openssl.c:236 is not getting printed.
Instead it just enters fun function without returning main.

If it is the case ( that it will not return to main )
then my "bt" might have printed

ret_val
fun
main

But this does not happened for this case. Just it gave me

ret_val
main
Is there any way to make the gdb to output the filename ,the function
name and the line number after returning from functions that has another
function has parameter.

Thanks in advance for the help.

Regards,
Murugesan



  parent reply	other threads:[~2004-02-11 10:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-10  9:43 Problems with building [gdb 6.0] Roland Zerek
2004-02-11  5:15 ` Daniel Jacobowitz
2004-02-11  5:22   ` Christopher Faylor
2004-02-11  5:50     ` Eli Zaretskii
2004-02-11 10:27     ` murugesan [this message]
2004-02-11 13:08       ` Output the filename ,the function name and the line number after returning from a function call Bob Rossi
2004-02-11 16:38         ` murugesan
2004-02-11 16:43         ` murugesan

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=1076495025.4979.43.camel@mun-co \
    --to=mukeshgct@hotpop.com \
    --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