From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 81295 invoked by alias); 21 Oct 2016 15:50:03 -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 81257 invoked by uid 89); 21 Oct 2016 15:50:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RCVD_IN_SEMBACKSCATTER,SPF_PASS autolearn=ham version=3.3.2 spammy=sk:ffuncti X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0a-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.156.1) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 21 Oct 2016 15:50:01 +0000 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id u9LFhvUF030859 for ; Fri, 21 Oct 2016 11:49:59 -0400 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0a-001b2d01.pphosted.com with ESMTP id 267er669j4-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 21 Oct 2016 11:49:59 -0400 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 21 Oct 2016 16:49:57 +0100 Received: from d06dlp01.portsmouth.uk.ibm.com (9.149.20.13) by e06smtp07.uk.ibm.com (192.168.101.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 21 Oct 2016 16:49:54 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id A89BD17D8056 for ; Fri, 21 Oct 2016 16:52:06 +0100 (BST) Received: from d06av05.portsmouth.uk.ibm.com (d06av05.portsmouth.uk.ibm.com [9.149.37.229]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u9LFnsQc9699716 for ; Fri, 21 Oct 2016 15:49:54 GMT Received: from d06av05.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av05.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u9LFnrVt023054 for ; Fri, 21 Oct 2016 09:49:53 -0600 Received: from oc8523832656.ibm.com (icon-9-164-132-108.megacenter.de.ibm.com [9.164.132.108]) by d06av05.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id u9LFnrMn023047; Fri, 21 Oct 2016 09:49:53 -0600 Received: by oc8523832656.ibm.com (Postfix, from userid 500) id 0A7A61161CC; Fri, 21 Oct 2016 17:49:52 +0200 (CEST) Subject: Re: [PATCH] Make name of current file as pst->filename instead of _start_ in AIX To: sangamesh.swamy@in.ibm.com (Sangamesh Mallayya) Date: Fri, 21 Oct 2016 15:50:00 -0000 From: "Ulrich Weigand" Cc: gdb-patches@sourceware.org, Ulrich.Weigand@de.ibm.com (Ulrich Weigand) In-Reply-To: from "Sangamesh Mallayya" at Oct 21, 2016 02:01:28 PM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16102115-0028-0000-0000-000002368659 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16102115-0029-0000-0000-000020E75A49 Message-Id: <20161021154952.0A7A61161CC@oc8523832656.ibm.com> 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=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1610210282 X-SW-Source: 2016-10/txt/msg00641.txt.bz2 Sangamesh Mallayya wrote: > When -qfuncsect xlc or -ffunction-section gcc compiler option is used in > 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 > 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. This is OK. I've checked the patch in now. Thanks, Ulrich -- Dr. Ulrich Weigand GNU/Linux compilers and toolchain Ulrich.Weigand@de.ibm.com