PDA

View Full Version : Getting back from a method in gcc...


YourSurrogateGod
November 23rd, 2005, 10:43 AM
Ok, I've read the man helper pages in gdb, but can't seem to find this feature that works well (which makes it difficult for me to switch over to Linux development completely when I know that it works well in .NET :( .) What I'm trying to do is be able to return back from an existing method. For example, you're doing C++ development and you're using STL, you go through a linked list (accidentally) and you're in the header list file. In .NET all you have to do is press Shift+F11 and you can step out of the method, but how do you do that in gdb? I can't find that feature in that debugger. Anyone know what it is?

Roptaty
November 23rd, 2005, 11:13 AM
I think the command you are looking for is: finish

YourSurrogateGod
November 26th, 2005, 03:56 PM
I think the command you are looking for is: finish
Ya, that did the trick, thanks. One more question, how do you set a break point in a specific file?

Roptaty
November 26th, 2005, 10:38 PM
b filename:linenumber

YourSurrogateGod
November 26th, 2005, 10:43 PM
b filename:linenumber
Thanks again.