Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Yao Qi <yao@codesourcery.com>
To: gdb-patches@sourceware.org
Subject: [testsuite, patch] Match __uClibc_main in ending-run.exp
Date: Wed, 01 Jun 2011 15:02:00 -0000	[thread overview]
Message-ID: <4DE65451.1080500@codesourcery.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 270 bytes --]

I got a FAIL in gdb.base/ending-run.exp on a port using uclibc when
matching output of "step out of main".  Different outputs on different
system/libraries are considered, but uclibc is not.  This patch is to
match __uClibc_main for uclibc.

OK?

-- 
Yao (齐尧)

[-- Attachment #2: ending_run_uclibc.patch --]
[-- Type: text/x-patch, Size: 707 bytes --]

2011-06-01  Yao Qi  <yao@codesourcery.com>

	gdb/testsuite/
	* gdb.base/ending-run.exp: Match __uClibc_main for uClibc. 

diff --git a/gdb/testsuite/gdb.base/ending-run.exp b/gdb/testsuite/gdb.base/ending-run.exp
index 9d1134d..0098f04 100644
--- a/gdb/testsuite/gdb.base/ending-run.exp
+++ b/gdb/testsuite/gdb.base/ending-run.exp
@@ -195,6 +195,10 @@ gdb_test_multiple "next" "step out of main" {
     -re ".*Program received signal SIGTRAP.*$gdb_prompt $" {
         pass "step out of main"
     }
+    -re ".*in.*__uClibc_main.*$gdb_prompt $" {
+	# This is what happens on system using uClibc.
+	pass "step out of main"
+    }
 }
 
 # When we're talking to a program running on a real stand-alone board,

             reply	other threads:[~2011-06-01 15:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-01 15:02 Yao Qi [this message]
2011-06-01 15:16 ` Pedro Alves
2011-06-01 15:57   ` [committed] " Yao Qi

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=4DE65451.1080500@codesourcery.com \
    --to=yao@codesourcery.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