how to write in a user defined command

"ddd sh" <[email protected]>
Newsgroups gmane.comp.debugging.ddd.general
Message-ID <[email protected]>
hi,
i want to put the following line in the form of a single user defined gdb
command
could any one tell me how to do this , how to put these commands in  file
where to
save that file  and how can i access these lines in a single user defined
coommand
thanks



(gdb) set $i=50
(gdb) while ($i!=0)
> print ((struct node *) &SS[$i-1])->name
> set $i=$i-1
>end

_______________________________________________
Ddd mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/ddd
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.