This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: "Add sim memory region by default"


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....


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]