Output the filename ,the function name and the line number after returning from a function call
murugesan
mukeshgct@hotpop.com
Wed Feb 11 10:27:00 GMT 2004
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
More information about the Gdb
mailing list