From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23920 invoked by alias); 4 Mar 2006 00:35:19 -0000 Received: (qmail 23912 invoked by uid 22791); 4 Mar 2006 00:35:19 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Sat, 04 Mar 2006 00:35:17 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FFKjp-0006Lk-QK; Fri, 03 Mar 2006 19:35:13 -0500 Date: Sat, 04 Mar 2006 10:18:00 -0000 From: Daniel Jacobowitz To: Steven Johnson Cc: Eli Zaretskii , gdb-patches@sourceware.org Subject: Re: Save the length of inserted breakpoints Message-ID: <20060304003513.GA24376@nevyn.them.org> Mail-Followup-To: Steven Johnson , Eli Zaretskii , gdb-patches@sourceware.org References: <20060302221711.GB18830@nevyn.them.org> <200603022301.k22N1qEt008208@elgar.sibelius.xs4all.nl> <20060303141123.GA8069@nevyn.them.org> <20060303175407.GA14450@nevyn.them.org> <4408C48F.3090305@sakuraindustries.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4408C48F.3090305@sakuraindustries.com> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-03/txt/msg00090.txt.bz2 On Sat, Mar 04, 2006 at 09:34:55AM +1100, Steven Johnson wrote: > I wouldn't have thought the design unfortunate. One original aim of the > target stubs (as i understand it) was to be able to keep them simple and > minimal. That would include minimizing their memory requirements. > Requiring a stub to store state about current breakpoints inserted would > be a potentially big memory requirement, because how many breakpoints is > the user going to insert? 1, 2, 50, 100's? Or do the stubs just limit > it, and say, i'm a simple stub, i can only have 5 breakpoints, try > adding 6 and I'll fail? Wrong layer: I'm talking about entirely within GDB, rather than between GDB and the stub. I took it as a given that we needed to be able to tell the remote target z0,2 or z0,4, so the remote layer would have to cache the data itself. -- Daniel Jacobowitz CodeSourcery