Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Restore original GDB prompt in define.exp
@ 2019-07-03 13:35 Richard Bunt
       [not found] ` <87lfxfjiz6.fsf@tromey.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Bunt @ 2019-07-03 13:35 UTC (permalink / raw)
  To: gdb-patches; +Cc: nd

define.exp will fail on a GDB which has set a custom prompt to identify
itself.  This is because the test resets the prompt to a hard coded
"(gdb)" but then verifies the success of this against the value in
$gdb_prompt, which is set to the custom prompt.

define.exp has been modified to reset the prompt to $gdb_prompt rather
than a hard coded "(gdb)".

Regression tested with GCC 7.3.0 on x86_64, ppc64le, aarch64.

gdb/testsuite/ChangeLog:

2019-06-08  Richard Bunt  <richard.bunt@arm.com>
	Stephen Roberts  <stephen.roberts@arm.com>

	* gdb.base/define.exp: Restore original prompt.

Change-Id: Ie1b883be7cd77f2208ef9db6eadde1fd0d6a4e53
---
 gdb/testsuite/gdb.base/define.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/testsuite/gdb.base/define.exp b/gdb/testsuite/gdb.base/define.exp
index 0590da9..7bd4b7e 100644
--- a/gdb/testsuite/gdb.base/define.exp
+++ b/gdb/testsuite/gdb.base/define.exp
@@ -292,7 +292,7 @@ gdb_test_multiple "set prompt \\(blah\\) " "set gdb_prompt" {
     }
 }
 
-gdb_test_multiple "set prompt \\(gdb\\) " "reset gdb_prompt" {
+gdb_test_multiple "set prompt $gdb_prompt " "reset gdb_prompt" {
     -re "$gdb_prompt $" {
 	pass "reset gdb_prompt"
     }
-- 
2.7.4

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

end of thread, other threads:[~2019-07-04 14:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-03 13:35 [PATCH] Restore original GDB prompt in define.exp Richard Bunt
     [not found] ` <87lfxfjiz6.fsf@tromey.com>
2019-07-03 14:49   ` Andreas Schwab
2019-07-04 14:22     ` Richard Bunt

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