Printing a 2D array in a C program
Neven Sajko <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <CAL+bK4NidroyapZhGvtVVsiCbu4=Hz56mF4_oU3iXM-rvqY_xw@mail.gmail.com> |
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