printing array in function

Andreas Schwab schwab@linux-m68k.org
Fri Sep 3 16:21:00 GMT 2010


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."



More information about the Gdb mailing list