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.
The purpose of this blog is to provide a guide to Linux C (and C++) programmers as to how to use the Gnu DebuGger, GDB, effectively.
My reasons for writing this are because I participate a great deal in the Linux Questions site and view, plus respond to a number of questions in the Programming forum, and I notice that programmers of various experience seem to be lacking in either experience+knowledge, or initiative, to use the debugger.
Posted 07-14-2017 at 04:33 PM byrtmistler Updated 09-07-2017 at 09:09 AM byrtmistler
A recent blog posting highlighted to me a former shortcut.
This one is supposed to be fun and not "in your face", or "I'm smarter than you!", just some stuff that comes to mind over the years. Oddly enough, sometimes I comment about these things, to people my age, and they have no idea about them. You'd figure ... but then again, I guess we all have variations in our teachings and life experiences. I guess I also had good math teachers.
If you are a beginning programmer and have questions about how to get started, this blog entry may be helpful to guide you. If you already can edit code, compile it, run it, and debug it, then this blog entry is not for you.
This blog entry is not about Windows, MAC, graphical programming, or Integrated Development Environments (IDE).
This blog entry is intended to guide a new programmer to learn how to set-up C tools under Linux, edit and compile code, and how to debug....
Posted 12-01-2015 at 02:32 PM byrtmistler Updated 08-30-2018 at 11:43 AM byrtmistler
The added (including core dumps!) to my title is actually the main reason for me deciding to write this entry.
So very many times I see new programmers who write something, it compiles, so they run it, and then they are stumped because their programming resulted in a segment violation and possibly a core file. And now they're stuck, not knowing why this occurred and also having no real idea how to proceed.
Background - What Likely Led to This State/Situation ...
In volunteering to monitor LQ questions, I'm looking at new questions that are incomplete or just bad questions.
These are my notes intended to submit to Jeremy once this monitor period has progress sufficiently.
Update 7/27/15 - Stopping this activity. Conclusions + follow-up (some shown within) Due to my time requirements this week I likely will not have sufficient time to keep pace as I did a few days last week. Not all the questions were ideal for the canned response....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.