From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9358 invoked by alias); 16 Apr 2013 11:51:20 -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 9346 invoked by uid 89); 16 Apr 2013 11:51:20 -0000 X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL autolearn=ham version=3.3.1 Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 16 Apr 2013 11:51:18 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1US4Pt-0006gn-3u from Muhammad_Bilal@mentor.com for gdb-patches@sourceware.org; Tue, 16 Apr 2013 04:51:17 -0700 Received: from SVR-IES-FEM-01.mgc.mentorg.com ([137.202.0.104]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 16 Apr 2013 04:51:17 -0700 Received: from [137.202.157.37] (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server (TLS) id 14.1.289.1; Tue, 16 Apr 2013 12:51:15 +0100 Message-ID: <516D3B30.6080501@codesourcery.com> Date: Tue, 16 Apr 2013 15:45:00 -0000 From: mbilal User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Subject: [patch] patch for review of PR gdb/10462 Content-Type: multipart/mixed; boundary="------------000409030900040109090405" X-Virus-Found: No X-SW-Source: 2013-04/txt/msg00472.txt.bz2 --------------000409030900040109090405 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Content-length: 126 Hi, please find attached, proposed patch for PR gdb/10462 that is, argument must be preceded by space. Thanks, -Bilal --------------000409030900040109090405 Content-Type: text/x-patch; name="Pr10462.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Pr10462.diff" Content-length: 1237 Index: cli/cli-decode.c =================================================================== RCS file: /cvs/src/src/gdb/cli/cli-decode.c,v retrieving revision 1.118 diff -u -p -r1.118 cli-decode.c --- cli/cli-decode.c 10 Apr 2013 15:11:12 -0000 1.118 +++ cli/cli-decode.c 16 Apr 2013 11:49:40 -0000 @@ -1556,6 +1556,9 @@ lookup_cmd (const char **line, struct cm } else { + if (strlen(*line) != 0 && c->type == set_cmd && **line != ' ' ) + error (_("Argument must be preceded by space.")); + /* We've got something. It may still not be what the caller wants (if this command *needs* a subcommand). */ while (**line == ' ' || **line == '\t') Index: ChangeLog =================================================================== RCS file: /cvs/src/src/gdb/ChangeLog,v retrieving revision 1.15421 diff -u -p -r1.15421 ChangeLog --- ChangeLog 15 Apr 2013 23:53:37 -0000 1.15421 +++ ChangeLog 16 Apr 2013 11:45:38 -0000 @@ -1,3 +1,8 @@ +2013-04-16 Muhammad Bilal + + PR gdb/10462 + * cli/cli-decode.c (lookup_command): Checked a space before argument. + 2013-04-15 Doug Evans * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu". --------------000409030900040109090405--