Review your favorite Linux distribution.
Go Back > Blogs
User Name



How To Debug Linux C Programs Effectively Using The Debugger

Posted 02-20-2019 at 02:23 PM by rtmistler
Updated 02-25-2019 at 10:23 AM by rtmistler


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.

This blog...
Attached Images
File Type: png emacs-1.png (67.5 KB, 13 views)
File Type: png emacs-2.png (42.1 KB, 10 views)
Views 1590 Comments 1 rtmistler is offline

Parser Test 3 (A Return Stack & Compiler)

Posted 01-03-2013 at 09:53 AM by rainbowsally
Updated 01-10-2013 at 06:05 PM by rainbowsally

Parser Test 3 (A Return Stack & Compiler)

A self extractor for the 'lib' files that we include for this (pretty cute) little calculator are here.

Re: the compiler part. It's not much of a compiler, but it serves as a proof of concept. (It's used internally, the program is not compiled.)

Before we dig in here, I should say...

Bug in Parser Test 2.

Posted in Uncategorized
Views 971 Comments 0 rainbowsally is offline

Parser Test 1

Posted 01-02-2013 at 08:24 PM by rainbowsally
Updated 01-02-2013 at 08:26 PM by rainbowsally

Parser Test 1


See the previous blog entry: "Playing with parsing" here.
to grab the files we need to include for these tests and a working mc2 definitions file for those who have mc2. Type "mc2 -init" first time. After that "make update" will add/remove files from the makefile.

[Note that we can link OR include...
Posted in Uncategorized
Views 1013 Comments 0 rainbowsally is offline

Playing with parsing

Posted 01-02-2013 at 07:46 PM by rainbowsally
Updated 08-06-2014 at 08:36 AM by rainbowsally (typo correction)

Playing with parsing

Today's features:
  • Creating an extensible mid-level parser that makes sense in C.
  • Looking at BNF-like syntax and C syntax similarities.
  • Tossing flex as far as we can throw it. While its still burning.

The file set here isn't 'finalized' in any way but it's been stable for a few days. These examples are therefor not about THIS set of functions but about parsing in general, although this file set will very likely be part of the mc2 parsing system...
Posted in Uncategorized
Views 954 Comments 0 rainbowsally is offline


All times are GMT -5. The time now is 06:05 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration