From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Buettner To: Eli Zaretskii Cc: Naushit_Sakarvadia@quintum.com, gdb@sources.redhat.com Subject: Re: 8 bit read Date: Tue, 24 Jul 2001 14:11:00 -0000 Message-id: <1010724211116.ZM20834@ocotillo.lan> References: <1010724162531.ZM20232@ocotillo.lan> <2593-Tue24Jul2001210739+0300-eliz@is.elta.co.il> X-SW-Source: 2001-07/msg00351.html On Jul 24, 9:07pm, Eli Zaretskii wrote: > > Date: Tue, 24 Jul 2001 09:25:31 -0700 > > From: Kevin Buettner > > > > > > I was thinking about using memory attributes to allow GDB access to > > > segments outside the normal address space of the program being > > > debugged. This would need some additions to the memory attributes, > > > but the real show-stopper is that there's no way to define regions and > > > attributes except interactively. > > > > Why is this a show stopper? > > Because the implementation I had in mind was of a special interactive > command that would accept a selector for a memory region, define a > region, and stick the selector as a special attribute there. The > target-specific memory-transfer function will then see that attribute > when GDB calls the to_xfer_memory method, and use special functions to > access that memory. > > But the current API in memattr.c doesn't allow GDB applications code > to create memory regions except via the "mem" commands. Can you explain in more detail? I don't understand what you're trying to do... Kevin