This is the mail archive of the gdb@sourceware.org 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]

Integer arguments passed to inferior's functions


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


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