Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* How to print the current source line number
@ 2009-05-15 15:59 Rodrigo Dominguez
  2009-05-15 16:19 ` Joel Brobecker
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Rodrigo Dominguez @ 2009-05-15 15:59 UTC (permalink / raw)
  To: gdb

Hi,

How can I print the current source line number in gdb? I have tried the
'list' command and it shows the lines around the current line. However, this
command has "memory" and doesn't show the same lines each time it is
executed. Is there a better way to print the current line number? Or is
there a way to "reset" the memory of the 'line' command so it will show the
current line centered around the output?

Thank you,

Rodrigo Dominguez


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

end of thread, other threads:[~2009-05-17  6:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-15 15:59 How to print the current source line number Rodrigo Dominguez
2009-05-15 16:19 ` Joel Brobecker
2009-05-15 17:16 ` Eli Zaretskii
2009-05-15 18:09   ` Rodrigo Dominguez
2009-05-17  6:49 ` kamaraju kusumanchi

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