From patchwork Thu Jun 26 07:54:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yao Qi X-Patchwork-Id: 1756 Received: (qmail 8416 invoked by alias); 26 Jun 2014 07:56:48 -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 8405 invoked by uid 89); 26 Jun 2014 07:56:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL, BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com 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; Thu, 26 Jun 2014 07:56:45 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1X04Xy-0001di-Iz from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Thu, 26 Jun 2014 00:56:42 -0700 Received: from SVR-ORW-FEM-06.mgc.mentorg.com ([147.34.97.120]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Thu, 26 Jun 2014 00:56:42 -0700 Received: from qiyao.dyndns.org.com (147.34.91.1) by SVR-ORW-FEM-06.mgc.mentorg.com (147.34.97.120) with Microsoft SMTP Server id 14.2.247.3; Thu, 26 Jun 2014 00:56:41 -0700 From: Yao Qi To: Subject: [PATCH OBV] Typo fix in signal_pass initialization Date: Thu, 26 Jun 2014 15:54:42 +0800 Message-ID: <1403769282-29062-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 X-IsSubscribed: yes When I read the code, I happen to see this: signal_pass = (unsigned char *) xmalloc (sizeof (signal_program[0]) * numsigs); ^^^^^^^^^^^^^^ It is a typo, and this patch is to fix it. Patch is pushed in. gdb: 2014-06-26 Yao Qi * infrun.c (_initialize_infrun): Replace "signal_program[0]" with "signal_pass[0]" in the initialization of signal_pass. --- gdb/ChangeLog | 5 +++++ gdb/infrun.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 462afed..66484b5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-06-26 Yao Qi + + * infrun.c (_initialize_infrun): Replace "signal_program[0]" + with "signal_pass[0]" in the initialization of signal_pass. + 2014-06-25 Markus Metzger * record-btrace.c (record_btrace_generating_corefile) diff --git a/gdb/infrun.c b/gdb/infrun.c index 5f586c5..3c58ff2 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -7343,7 +7343,7 @@ leave it stopped or free to run as needed."), signal_catch = (unsigned char *) xmalloc (sizeof (signal_catch[0]) * numsigs); signal_pass = (unsigned char *) - xmalloc (sizeof (signal_program[0]) * numsigs); + xmalloc (sizeof (signal_pass[0]) * numsigs); for (i = 0; i < numsigs; i++) { signal_stop[i] = 1;