From: Wenbo Yang <wenbo.yang@simplnano.com>
To: qinwei@sunnorth.com.cn
Cc: gdb@sourceware.org
Subject: Re:GDB infinite loop when stepping on "while (1) i++;"
Date: Thu, 22 Mar 2007 08:58:00 -0000 [thread overview]
Message-ID: <46024522.7090007@simplnano.com> (raw)
> (gdb) n
> 4 while (1) i++;
> (gdb) n
I think there is nothing wrong. You let GDB next, it next. And your line is a infinite loop, so it never stops.
If "while (1) i++;" in you source code is put in a line. I think the debugging information should be a line. If not, maybe you compiler has problems. It is different with a single line function, i.e. "int a() {}".
If you want to step into, why not use "step"?
Wenbo
--
Wenbo Yang
SimpLight Nanoelectronics Ltd.
next reply other threads:[~2007-03-22 8:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-22 8:58 Wenbo Yang [this message]
2007-03-22 9:04 ` GDB " Wenbo Yang
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=46024522.7090007@simplnano.com \
--to=wenbo.yang@simplnano.com \
--cc=gdb@sourceware.org \
--cc=qinwei@sunnorth.com.cn \
/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