This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Output the filename ,the function name and the line number afterreturning from a function call


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]