Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General > LQ Articles Discussion
User Name
LQ Articles Discussion This forum is for the discussion of content posted to the Articles and Editorials section.


  Search this Thread
Old 07-27-2006, 05:19 PM   #1
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
DISCUSSION: Debugging with GDB (Part 1)

This thread is to discuss the article titled:
Debugging with GDB (Part 1)

The GNU Debugger (GDB for short) is a powerful tool in the debugging of programs written in C, C++, and many other languages. This article will cover an introduction to debugging C applications using GDB.
Old 07-28-2006, 10:43 AM   #2
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Thanks. I've never used gdb before (and it looked scary), so that was a nice introduction . It might just be me, but the "#include" lines don't look complete. Shouldn't they read something like "#include <foobar.h>"? At first I thought that was intentional, but if it was, it wasn't picked up by gcc or gdb. Did I miss something?

Last edited by Nylex; 07-28-2006 at 10:45 AM.
Old 07-20-2009, 07:17 AM   #3
Registered: Aug 2006
Distribution: Linux MINT
Posts: 34

Rep: Reputation: 15
its not working in Solaris .
man gcc
man gdb
are giving absolutely no output -> no manul entry found.

Last edited by BHABANIPRASADPATI; 07-21-2009 at 01:22 AM. Reason: I tried the above in Solaris, not working
Old 10-21-2011, 09:46 AM   #4
LQ Newbie
Registered: Oct 2011
Posts: 1

Rep: Reputation: Disabled
AH...a helpul intro to gdb...!!
Old 11-09-2016, 10:33 PM   #5
Registered: Jun 2016
Distribution: Ubuntu
Posts: 64

Rep: Reputation: Disabled
Exclamation It giving output

I didn't get segmentation fault, even iam not put any
return 0
.Its giving same output to me


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
fortran debugging question with g77 and gdb miasmak Programming 1 08-16-2006 07:03 AM
Help debugging with gdb and core files Programming 1 05-28-2005 04:58 AM
gdb crashes when debugging pthread-ed program tbruer1138 Programming 0 04-21-2005 05:38 PM
gdb problem during debugging xine crash ... rs_javadi Linux - Software 0 08-24-2004 06:25 AM
Multi-thread debugging with gdb on RedHat 9.0 Rodney Riggs Linux - Software 0 09-23-2003 04:34 PM > Forums > Linux Forums > Linux - General > LQ Articles Discussion

All times are GMT -5. The time now is 08:27 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
Open Source Consulting | Domain Registration