From: Keith Seitz <keiths@redhat.com>
To: "gdb-patches@sourceware.org ml" <gdb-patches@sourceware.org>
Subject: [RFA/testsuite] Remove unused globals in mi-simplerun.exp
Date: Tue, 15 Apr 2014 18:53:00 -0000 [thread overview]
Message-ID: <534D800D.10800@redhat.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 412 bytes --]
Hi,
I noticed this little cleanup while preparing my big[ger] test suite
cleanup.
Keith
testsuite/ChangeLog
2014-04-15 Keith Seitz <keiths@redhat.com>
* gdb.mi/mi-simplerun.exp (test_breakpoints_creation_and_listing):
Remove unused globals.
(test_running_the_program): Likewise.
(test_controlled_execution): Likewise.
(test_controlling_breakpoints): Likewise.
(test_program_termination): Likewise.
[-- Attachment #2: mi-simplerun.exp-cleanups.patch --]
[-- Type: text/x-patch, Size: 1329 bytes --]
diff --git a/gdb/testsuite/gdb.mi/mi-simplerun.exp b/gdb/testsuite/gdb.mi/mi-simplerun.exp
index 7d4c49b..7d5baa6 100644
--- a/gdb/testsuite/gdb.mi/mi-simplerun.exp
+++ b/gdb/testsuite/gdb.mi/mi-simplerun.exp
@@ -45,7 +45,6 @@ mi_gdb_reinitialize_dir $srcdir/$subdir
mi_gdb_load ${binfile}
proc test_breakpoints_creation_and_listing {} {
- global mi_gdb_prompt
global srcfile
global hex
@@ -92,9 +91,6 @@ proc test_breakpoints_creation_and_listing {} {
}
proc test_running_the_program {} {
- global mi_gdb_prompt
- global hex
-
set line_main_head [gdb_get_line_number "main ("]
set line_main_body [expr $line_main_head + 2]
@@ -112,7 +108,6 @@ proc test_running_the_program {} {
}
proc test_controlled_execution {} {
- global mi_gdb_prompt
global hex
set line_callee4_head [gdb_get_line_number "callee4 ("]
@@ -156,8 +151,6 @@ proc test_controlled_execution {} {
}
proc test_controlling_breakpoints {} {
- global mi_gdb_prompt
-
# Enable, delete, set ignore counts in breakpoints
# (disable was already tested above)
# Tests:
@@ -169,8 +162,6 @@ proc test_controlling_breakpoints {} {
}
proc test_program_termination {} {
- global mi_gdb_prompt
-
# Run to completion: normal and forced
# Tests:
# -exec-abort
next reply other threads:[~2014-04-15 18:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-15 18:53 Keith Seitz [this message]
2014-04-15 19:03 ` Pedro Alves
2014-04-15 19:28 ` 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=534D800D.10800@redhat.com \
--to=keiths@redhat.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