From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 820 invoked by alias); 22 Oct 2013 17:38:26 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 806 invoked by uid 89); 22 Oct 2013 17:38:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx-sanjose2.cadence.com Received: from mx-sanjose2.Cadence.COM (HELO mx-sanjose2.cadence.com) (158.140.2.61) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 22 Oct 2013 17:38:24 +0000 Received: from exowa06sj.global.cadence.com (mailsj1-old.Cadence.COM [158.140.128.150]) by mx-sanjose2.cadence.com (8.14.4/8.14.4) with ESMTP id r9MHZKTw017551 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Tue, 22 Oct 2013 10:35:20 -0700 (PDT) Received: from MAILSJ3.global.cadence.com ([158.140.128.126]) by exowa06sj.global.cadence.com ([158.140.128.18]) with mapi; Tue, 22 Oct 2013 10:38:15 -0700 From: Arnab Bhaduri To: Pedro Alves , Tom Tromey CC: "gdb@sourceware.org" Date: Tue, 22 Oct 2013 17:38:00 -0000 Subject: RE: gdb not detecting function sections correctly for functions in overlays Message-ID: References: <8761t580mi.fsf@fleche.redhat.com> <8738ntgsd1.fsf@fleche.redhat.com> <5266B694.5090006@redhat.com> In-Reply-To: <5266B694.5090006@redhat.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Received: by mx-sanjose2.cadence.com as r9MHZKTw017551 at Tue Oct 22 10:35:20 2013 X-SW-Source: 2013-10/txt/msg00088.txt.bz2 Tensilica has previously provided code (I forgot to mention that I'm workin= g on the Tensilica Xtensa, which is now part of Cadence). I haven't been wo= rking on this for long and still haven't figured out how to deal with this = stuff inside Cadence, so it might take a little while. I'll need to figure = that out before I send you any patches. I can certainly file a bug. Thanks Arnab > -----Original Message----- > From: Pedro Alves [mailto:palves@redhat.com] > Sent: Tuesday, October 22, 2013 10:32 AM > To: Tom Tromey > Cc: Arnab Bhaduri; gdb@sourceware.org > Subject: Re: gdb not detecting function sections correctly for functions > in overlays >=20 > On 10/22/2013 05:52 PM, Tom Tromey wrote: > >>>>>> "Arnab" =3D=3D Arnab Bhaduri writes: > > > > Arnab> I have made a couple of local changes that make things work > > Arnab> better for me. Perhaps you could give me your opinion on these > (described below). > > > > Arnab> 1) add_location_to_breakpoint() (breakpoint.c) - this calls > > Arnab> set_breakpoint_location_function() which sets the function name > > Arnab> incorrectly because it uses the PC-to-section lookup. I > > Arnab> modified this like so: > > [...] > > > > I think a patch would be simpler to understand. >=20 > Assuming the patch is either small (10 lines or so), or we can get the > copyright assigned, which would be great. I don't see Cadence mentioned > in copyright.list though. >=20 > Otherwise, a description of the bug might actually be better, for > allowing a clean room implementation. >=20 > -- > Pedro Alves