From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 642 invoked by alias); 21 Oct 2016 14:01:50 -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 547 invoked by uid 89); 21 Oct 2016 14:01:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=BAYES_00,KAM_ASCII_DIVIDERS,RCVD_IN_DNSWL_LOW,RCVD_IN_SEMBACKSCATTER,SPF_PASS autolearn=no version=3.3.2 spammy=sk:ffuncti, Hx-languages-length:1851, 2779, H*x:Release X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0b-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.158.5) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 21 Oct 2016 14:01:48 +0000 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id u9LDxC0X005081 for ; Fri, 21 Oct 2016 10:01:46 -0400 Received: from e28smtp02.in.ibm.com (e28smtp02.in.ibm.com [125.16.236.2]) by mx0a-001b2d01.pphosted.com with ESMTP id 267ethgyqq-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 21 Oct 2016 10:01:45 -0400 Received: from localhost by e28smtp02.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 21 Oct 2016 19:31:42 +0530 Received: from d28dlp02.in.ibm.com (9.184.220.127) by e28smtp02.in.ibm.com (192.168.1.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 21 Oct 2016 19:31:39 +0530 X-IBM-Helo: d28dlp02.in.ibm.com X-IBM-MailFrom: sangamesh.swamy@in.ibm.com X-IBM-RcptTo: gdb-patches@sourceware.org Received: from d28relay10.in.ibm.com (d28relay10.in.ibm.com [9.184.220.161]) by d28dlp02.in.ibm.com (Postfix) with ESMTP id 253BA3940060 for ; Fri, 21 Oct 2016 19:31:38 +0530 (IST) Received: from d50lp01.ny.us.ibm.com ([146.89.104.207]) by d28relay10.in.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u9LE1Hj623199962 for ; Fri, 21 Oct 2016 19:31:18 +0530 Received: from localhost by d50lp01.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 21 Oct 2016 10:01:36 -0400 Received: from smtp.notes.na.collabserv.com (192.155.248.93) by d50lp01.ny.us.ibm.com (158.87.18.20) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128/128) Fri, 21 Oct 2016 10:01:34 -0400 Received: from localhost by smtp.notes.na.collabserv.com with smtp.notes.na.collabserv.com ESMTP for from ; Fri, 21 Oct 2016 14:01:32 -0000 Received: from us1a3-smtp02.a3.dal06.isc4sb.com (10.106.154.159) by smtp.notes.na.collabserv.com (10.106.227.39) with smtp.notes.na.collabserv.com ESMTP; Fri, 21 Oct 2016 14:01:30 -0000 Received: from us1a3-mail142.a3.dal06.isc4sb.com ([10.146.38.78]) by us1a3-smtp02.a3.dal06.isc4sb.com with ESMTP id 2016102114012971-232214 ; Fri, 21 Oct 2016 14:01:29 +0000 To: gdb-patches@sourceware.org Cc: "Ulrich Weigand" Subject: [PATCH] Make name of current file as pst->filename instead of _start_ in AIX From: "Sangamesh Mallayya" Date: Fri, 21 Oct 2016 14:01:00 -0000 MIME-Version: 1.0 X-KeepSent: 0AE02BA0:ADAB0D03-65258053:004B0FB7; type=4; name=$KeepSent X-LLNOutbound: False X-Disclaimed: 2111 X-TNEFEvaluated: 1 Content-Type: multipart/mixed; boundary="=_mixed 004D077D65258053_=" x-cbid: 16102114-0004-0000-0000-00000352C999 X-IBM-ISS-SpamDetectors: Score=0.415652; BY=0; FL=0; FP=0; FZ=0; HX=0; KW=0; PH=0; SC=0.415652; ST=0; TS=0; UL=0; ISC= X-IBM-ISS-DetailInfo: BY=3.00005952; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000187; SDB=6.00771051; UDB=6.00369719; UTC=2016-10-21 14:01:31 x-cbparentid: 16102114-1800-0000-0000-0000010641F1 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused X-Content-Scanned: Fidelis XPS MAILER X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-10-21_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1610210254 X-SW-Source: 2016-10/txt/msg00639.txt.bz2 --=_mixed 004D077D65258053_= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="US-ASCII" Content-length: 1999 Hi, When -qfuncsect xlc or -ffunction-section gcc compiler option is used in=20 AIX, each function csect will be associated with each psymtab, so each psymtab will have it's corresponding filename entries set. If the pst filename isn't set then we will be seeing the below output when= =20 we set a breakpoint. (gdb) br main Breakpoint 1 at 0x10000374: file _start_ , line 18. With the fix it will be. (gdb) br main Breakpoint 1 at 0x10000518: file test.c, line 24. Attached patch resolve this issue and correct filename will be set. Here is the summary of regression run with both xlc/gcc compiler. gcc with -ffunction-sections and without pst filename change ------------------------------------------------------------ # of expected passes 7469 # of unexpected failures 4104 # of unexpected successes 1 # of expected failures 13 # of unresolved testcases 4 # of untested testcases 54 # of unsupported tests 30 gcc with -ffunction-sections and with pst filename change --------------------------------------------------------- # of expected passes 8608 # of unexpected failures 3085 # of unexpected successes 1 # of expected failures 14 # of unresolved testcases 4 # of untested testcases 58 # of unsupported tests 30 xlc with -qfuncsect and without pst filename change --------------------------------------------------- # of expected passes 2779 # of unexpected failures 2721 # of expected failures 10 # of unresolved testcases 71 # of untested testcases 92 # of unsupported tests 15 xlc with -qfuncsect and with pst filename change ------------------------------------------------ # of expected passes 2795 # of unexpected failures 2704 # of expected failures 10 # of unresolved testcases 72 # of untested testcases 92 # of unsupported tests 15 Thanks, -Sangamesh --=_mixed 004D077D65258053_= Content-Type: application/octet-stream; name="ChangeLog" Content-Disposition: attachment; filename="ChangeLog" Content-Transfer-Encoding: base64 Content-length: 411 CSogeGNvZmZyZWFkLmMgKHJlYWRfeGNvZmZfc3ltdGFiKTogTWFrZSBuYW1l IG9mIGN1cnJlbnQgZmlsZSBhcwoJcHN0LT5maWxlbmFtZSBpbnN0ZWFkIG9m IF9zdGFydF8gaW4gQUlYLgoKCVdoZW4geGxjIC1xZnVuY3NlY3Qgb3IgZ2Nj IC1mZnVuY3Rpb24tc2VjdGlvbnMgb3B0aW9ucyBpcyB1c2VkIGluIEFJWCwK CWVhY2ggZnVuY3Rpb24gY3NlY3QgaXMgYXNzb2NpYXRlZCB3aXRoIGVhY2gg cHN5bXRhYiwgc28gZWFjaCBwc3ltdGFiCgl3aWxsIGhhdmUgaXQncyBjb3Jy ZXNwb25kaW5nIGZpbGVuYW1lIGVudHJpZXMgc2V0Lgo= --=_mixed 004D077D65258053_= Content-Type: application/octet-stream; name="pst_file.patch" Content-Disposition: attachment; filename="pst_file.patch" Content-Transfer-Encoding: base64 Content-length: 688 ZGlmZiAtLWdpdCBhL2dkYi94Y29mZnJlYWQuYyBiL2dkYi94Y29mZnJlYWQu YwppbmRleCA1MDdiYWYyLi4wMmMxZTVhIDEwMDY0NAotLS0gYS9nZGIveGNv ZmZyZWFkLmMKKysrIGIvZ2RiL3hjb2ZmcmVhZC5jCkBAIC0xMDI2LDcgKzEw MjYsNyBAQCByZWFkX3hjb2ZmX3N5bXRhYiAoc3RydWN0IG9iamZpbGUgKm9i amZpbGUsIHN0cnVjdCBwYXJ0aWFsX3N5bXRhYiAqcHN0KQogICB1bmlvbiBp bnRlcm5hbF9hdXhlbnQgZmNuX2F1eF9zYXZlZCA9IG1haW5fYXV4OwogICBz dHJ1Y3QgY29udGV4dF9zdGFjayAqbmV3b2JqOwogCi0gIGNoYXIgKmZpbGVz dHJpbmcgPSAiIF9zdGFydF8gIjsJLyogTmFtZSBvZiB0aGUgY3VycmVudCBm aWxlLiAgKi8KKyAgY2hhciAqZmlsZXN0cmluZyA9IHBzdC0+ZmlsZW5hbWU7 CS8qIE5hbWUgb2YgdGhlIGN1cnJlbnQgZmlsZS4gICovCiAKICAgY29uc3Qg Y2hhciAqbGFzdF9jc2VjdF9uYW1lOwkvKiBMYXN0IHNlZW4gY3NlY3QncyBu YW1lLiAgKi8KIAo= --=_mixed 004D077D65258053_=--