Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [obv] Use existed/supported commands in mi-cmd-param-changed.exp
@ 2012-11-19 15:05 Yao Qi
  2012-11-19 15:32 ` Tom Tromey
  0 siblings, 1 reply; 3+ messages in thread
From: Yao Qi @ 2012-11-19 15:05 UTC (permalink / raw)
  To: gdb-patches

Hi,
'maint set show-debug-regs' is an i386 specific command, so it doesn't
exist on other ports, such as arm.  We'll see these errors in gdb.sum,

  ERROR: Undefined command "maint set show-debug-regs on".
  ERROR: Undefined command "maint set show-debug-regs off".

'set circular-trace-buffer' is not supported on ports other than x86
and x86_64.

This patch removes the test to remove the test to command
'maint set show-debug-regs', and replace 'set circular-trace-buffer'
with 'set remotecache' which exists on all ports.

I'll commit it in two days if no one has comments.

gdb/testsuite:

2012-11-19  Yao Qi  <yao@codesourcery.com>

	* gdb.mi/mi-cmd-param-changed.exp (test_command_param_changed):
	Don't test 'maint set show-debug-regs'.
	Use command 'set remotecache' instead of
	'set circular-trace-buffer'.
---
 gdb/testsuite/gdb.mi/mi-cmd-param-changed.exp |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/gdb/testsuite/gdb.mi/mi-cmd-param-changed.exp b/gdb/testsuite/gdb.mi/mi-cmd-param-changed.exp
index 8c2195c..7786f90 100644
--- a/gdb/testsuite/gdb.mi/mi-cmd-param-changed.exp
+++ b/gdb/testsuite/gdb.mi/mi-cmd-param-changed.exp
@@ -52,7 +52,7 @@ proc test_command_param_changed { } { with_test_prefix "cmd param" {
 	"\"set scheduler-locking stepr\" no event"
 
 
-    foreach command { "circular-trace-buffer" "check type" } {
+    foreach command { "remotecache" "check type" } {
 
 	# The default value of each command option may be different, so we first
 	# set it to 'off', and this may or may not trigger MI notification.
@@ -81,12 +81,10 @@ proc test_command_param_changed { } { with_test_prefix "cmd param" {
     }
 
     # No notification is emitted for 'maint set' commands.
-    foreach command { "profile" "show-debug-regs" } {
-	foreach boolean_opt { "on" "off" } {
-	    mi_gdb_test "maint set ${command} ${boolean_opt}" \
-		"\\&\"maint set ${command} ${boolean_opt}\\\\n\"\r\n\\^done" \
-		"\"maint set ${command} ${boolean_opt}\""
-	}
+    foreach boolean_opt { "on" "off" } {
+	mi_gdb_test "maint set profile ${boolean_opt}" \
+	    "\\&\"maint set profile ${boolean_opt}\\\\n\"\r\n\\^done" \
+	    "\"maint set profile ${boolean_opt}\""
     }
 
     # Full command parameters are included in the notification when a
-- 
1.7.7.6


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [obv] Use existed/supported commands in mi-cmd-param-changed.exp
  2012-11-19 15:05 [obv] Use existed/supported commands in mi-cmd-param-changed.exp Yao Qi
@ 2012-11-19 15:32 ` Tom Tromey
  2012-11-20  2:55   ` Yao Qi
  0 siblings, 1 reply; 3+ messages in thread
From: Tom Tromey @ 2012-11-19 15:32 UTC (permalink / raw)
  To: Yao Qi; +Cc: gdb-patches

>>>>> "Yao" == Yao Qi <yao@codesourcery.com> writes:

Yao> 2012-11-19  Yao Qi  <yao@codesourcery.com>
Yao> 	* gdb.mi/mi-cmd-param-changed.exp (test_command_param_changed):
Yao> 	Don't test 'maint set show-debug-regs'.
Yao> 	Use command 'set remotecache' instead of
Yao> 	'set circular-trace-buffer'.

Looks good to me.  Thanks.

Tom


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [obv] Use existed/supported commands in mi-cmd-param-changed.exp
  2012-11-19 15:32 ` Tom Tromey
@ 2012-11-20  2:55   ` Yao Qi
  0 siblings, 0 replies; 3+ messages in thread
From: Yao Qi @ 2012-11-20  2:55 UTC (permalink / raw)
  Cc: gdb-patches

On 11/19/2012 11:31 PM, Tom Tromey wrote:
> Yao> 2012-11-19  Yao Qi<yao@codesourcery.com>
> Yao> 	* gdb.mi/mi-cmd-param-changed.exp (test_command_param_changed):
> Yao> 	Don't test 'maint set show-debug-regs'.
> Yao> 	Use command 'set remotecache' instead of
> Yao> 	'set circular-trace-buffer'.
>
> Looks good to me.  Thanks.

Applied.

-- 
Yao (齐尧)


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-11-20  2:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-19 15:05 [obv] Use existed/supported commands in mi-cmd-param-changed.exp Yao Qi
2012-11-19 15:32 ` Tom Tromey
2012-11-20  2:55   ` Yao Qi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox