Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Michael Chastain <mec.gnu@mindspring.com>
To: ibr@ata.cs.hun.edu.tr, gdb-patches@sources.redhat.com
Subject: Re: testcase for "absolute source" patch
Date: Tue, 31 Aug 2004 15:01:00 -0000	[thread overview]
Message-ID: <413492EA.nailCGN1URW10@mindspring.com> (raw)
In-Reply-To: <20040827164839.GC31959@ata.cs.hun.edu.tr>

Good morning Barjaun,

More feedback.  This is all still shallow stuff.  In another 1-2 rounds,
all the shallow stuff will be fixed, and also enough of the code will
have permeated my brain that I can actually talk about the real
contents.

. The script works for me now when I run it several times in a row
  with different gdb's, gcc's, and debug formats.

. Include openp.c as a second attachment to your mail.

. ChangeLog entry

. if [is_remote host] {
    unresolved "This test script does not work on a remote host."
    return -1
  }

. error checking on calls to remote_exec

. gdb_suppress_entire_file is rotten and obsolete.
  if gdb_compile fails, just do:

    if {[gdb_compile ...] != ""} {
      perror "Testcase compile failed" 0
      return -1
    }

  and then check the return value from cdir_compile

. the convention for gdb_start and gdb_exit is to assume that the
  previous test script left a gdb running and to call gdb_exit
  first, followed by gdb_start.

. in test_bin, don't move the file back and forth -- just copy
  the file and then leave the copy in place.  disk space is cheap,
  and "mv $binfile $bin_dir ... $mv $bin_dir/$binname $binfile"
  is vulnerable to cascade failures when you call test_bin 13
  times in a row and one of them might de-synchronize.
  same with test_src.

  Or am i missing something and it will screw up some tests if
  you let the prime copies of $srcfile and $binfile exist
  all the time?

. in test_src, drop the semicolons here:

    global srcname;
    global srcfile;

. don't bother to do "remote_exec host rm $srcfile"

In general, for file handling, just create and copy things and don't
delete or move them.  That makes it easier to debug your script or debug
gdb when something doesn't work.  Just be prepared that an old copy of
something might exist, so plain "mkdir" does not work, but "mkdir -p"
is good.


  parent reply	other threads:[~2004-08-31 15:01 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-16 14:41 Baurzhan Ismagulov
2004-08-16 15:56 ` Michael Chastain
2004-08-16 18:21   ` Baurjan Ismagulov
2004-08-16 19:15 ` Michael Chastain
2004-08-16 20:38   ` Andreas Schwab
2004-08-18 13:03   ` Baurzhan Ismagulov
2004-08-18 15:31     ` Michael Chastain
2004-08-18 15:50       ` Baurzhan Ismagulov
2004-08-18 17:10         ` Michael Chastain
2004-08-18 19:00         ` Michael Chastain
2004-08-18 22:03           ` Baurjan Ismagulov
2004-08-18 22:46             ` Michael Chastain
2004-08-18 23:33             ` Michael Chastain
2004-08-19  4:03               ` Eli Zaretskii
2004-08-19  8:34                 ` Michael Chastain
2004-08-19  8:56               ` Michael Chastain
2004-08-19  9:37                 ` Baurjan Ismagulov
2004-08-19  9:34               ` Baurjan Ismagulov
2004-08-19  9:55                 ` Michael Chastain
2004-08-19 10:10                   ` Baurjan Ismagulov
2004-08-19 10:20                     ` Michael Chastain
2004-08-26 20:36                   ` Baurjan Ismagulov
2004-08-26 20:52                     ` Michael Chastain
2004-08-26 20:32               ` Baurjan Ismagulov
2004-08-27 14:16                 ` Michael Chastain
2004-08-27 16:45                   ` Baurjan Ismagulov
2004-08-29 11:56                     ` Michael Chastain
2004-08-31 15:01                     ` Michael Chastain [this message]
2004-09-25 21:12                       ` Baurjan Ismagulov
2004-08-18 15:50       ` Daniel Jacobowitz
2004-08-18 15:56         ` Baurjan Ismagulov
2004-08-18 16:04           ` Andreas Schwab

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=413492EA.nailCGN1URW10@mindspring.com \
    --to=mec.gnu@mindspring.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=ibr@ata.cs.hun.edu.tr \
    /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