abhinav:
k lets get clear on a few things first.i tried to understand what each does in google but it was very obscure.
correct me if i am wrong
1)to compile a code in c we use the toolchain we built.but exactly how?how do we launch or invoke it?
gcc converts high level c-code into something the mcu can work with.
This must then be moved into the mcu:s memory,
for that we use the jtag.
abhinav:
2)what exactly is difference between openocd and gdb?which one do we use to load programs?experience tells me we used openocd to load the flas program so do we use it to load any program?
To control the jtag, we have some pc-software called OpenOCD
and that will flash/copy the code onto the mcu.
Then for debugging OpenOCD can control the inner parts and
change what is happening.
And this will be exposed thrue a gdb-server interface (that is part of OpenOCD).
abhinav:
3)what is gdb?i know its a debugger.but what does it exactly do?can we see the exact program in the board using it?in the starting of ur site u started off with installing them but did not mention what is what.so for beginners like me,its a problem to follow without knowing what it is.so if u can give a brief description or links whiv=ch dont use hifi computer language,it would be helpful to understand.
Then we use a gdb-client to connect to the gdb-server,
and that will let us control the mcu in a more human readable way.
abhinav:
4)what exactly is eclipse?some sites say it is an inevitable tool for connecting to a board and working with it.but as we did things in the past we didnot use it for anything.so why would somebody want to use it?why why wouldnt somebody want to use it?these are all basic questions for a beginner.if u can include them in the beggning,ur link would become best from very good 
so please help
Eclipse is a IDE/editor/gdb-client and more.
And most people like to have this kind of all-in-one tools,
since some things are easy to to there.
But the cost is that they usually hides some stuff from the user
(so it becomes more user friendly)
So if you like Eclipse or not is a matter of personal taste 
(but you need to understand the lower layers even thou tools like Eclipse hide them from you…)
Hope this clears a little fog for you.
BR
Joahn