From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32114 invoked by alias); 6 Jul 2004 13:21:58 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 32104 invoked from network); 6 Jul 2004 13:21:52 -0000 Received: from unknown (HELO alice.acmet.com) (61.16.238.202) by sourceware.org with SMTP; 6 Jul 2004 13:21:52 -0000 Received: from monika (localhost [127.0.0.1]) by alice.acmet.com (8.11.6/8.11.6) with ESMTP id i66DBDE16640; Tue, 6 Jul 2004 18:41:17 +0530 From: "Monika Chaddha" To: "'Vikas S'" Cc: Subject: RE: GDB Query Date: Tue, 06 Jul 2004 13:21:00 -0000 Message-ID: <006601c46359$aec016c0$5100a8c0@monika> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit In-Reply-To: X-SW-Source: 2004-07/txt/msg00038.txt.bz2 >-----Original Message----- >From: Vikas S [mailto:vikas_s40@hotmail.com] >Sent: Tuesday, July 06, 2004 4:56 PM >To: monika@acmet.com >Subject: RE: GDB Query > > >Please note that I'm not aware of the full function flow and this is >precisely >what I'm trying to find out by putting breaks. > What I understand till now form your mails that u r debugging some source code and want to understand the exact flow. GDB is really nice to do this. Use DDD as a GUI for GDB, it will help u. Put break point in main and in functions or lines which u suspect can be part of flow. Use next/step (to go inside functions) commands Try this; this will help u a lot. Try up and down during debugging, it will show flow. By doing this u can find more places to put breakpoints. Preferably use 'step' command and go inside functions, it will show u the full flow. Try this and tell me status or any problem if u face. Cheers Monika