LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-24-2011, 06:56 AM   #1
skaushal_lk
LQ Newbie
 
Registered: Jul 2010
Distribution: Ubuntu, CentOS
Posts: 27

Rep: Reputation: 4
Question [Debugging] how break points work in GDB?


Hi!!

I want to know that how the break points and watch points work in the GDB. I know the GDB works on symbol table. But would like to know more details of it. How watch points differ from break points.

Any pointers or links in this regard will be helpful.

Thanks in advance.
 
Old 03-24-2011, 08:25 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
A breakpoint is placed on a given line of program execution.

A watchpoint is placed on a variable in your current scope of execution. When that variable is read or written, the watchpoint can be used to stop execution and break into your debugger.
 
Old 03-25-2011, 08:50 AM   #3
skaushal_lk
LQ Newbie
 
Registered: Jul 2010
Distribution: Ubuntu, CentOS
Posts: 27

Original Poster
Rep: Reputation: 4
I know the usage of the break points and watch points. I want to know the internal functioning of both. How they are implemented?
 
Old 03-25-2011, 11:42 AM   #4
wje_lq
Member
 
Registered: Sep 2007
Location: Mariposa
Distribution: FreeBSD,Debian wheezy
Posts: 811

Rep: Reputation: 179Reputation: 179
Quote:
Originally Posted by skaushal_lk View Post
How they are implemented
Code:
man ptrace
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gdb (no debugging symbols found) knobby67 Programming 2 01-23-2011 09:41 PM
debugging with GDB jone kim Linux - General 2 04-13-2010 12:22 AM
Debugging Problem in Gdb akm3 Programming 5 01-01-2009 10:03 AM
gdb debugging assembly with no symbols Four Programming 5 10-01-2008 08:47 PM
How to programmatically break into gdb from gcc C++ source cj12345 Programming 7 09-16-2004 05:15 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:57 PM.

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