[SOLVED] how to get gdb to step thru called functions
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Trying to use gdb to check on code, but when I use -tui and reach a function call, I am unable to evaluate what happens in the called function-----it simply stays in main with the returned value.
Anyone who understands my problem and can provide what I need to do to correct this?
NevemTeve;
Yes, that was very helpful. Unfortunately, it didn't help me with my code problem, but that's for tomorrow to try to figure what's wrong.
I've always tried to avoid the 's'tep command, as the code shown is way over my head. But that combination will be very helpful to me in the future.
I think you want to be prudent about where you step over functions, and where you step into functions. Stepping into library functions like Standard C Lib functions or third party API functions is usually not helpful. Stepping into the functions you create for your own project is more likely to be useful.
--- rod.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.