This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
how to print a function's return value
- From: Tom Frank <gdbhelper at gmail dot com>
- To: gdb at sourceware dot org
- Date: Wed, 11 Jul 2012 23:10:38 +0800
- Subject: how to print a function's return value
hi,
in source code , there is a fuction call like this : int a = func(param);
then I debug it with gdb , whein it stop at this line,I want to print
the func's retvalue, which results in a gdb sigtrap,and
cause gdb to go into a trap, then I can not find where am I .
I konw there is a command to prevent gdb going to trap like this,
what is that command?
thanks!