This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Integer arguments passed to inferior's functions
- From: Eli Zaretskii <eliz at gnu dot org>
- To: gdb at sourceware dot org
- Date: Sun, 30 Oct 2011 02:38:44 -0400
- Subject: Integer arguments passed to inferior's functions
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
If I type
(gdb) call foo(1)
what will be the type of the argument GDB will pass to `foo'? Will
GDB look up the function signature or will it use some default?. If
the former, what happens when the signature is unknown or unavailable?
If the latter, how is that default computed? does it depend on the
inferior's architecture, for instance?
Apologies if this is in the manual and I missed it; at least the node
"Calling" keeps silent about this issue.
TIA