Re: how do i use gdb with input?

2009-06-06 Thread Steven Schlansker


On Jun 5, 2009, at 8:33 PM, Gary Kline wrote:



	i'm trying to walk thru a short program and see what's actually  
happening.
	can anybody remind me how to send a file file  redirect to ./ 
a.out?



gdb myprog
(gdb) run  myfile

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: how do i use gdb with input?

2009-06-06 Thread Gary Kline
On Fri, Jun 05, 2009 at 11:36:33PM -0700, Steven Schlansker wrote:
 
 On Jun 5, 2009, at 8:33 PM, Gary Kline wrote:
 
 
  i'm trying to walk thru a short program and see what's actually  
 happening.
  can anybody remind me how to send a file file  redirect to ./ 
 a.out?
 
 
 gdb myprog
 (gdb) run  myfile
 

thanks, slightly belatedly.  

gary

(ps: good to hear from someone from where i spent some great years:
 Cory Hall.)



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
   For FBSD list: http://transfinite.thought.org/slicejourney.php

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


how do i use gdb with input?

2009-06-05 Thread Gary Kline

i'm trying to walk thru a short program and see what's actually 
happening.
can anybody remind me how to send a file file  redirect to ./a.out?

thanks much,

gary


-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
   For FBSD list: http://transfinite.thought.org/slicejourney.php


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org