This is the mail archive of the gdb-patches@sourceware.org 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: variable objects and registers


On Sat, Dec 30, 2006 at 11:40:22PM +0300, Vladimir Prus wrote:
> I kinda assumed we'd use 'struct block *' everywhere. We'd need to be
> able to check if a PC is inside a block and for that we'd need the
> comparison with block start and end addresses. Or there's some other
> way to check if PC is in block?

I meant that we shouldn't have the front end specify blocks based on
their start/end addresses.  If we want the front end to be able to
specify blocks, we can give them UIDs.

Yes, BLOCK_START and BLOCK_END are currently the right way to check
if an address is in a block.  I posted a patch a while back that
added a predicate function to check, in case the block had more than
one range of instructions.  I never finished that patch - my goal
for my own GDB development over the next year is to finish all the
stuff I've posted as prototypes and then never come back to!

-- 
Daniel Jacobowitz
CodeSourcery


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