From patchwork Fri Jan 15 08:51:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yao Qi X-Patchwork-Id: 10389 Received: (qmail 43176 invoked by alias); 15 Jan 2016 08:51:44 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 43159 invoked by uid 89); 15 Jan 2016 08:51:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=4312, sk:section, 2016-01-15, 20160115 X-HELO: mail-pa0-f46.google.com Received: from mail-pa0-f46.google.com (HELO mail-pa0-f46.google.com) (209.85.220.46) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 15 Jan 2016 08:51:40 +0000 Received: by mail-pa0-f46.google.com with SMTP id cy9so391759739pac.0 for ; Fri, 15 Jan 2016 00:51:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=V4jM56LGKd71eSAd5VHGq7Jhk2qpk2/9IJZCrOjN7qE=; b=hPXRrbnB2/mKKfkA/oYMkTKMuakF+95NNDzl22WFuxjFV890YYY5WGhl8YiZrfC6sN ST25+/ZlAw9y6djRbInv/xOyvJqhDQYgwcOjCDiLtVmYNXVaDVFQhA5fqnsHvMzPpp6y HrDPkLA9dGAR12NM1OtKD5hO6R00GxJkNs4iG6HYq7rp/UR3qiYoELd8yL7LnKALhBRN ppHxNGJbyzr5NhMeH7Dr5bKaxxautOHioQnyDnepvbpqCFSgUqr3RqzOz8aKYGHiq3yD kSDrtmcFrN1XjcXUBvgqX13VUhSczTM+GDfAin3WUn1njV+9vyWzXNh5/qT25s6VEz9t JoNQ== X-Gm-Message-State: ALoCoQkfZZQfDXxKgoPlQj7w6cPnyb17NaBM8EOHBClJITqNvHBFB3QMp3mu25OE8Jk/OcmbJKfWaRZhPTYjhnffMqDnNHeEhg== X-Received: by 10.67.14.74 with SMTP id fe10mr13319342pad.151.1452847899036; Fri, 15 Jan 2016 00:51:39 -0800 (PST) Received: from E107787-LIN.cambridge.arm.com (gcc1-power7.osuosl.org. [140.211.15.137]) by smtp.gmail.com with ESMTPSA id ya4sm14127087pab.22.2016.01.15.00.51.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 15 Jan 2016 00:51:38 -0800 (PST) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Subject: [PATCH] [testsuite] @progbits -> %progbits Date: Fri, 15 Jan 2016 08:51:35 +0000 Message-Id: <1452847895-1528-1-git-send-email-yao.qi@linaro.org> X-IsSubscribed: yes The ARM assembler has "@" as a comment character, so there are compile errors in {py,scm}-section-script.c, gdb compile failed, /tmp/ccHEzYqy.s: Assembler messages: /tmp/ccHEzYqy.s:19: Error: junk at end of line, first unrecognized character is `,' /tmp/ccHEzYqy.s:24: Error: junk at end of line, first unrecognized character is `,' /tmp/ccHEzYqy.s:29: Error: junk at end of line, first unrecognized character is `,' /tmp/ccHEzYqy.s:41: Error: junk at end of line, first unrecognized character is `,' This patch replaces @progbits with %progbits. gdb/testsuite: 2016-01-15 Yao Qi * gdb.guile/scm-section-script.c: Replace @progbits with %progbits. * gdb.python/py-section-script.c: Likewise. --- gdb/testsuite/gdb.guile/scm-section-script.c | 8 ++++---- gdb/testsuite/gdb.python/py-section-script.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gdb/testsuite/gdb.guile/scm-section-script.c b/gdb/testsuite/gdb.guile/scm-section-script.c index ddd4538..0f19613 100644 --- a/gdb/testsuite/gdb.guile/scm-section-script.c +++ b/gdb/testsuite/gdb.guile/scm-section-script.c @@ -21,12 +21,12 @@ /* Put the path to the pretty-printer script in .debug_gdb_scripts so gdb will automagically loaded it. Normally "MS" would appear here, as in - .pushsection ".debug_gdb_scripts", "MS",@progbits,1 + .pushsection ".debug_gdb_scripts", "MS",%progbits,1 but we remove it to test files appearing twice in the section. */ #define DEFINE_GDB_SCRIPT(script_name) \ asm("\ -.pushsection \".debug_gdb_scripts\", \"S\",@progbits\n\ +.pushsection \".debug_gdb_scripts\", \"S\",%progbits\n\ .byte " XSTRING (SECTION_SCRIPT_ID_SCHEME_FILE) "\n\ .asciz \"" script_name "\"\n\ .popsection \n\ @@ -43,12 +43,12 @@ DEFINE_GDB_SCRIPT (SCRIPT_FILE) /* Inlined scripts are harder to create in the same way as DEFINE_GDB_SCRIPT_FILE. Keep things simple and just define it here. Normally "MS" would appear here, as in - .pushsection ".debug_gdb_scripts", "MS",@progbits,1 + .pushsection ".debug_gdb_scripts", "MS",%progbits,1 but we remove it to test scripts appearing twice in the section. */ #define DEFINE_GDB_SCRIPT_TEXT \ asm( \ -".pushsection \".debug_gdb_scripts\", \"S\",@progbits\n" \ +".pushsection \".debug_gdb_scripts\", \"S\",%progbits\n" \ ".byte " XSTRING (SECTION_SCRIPT_ID_SCHEME_TEXT) "\n" \ ".ascii \"gdb.inlined-script\\n\"\n" \ ".ascii \"(define test-cmd\\n\"\n" \ diff --git a/gdb/testsuite/gdb.python/py-section-script.c b/gdb/testsuite/gdb.python/py-section-script.c index 298698d..eb689a7 100644 --- a/gdb/testsuite/gdb.python/py-section-script.c +++ b/gdb/testsuite/gdb.python/py-section-script.c @@ -21,12 +21,12 @@ /* Put the path to the pretty-printer script in .debug_gdb_scripts so gdb will automagically loaded it. Normally "MS" would appear here, as in - .pushsection ".debug_gdb_scripts", "MS",@progbits,1 + .pushsection ".debug_gdb_scripts", "MS",%progbits,1 but we remove it to test files appearing twice in the section. */ #define DEFINE_GDB_SCRIPT_FILE(script_name) \ asm("\ -.pushsection \".debug_gdb_scripts\", \"S\",@progbits\n\ +.pushsection \".debug_gdb_scripts\", \"S\",%progbits\n\ .byte " XSTRING (SECTION_SCRIPT_ID_PYTHON_FILE) "\n\ .asciz \"" script_name "\"\n\ .popsection\n\ @@ -43,12 +43,12 @@ DEFINE_GDB_SCRIPT_FILE (SCRIPT_FILE) /* Inlined scripts are harder to create in the same way as DEFINE_GDB_SCRIPT_FILE. Keep things simple and just define it here. Normally "MS" would appear here, as in - .pushsection ".debug_gdb_scripts", "MS",@progbits,1 + .pushsection ".debug_gdb_scripts", "MS",%progbits,1 but we remove it to test scripts appearing twice in the section. */ #define DEFINE_GDB_SCRIPT_TEXT \ asm( \ -".pushsection \".debug_gdb_scripts\", \"S\",@progbits\n" \ +".pushsection \".debug_gdb_scripts\", \"S\",%progbits\n" \ ".byte " XSTRING (SECTION_SCRIPT_ID_PYTHON_TEXT) "\n" \ ".ascii \"gdb.inlined-script\\n\"\n" \ ".ascii \"class test_cmd (gdb.Command):\\n\"\n" \