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]

Re: printing array in function


Nicolas Sabouret <Nicolas.Sabouret@lip6.fr> writes:

> The problem we have is that arrays passed to functions are seen as

There is no such thing as an array parameter in C.

> pointers by gdb. Here is a simple example :
>
> 1:  void f(int tab[]) {

This is the same as f(int *), see Â6.7.5.3#7.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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