From: Michael Elizabeth Chastain <mec@shout.net>
To: ac131313@redhat.com, andwes-8@student.luth.se
Cc: gdb@sources.redhat.com
Subject: Re: thread debugging problem
Date: Mon, 15 Sep 2003 14:36:00 -0000 [thread overview]
Message-ID: <200309151436.h8FEaeK3014470@duracef.shout.net> (raw)
aw> I've switched to redhat9 and now I get thread info, but I'm having other
aw> problems instead. Strange behaviour which I believe shouldn't happen.
aw> When I step forward in the code it seems to be running into somekind of
aw> loop running the same lines of code several times when it shouldn't, as
aw> you can see in the gdb session below. This is with gdb 5.3.91 but I saw
aw> the same behaviour with 5.3 on my gentoo box at home.
This is normal gdb behavior when the code is optimized
(compiled with -O or -O1 or -O2 or -O3). The compiler interleaves
instructions from different source lines to improve performance.
You can get used to it, which takes a few days, or you can
compile your code with -O0 and get simpler "next" behavior
at the cost of more object code.
Michael C
next reply other threads:[~2003-09-15 14:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-15 14:36 Michael Elizabeth Chastain [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-09-11 17:09 Andreas Westin
2003-09-11 17:13 ` Elena Zannoni
2003-09-12 7:18 ` Andreas Westin
2003-09-12 14:30 ` Daniel Jacobowitz
2003-09-12 14:49 ` Andreas Westin
2003-09-14 23:48 ` Andrew Cagney
2003-09-15 13:10 ` Andreas Westin
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=200309151436.h8FEaeK3014470@duracef.shout.net \
--to=mec@shout.net \
--cc=ac131313@redhat.com \
--cc=andwes-8@student.luth.se \
--cc=gdb@sources.redhat.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).