This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Printing a 2D array in a C program
- From: Neven Sajko <nsajko at gmail dot com>
- To: gdb at sourceware dot org
- Date: Fri, 4 Mar 2016 15:27:14 +0100
- Subject: Printing a 2D array in a C program
- Authentication-results: sourceware.org; auth=none
Hello,
I have a newbie question.
GDB version is 7.11, compiler is gcc 5.3.0 (-std=gnu90).
In my C program there is a square matrix implemented as an array
of arrays, which prints nicely in GDB with `info locals`.
But how can that nice output be accomplished if you are not in
the function in which the array was declared, but just have it
passed as a function parameter.
Thank you,
Neven