From: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
To: "'Joel Brobecker'" <brobecker@adacore.com>
Cc: <gdb-patches@sourceware.org>
Subject: RE: [RFC] move strace call to gdb_init? (away from testcase)
Date: Wed, 23 Feb 2011 09:22:00 -0000 [thread overview]
Message-ID: <000901cbd336$0a273ef0$1e75bcd0$@muller@ics-cnrs.unistra.fr> (raw)
In-Reply-To: <20110223072123.GQ2617@adacore.com>
> Runtest already does the call to strace:
>
> "--str*" { # (--strace) expect trace level
> set tracelevel $optarg
> strace $tracelevel
I looked into dejagnu history on savanna git
http://git.savannah.gnu.org/gitweb/?p=dejagnu.git;a=summary
and checked that indeed this
strace code exists at least since initial repository creation in 2001.
> So, I don't think that setting it ourselves is going to be doing
> anything. As a test, I tried with various levels of strace-ing,
> and nothing seemed to change. In particular, the output in gdb.log
> remained the same with or without.
>
> (it might have done something if each testcase script was executed
> as it own expect process, but in fact, there is only one expect
> process, and testcases are just "source"-ed)
>
> So, I think we could just nuke the thing. Alternatively, we could
> be a little extra conservative, and reset it systematically at
> the start of every testcase, JIC a testcase changes the strace
> level. The best place to do that is in proc gdb_init (lib/gdb.exp).
No testcase changes tracelevel
for now..
> WDYT?
What about removing it completely
and adding tracelevel variable to the
list of banned variables in lib/gdb.exp
currently, this list has only two items:
gdb.exp, line 2767: set banned_variables { bug_id prms_id }
just add tracelevel variable to this list
and remove all
if {$tracelevel} {
strace $tracelevel
}
from all testcases.
Pierre Muller
GDB pascal language maintainer
next prev parent reply other threads:[~2011-02-23 8:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-23 8:46 Joel Brobecker
2011-02-23 9:22 ` Pierre Muller [this message]
2011-02-23 9:29 ` Joel Brobecker
2011-02-23 14:56 ` Joel Brobecker
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='000901cbd336$0a273ef0$1e75bcd0$@muller@ics-cnrs.unistra.fr' \
--to=pierre.muller@ics-cnrs.unistra.fr \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
/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