public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Nikola Kolev <nak26@drexel.edu>
To: mohanlal jangir <mohanlaljangir@hotmail.com>
Cc: gdb@sources.redhat.com
Subject: Re: gdb shows source line multiple times before executing !!
Date: Thu, 24 Jul 2003 14:39:00 -0000	[thread overview]
Message-ID: <3F1FEF06.20507@drexel.edu> (raw)
In-Reply-To: <Law11-OE34rOE9TuHZn00002f06@hotmail.com>

the executable is probably optimized (gcc/g++ -O2 ...)

mohanlal jangir wrote:

>While single stepping with gdb, quite frequently I see sorce lines appearing
>multiple times i.e. gdb shows some line that will be executed on command
>"next", but that is actully not. After next "next" command, I see same line
>appearing. This happens two or three times and then finally that line is
>executed.
>
>gdb --version command gives following output:
>GNU gdb Red Hat Linux 7.x (5.0rh-15) (MI_OUT)
>Copyright 2001 Free Software Foundation, Inc.
>GDB is free software, covered by the GNU General Public License, and you are
>welcome to change it and/or distribute copies of it under certain
>conditions.
>Type "show copying" to see the conditions.
>There is absolutely no warranty for GDB.  Type "show warranty" for details.
>This GDB was configured as "i386-redhat-linux".
>
>
>Regards
>Mohanlal
>
>  
>

  reply	other threads:[~2003-07-24 14:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-24 14:28 mohanlal jangir
2003-07-24 14:39 ` Nikola Kolev [this message]
2003-07-24 14:44   ` mohanlal jangir
2003-07-24 14:48     ` Daniel Jacobowitz
2003-07-24 14:56       ` mohanlal jangir
2003-07-24 15:17         ` Nikola Kolev
2003-07-24 15:20         ` Daniel Jacobowitz
2003-07-24 15:53           ` Doug Evans
2003-07-24 15:20         ` Elena Zannoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F1FEF06.20507@drexel.edu \
    --to=nak26@drexel.edu \
    --cc=gdb@sources.redhat.com \
    --cc=mohanlaljangir@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).