From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10408 invoked by alias); 19 Nov 2003 16:25:38 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 10401 invoked from network); 19 Nov 2003 16:25:38 -0000 Received: from unknown (HELO web60108.mail.yahoo.com) (216.109.118.87) by sources.redhat.com with SMTP; 19 Nov 2003 16:25:38 -0000 Message-ID: <20031119162537.27442.qmail@web60108.mail.yahoo.com> Received: from [203.199.140.162] by web60108.mail.yahoo.com via HTTP; Wed, 19 Nov 2003 08:25:37 PST Date: Wed, 19 Nov 2003 16:25:00 -0000 From: ankit thukral Subject: Re: regarding transparent data ranges (in tracepoint support) To: Jim Blandy Cc: gdb@sources.redhat.com In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-11/txt/msg00152.txt.bz2 --- Jim Blandy wrote: > > ankit thukral writes: > > > hi all, > > i read about the transparent data ranges and > > learned that data in these ranges are not supposed > to > > be collected by the remote stub since they belong > to > > read-only segment of the debuggee.my problem is : > a > > TSTART would start the debuggee and it may so > happen > > that the debuggee finishes executing.at this > point,if > > the GDB requests for some data in the transparent > data > > range,then how can the remote stub provide it with > one > > since the debuggee has exited ? > > If the target is a gdbserver, then it would need to > read the bytes > from the executable file. This is easy to do with > BFD, but if I > remember right, gdbserver doesn't use BFD at the > moment; not sure how > to get around that. > > If the target is an embedded system, then presumably > the transparent > data ranges correspond to ROM regions, so the data > is still there. how about setting a (internal) breakpoint in the debuggee which would prevent it from exiting even though it has finished executing main(),and then entertain GDB requests for the transparent (or read-only) memory regions by reading from the memory of the debuggee??? __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree