Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Printing a 2D array in a C program
@ 2016-03-04 14:27 Neven Sajko
  2016-03-04 14:42 ` Jan Kratochvil
  0 siblings, 1 reply; 12+ messages in thread
From: Neven Sajko @ 2016-03-04 14:27 UTC (permalink / raw)
  To: gdb

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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-03-05  8:23 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-04 14:27 Printing a 2D array in a C program Neven Sajko
2016-03-04 14:42 ` Jan Kratochvil
2016-03-04 16:15   ` Neven Sajko
2016-03-04 17:49     ` Jan Kratochvil
2016-03-04 18:24       ` Pedro Alves
2016-03-04 18:59         ` Jan Kratochvil
2016-03-04 19:16           ` Pedro Alves
2016-03-04 18:34     ` Andreas Schwab
2016-03-04 21:48       ` Neven Sajko
2016-03-04 22:16         ` Andreas Schwab
2016-03-05  0:59           ` Neven Sajko
2016-03-05  8:23             ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox