From: Nick Roberts <nickrob@snap.net.nz>
To: Andrew Cagney <cagney@gnu.org>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [PATCH] interpreter_exec_cmd (interps.c)
Date: Thu, 27 Jan 2005 10:14:00 -0000 [thread overview]
Message-ID: <16888.48390.143184.58853@farnswood.snap.net.nz> (raw)
In-Reply-To: <41F66552.4010909@gnu.org>
> Hmm, another example is:
>
> (gdb) interpreter console help foo
>
Well it needs to be: interpreter console "help foo"
> Can you create a new minimal test "gdb.base/interpreter.exp" to sanity
> check one of the above (and add anything else that takes your fancy :-)
>
> Be sure to check that the test actually fails without the test (and
> don't forget to mention the system it was tested on). Consider that
> pre-approved.
Something like below? It might be a good idea to include more of the output
for -var-update but I couldn't work out how to handle the newlines. I chose
'show version' since is a two word command (= more careful parsing required).
I can't think of any sensible further tests at the moment but its easy to add
more later.
Nick
# Copyright 2005 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# interp.exp Test interpreter-exec command
if $tracelevel then {
strace $tracelevel
}
gdb_start
gdb_test "interpreter-exec mi \"-var-update *\"\n" "\\^done,changelist=[].*"
gdb_test "interpreter-exec console \"show version\"\n" "GNU gdb .*"
gdb_exit
next prev parent reply other threads:[~2005-01-27 10:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-25 10:15 Nick Roberts
2005-01-25 15:28 ` Andrew Cagney
2005-01-26 10:19 ` Nick Roberts
2005-01-27 10:14 ` Nick Roberts [this message]
2005-02-02 16:21 ` Andrew Cagney
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=16888.48390.143184.58853@farnswood.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=cagney@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