From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6636 invoked by alias); 21 Jul 2004 15:48:43 -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 6626 invoked from network); 21 Jul 2004 15:48:42 -0000 Received: from unknown (HELO intranet.tidalnetworks.net) (67.114.153.34) by sourceware.org with SMTP; 21 Jul 2004 15:48:42 -0000 Received: from xinanpc ([172.16.0.111]) (authenticated bits=0) by intranet.tidalnetworks.net (8.12.8/8.12.8) with ESMTP id i6LFnRAB014055; Wed, 21 Jul 2004 08:49:28 -0700 From: "Xinan Tang" To: "Dave Korn" , Subject: RE: "Add sim memory region by default" Date: Wed, 21 Jul 2004 17:53:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-reply-to: X-SW-Source: 2004-07/txt/msg00265.txt.bz2 Hi That is the exact solution we have right now. However this requires each user coping the .gdbinit file. I wonder whether I can hardcode this info into the GDB and do not bother each user copying anymore. Thanks --Xinan -----Original Message----- From: Dave Korn [mailto:dk@artimi.com] Sent: Wednesday, July 21, 2004 5:11 AM To: 'Xinan Tang'; gdb@sources.redhat.com Subject: RE: "Add sim memory region by default" > -----Original Message----- > From: gdb-owner On Behalf Of Xinan Tang > Sent: 20 July 2004 23:38 > Rather than adding a memory region through command of > > "sim memory-region addr,length" > > I would like to add some memory regions permanently within > my gdb. Which > source files need to be touched to add a new memory region in GDB? Why not just put a set of "sim memory-region" commands into a .gdbinit file? It's just as automatic and effective and a whole lot simpler and more generic than hardcoding it into the source. cheers, DaveK -- Can't think of a witty .sigline today....