Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* step through entire file, saving each line to file?
@ 2007-02-23  7:05 Dexter Riley
       [not found] ` <baf6008d0702221609k5ecce4e7vb9bdd6cb39581872@mail.gmail.com>
  0 siblings, 1 reply; 2+ messages in thread
From: Dexter Riley @ 2007-02-23  7:05 UTC (permalink / raw)
  To: gdb


hello!  I'd like to step through an entire program, and dump each executed
line fo file.  I can do
gdb myprogram > tee savefile
(gdb)display/i $pc
(gdb)start
(gdb)si

and it displays the currently executed line.  I'd like the equivalent of
typing si multiple times; trying
(gdb) si 1000
apparently steps through 1000 lines and shows me THAT line.

Is there some nifty si or shell trick to do this?  Sorry for the newbie
question, but any help would be greatly appreciated.

Thanks very much,
dexter
-- 
View this message in context: http://www.nabble.com/step-through-entire-file%2C-saving-each-line-to-file--tf3275680.html#a9109689
Sent from the gdb - General mailing list archive at Nabble.com.


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

end of thread, other threads:[~2007-02-23  0:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-23  7:05 step through entire file, saving each line to file? Dexter Riley
     [not found] ` <baf6008d0702221609k5ecce4e7vb9bdd6cb39581872@mail.gmail.com>
2007-02-23 11:49   ` Rob Quill

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