Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Michael Chastain <mec.gnu@mindspring.com>
To: eliz@gnu.org, gdb-patches@sources.redhat.com
Subject: [rfc/testsuite/doco] deprecate.txt
Date: Fri, 10 Sep 2004 13:50:00 -0000	[thread overview]
Message-ID: <4141B12A.nail2461S2ZKE@mindspring.com> (raw)

Here is a new file, gdb/testsuite/deprecate.txt.

I think it's more useful to keep this file inside gdb/testsuite rather
than making it a section of doc/gdbint.texinfo .  Eli, is that okay with
you?

I'm also interested in comments on the four entries that I've written
so far, plus suggestions for new entries.

Michael

===

Deprecated Code in the GDB Test Suite

These coding practices are deprecated.
Avoid them in new code.

bug-gdb@prep.ai.mit.edu

    This address no longer accepts mail.  Just drop the lines in the
    header about "Please email any bugs, comments, and/or additions
    to this file to: bug-gdb@prep.ai.mit.edu".

exp_continue

    You should usually use this form:

	exp_continue -continue_timer

    The default form of "exp_continue" with no arguments resets
    the timeout timer.  This leads to infinite loops if gdb has a bug
    (and if gdb had no bugs then we would not need to test it).
    The "-continue_timer" form does not reset the timeout timer,
    so if gdb gets stuck in a loop, it will bust out soon enough.

    So if you use the default form, you need a loop counter or some
    other explicit way to make sure that the test never goes into
    an infinite loop.

gdb_suppress_entire_file

    gdb_suppress_entire_file sets funny global state.

    For gdb_compile, just do this:

	if { [gdb_compile ...] != "" } {
	    perror "Testcase compile failed" 0
	    continue
	}

send_gdb + gdb_expect

    Use gdb_test_multiple instead.


             reply	other threads:[~2004-09-10 13:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-10 13:50 Michael Chastain [this message]
2004-09-10 16:16 ` Eli Zaretskii
2004-09-10 16:28   ` Michael Chastain
2004-09-10 19:28     ` Eli Zaretskii

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=4141B12A.nail2461S2ZKE@mindspring.com \
    --to=mec.gnu@mindspring.com \
    --cc=eliz@gnu.org \
    --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