From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23054 invoked by alias); 23 Jul 2012 18:38:47 -0000 Received: (qmail 23046 invoked by uid 22791); 23 Jul 2012 18:38:46 -0000 X-SWARE-Spam-Status: No, hits=-6.0 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,TW_BJ,TW_CP,TW_GP,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 23 Jul 2012 18:38:31 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q6NIcV9I027404 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 23 Jul 2012 14:38:31 -0400 Received: from valrhona.uglyboxes.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q6NIcSom020323 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Mon, 23 Jul 2012 14:38:30 -0400 Message-ID: <500D9A24.7030409@redhat.com> Date: Mon, 23 Jul 2012 18:38:00 -0000 From: Keith Seitz User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 MIME-Version: 1.0 To: "gp >> \"gdb-patches@sourceware.org ml\"" Subject: [RFA] Record function name in decode_objc Content-Type: multipart/mixed; boundary="------------090108050708020307050702" X-IsSubscribed: yes 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 X-SW-Source: 2012-07/txt/msg00463.txt.bz2 This is a multi-part message in MIME format. --------------090108050708020307050702 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 319 Hi, decode_objc currently does not save the found function name into the linespec_p. [It saves the found function, but not the string name for it.] This patch fixes this omission. Keith ChangeLog 2012-07-23 Keith Seitz * linespec.c (decode_objc): Record the function name in the linespec. --------------090108050708020307050702 Content-Type: text/x-patch; name="decode_objc-save-function-name.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="decode_objc-save-function-name.patch" Content-length: 652 Index: linespec.c =================================================================== RCS file: /cvs/src/src/gdb/linespec.c,v retrieving revision 1.162 diff -u -p -r1.162 linespec.c --- linespec.c 18 Jul 2012 20:38:18 -0000 1.162 +++ linespec.c 18 Jul 2012 21:04:59 -0000 @@ -2477,6 +2477,7 @@ decode_objc (struct linespec_state *self memcpy (saved_arg, *argptr, new_argptr - *argptr); saved_arg[new_argptr - *argptr] = '\0'; + ls->function_name = xstrdup (saved_arg); ls->function_symbols = info.result.symbols; ls->minimal_symbols = info.result.minimal_symbols; values = convert_linespec_to_sals (self, ls); --------------090108050708020307050702--