Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: dje@google.com (Doug Evans)
To: gdb-patches@sourceware.org
Subject: [RFA] Fix to gdb.server/ext-run.exp testcase
Date: Thu, 04 Dec 2008 01:28:00 -0000	[thread overview]
Message-ID: <20081204012744.BCA4B1C7A0F@localhost> (raw)

"info os processes" on one linux I use gives:

(gdb) info os processes
pid        user       command
1          root       init [2]

The testcase currently looks for /sbin/init.

Ok to check in?

2008-12-03  Doug Evans  <dje@google.com>

	* gdb.server/ext-run.exp: Relax regexp for init program.

Index: ext-run.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.server/ext-run.exp,v
retrieving revision 1.2
diff -u -p -r1.2 ext-run.exp
--- ext-run.exp	2 Dec 2008 07:57:38 -0000	1.2
+++ ext-run.exp	4 Dec 2008 01:12:24 -0000
@@ -46,7 +46,7 @@ gdb_test "run" "Breakpoint.* main .*" "c
 
 if { [istarget *-*-linux*] } {
     # On Linux, gdbserver can also report the list of processes.
-    gdb_test "info os processes" ".*pid +user +command.*1 +root +/sbin/init.*" "get process list"
+    gdb_test "info os processes" ".*pid +user +command.*1 +root +\[/a-z\]*init.*" "get process list"
 }
 
 gdb_test "kill" "" "kill" "Kill the program being debugged.*" "y"


             reply	other threads:[~2008-12-04  1:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-04  1:28 Doug Evans [this message]
2008-12-04 16:53 ` Pedro Alves

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=20081204012744.BCA4B1C7A0F@localhost \
    --to=dje@google.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