This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
RE: GDB Query
- From: "Monika Chaddha" <monika at acmet dot com>
- To: "'Vikas S'" <vikas_s40 at hotmail dot com>
- Cc: <gdb at sources dot redhat dot com>
- Date: Tue, 6 Jul 2004 18:33:46 +0530
- Subject: RE: GDB Query
>-----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