From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15541 invoked by alias); 17 Sep 2013 13:07:41 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 15475 invoked by uid 89); 17 Sep 2013 13:07:40 -0000 Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 17 Sep 2013 13:07:40 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RDNS_NONE,SPF_HELO_FAIL autolearn=no version=3.3.2 X-HELO: relay1.mentorg.com Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1VLuzn-0004co-NA from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Tue, 17 Sep 2013 06:07:11 -0700 Received: from SVR-ORW-FEM-04.mgc.mentorg.com ([147.34.97.41]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Tue, 17 Sep 2013 06:07:11 -0700 Received: from qiyao.dyndns.org (147.34.91.1) by svr-orw-fem-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server id 14.2.247.3; Tue, 17 Sep 2013 06:07:10 -0700 From: Yao Qi To: Subject: [PATCH 3/4] Transform \r\n in MI variables Date: Tue, 17 Sep 2013 13:07:00 -0000 Message-ID: <1379423179-8515-4-git-send-email-yao@codesourcery.com> In-Reply-To: <1379423179-8515-1-git-send-email-yao@codesourcery.com> References: <87a9ldyu8k.fsf@fleche.redhat.com> <1379423179-8515-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2013-09/txt/msg00499.txt.bz2 The previous patch can't transform \r\n in variables, so this patch update these variables which have \r\n in MI. gdb/testsuite: 2013-09-17 Yao Qi * lib/mi-support.exp (mi_gdb_prompt): Replace "\r\n" with "\r+\n". (thread_selected_re): Likewise. (gdbindex_warning_re): Likewise. (library_loaded_re): Likewise. (breakpoint_re): Likewise. --- gdb/testsuite/lib/mi-support.exp | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gdb/testsuite/lib/mi-support.exp b/gdb/testsuite/lib/mi-support.exp index a9b22c2..86f91ac 100644 --- a/gdb/testsuite/lib/mi-support.exp +++ b/gdb/testsuite/lib/mi-support.exp @@ -21,7 +21,7 @@ # Set it if it is not already set. global mi_gdb_prompt if ![info exists mi_gdb_prompt] then { - set mi_gdb_prompt "\[(\]gdb\[)\] \r\n" + set mi_gdb_prompt "\[(\]gdb\[)\] \r+\n" } global mi_inferior_spawn_id @@ -29,10 +29,10 @@ global mi_inferior_tty_name set MIFLAGS "-i=mi" -set thread_selected_re "=thread-selected,id=\"\[0-9\]+\"\r\n" -set gdbindex_warning_re "&\"warning: Skipping \[^\r\n\]+ \.gdb_index section in \[^\r\n\]+\"\r\n(?:&\"\\\\n\"\r\n)?" -set library_loaded_re "=library-loaded\[^\n\]+\"\r\n(?:$gdbindex_warning_re)?" -set breakpoint_re "=(?:breakpoint-created|breakpoint-deleted)\[^\n\]+\"\r\n" +set thread_selected_re "=thread-selected,id=\"\[0-9\]+\"\r+\n" +set gdbindex_warning_re "&\"warning: Skipping \[^\r\n\]+ \.gdb_index section in \[^\r\n\]+\"\r+\n(?:&\"\\\\n\"\r+\n)?" +set library_loaded_re "=library-loaded\[^\n\]+\"\r+\n(?:$gdbindex_warning_re)?" +set breakpoint_re "=(?:breakpoint-created|breakpoint-deleted)\[^\n\]+\"\r+\n" # # mi_gdb_exit -- exit the GDB, killing the target program if necessary -- 1.7.7.6