Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Michael Elizabeth Chastain <mec@shout.net>
To: keiths@redhat.com
Cc: gdb@sources.redhat.com
Subject: Re: how to call gdb_test "" ... ?
Date: Mon, 18 Feb 2002 15:46:00 -0000	[thread overview]
Message-ID: <200202182346.g1INkKQ29986@duracef.shout.net> (raw)

Keith Seitz writes:
> Actually, I don't see from reading the code for gdb_test why "" would be
> disallowed. Is it giving you some sort of error?

gdb_test "" hangs and does not return until some 60-second timer
kicks it out.  That's probably related to the special check for "":

  set result -1
  set string "${command}\n";
  if { $command != "" } {
    ...
  }

Hmmm, this is actually documented behavior:

  # COMMAND is the command to execute, send to GDB with send_gdb.  If
      this is the null string no command is sent.

I suppose I could do this:

  send_gdb "\n"
  gdb_test "" "..."

How does that sound, Keith?  Or would you prefer me to stick with
send_gdb/gdb_expect?  Gross choice, eh?

I can't modify gdb_test; that would take me too far afield from fixing
the real problems in list.exp.

Michael C


             reply	other threads:[~2002-02-18 23:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-18 15:46 Michael Elizabeth Chastain [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-02-18 16:28 Michael Elizabeth Chastain
2002-02-18 15:33 Michael Elizabeth Chastain
2002-02-18 16:19 ` Daniel Jacobowitz
2002-02-18 14:37 Michael Elizabeth Chastain
2002-02-18 15:16 ` Daniel Jacobowitz
2002-02-18 15:32 ` Keith Seitz

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=200202182346.g1INkKQ29986@duracef.shout.net \
    --to=mec@shout.net \
    --cc=gdb@sources.redhat.com \
    --cc=keiths@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