Re: variable objects and registers

Daniel Jacobowitz
2006-12-30T20:50:45Z

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