Mail Archives: djgpp-workers/2002/03/05/09:51:40
Eli Zaretskii wrote:
>
> On Tue, 5 Mar 2002, CBFalconer wrote:
>
> > > Features such as those in malldbg.c cannot be implemented that way, since
> > > they are meant to be used by ordinary users, not source code hackers.
> > >
> > > For example, how do you implement a feature that shows a report of
> > > allocated and free blocks?
> >
> > See my other posting a few minutes ago. The free blocks can
> > ALWAYS be traced.
>
> That was just an example. A hook is more general than any specific code,
> because it allows a programmer to implement many features that the
> original author never had in mind.
Nothing prevents you implementing a hook. You have lost nothing
compared to the present methods, but have gained the ability to
see inside the system, with a minimum of danger. In fact existing
hook implementations that intercept malloc etc. calls and record
parameters and return values should continue to work unchanged.
The only exception is where they make unclean assumptions about
internal structure, which they can now find automatically and
correctly.
--
Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT XXXXworldnet DOT att DOT net)
Available for consulting/temporary embedded and systems.
(Remove "XXXX" from reply address. yahoo works unmodified)
mailto:uce AT ftc DOT gov (for spambots to harvest)
- Raw text -