This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: printing array in function
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Nicolas Sabouret <Nicolas dot Sabouret at lip6 dot fr>
- Cc: gdb at sourceware dot org
- Date: Fri, 03 Sep 2010 18:21:40 +0200
- Subject: Re: printing array in function
- References: <4C80BA7A.3030309@lip6.fr>
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."