From: Orjan Friberg <orjan.friberg@axis.com>
To: gdb-patches@sources.redhat.com
Subject: schedlock.exp questions
Date: Tue, 24 Aug 2004 14:51:00 -0000 [thread overview]
Message-ID: <412B55E1.7040803@axis.com> (raw)
I'm having problems with my upcoming CRISv32 target on schedlock.exp
that I can't figure out (the existing CRIS target is all PASS). (For
reference, the CRIS target has software single-step and is running Linux
2.4.22; the CRISv32 target has hardware single-step and is running Linux
2.6.6.)
From what I've understood from looking at the remote communication,
"set scheduler-locking off/on" just translates into whether the vCont
packet specifies a default action for the other threads.
First off, the "step without lock does not change thread" test doesn't
make any sense to me. If we're stepping without scheduling lock, then
isn't the thread *allowed* to change? Unless I've misunderstood,
shouldn't both "changed thread" and "didn't change thread" be OK in this
case?
Second, if the thread *did* change when it shouldn't (when the sheduling
lock is on), wouldn't it make sense to continue with whatever thread we
end up with? Like this:
if {$curthread == $newthread} {
pass "continue with lock does not change thread"
} else {
fail "continue with lock does not change thread (switched to
thread $newthread)"
+ # If the thread changed, well, we have to live with that.
+ set curthread $newthread
}
--
Orjan Friberg
Axis Communications
next reply other threads:[~2004-08-24 14:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-24 14:51 Orjan Friberg [this message]
2004-08-24 14:55 ` Daniel Jacobowitz
2004-08-25 15:11 ` Orjan Friberg
2004-08-25 16:03 ` Daniel Jacobowitz
2004-08-27 13:59 ` Orjan Friberg
2004-08-31 14:41 ` Orjan Friberg
2004-09-07 12:48 ` Orjan Friberg
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=412B55E1.7040803@axis.com \
--to=orjan.friberg@axis.com \
--cc=gdb-patches@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