[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kalloc.c and recent gcc's

From: Alfred M. Szmidt
Subject: Re: kalloc.c and recent gcc's
Date: Wed, 31 Aug 2005 16:52:32 +0200

   Shall I do any further testing (and how to do that)?

I told you, attach gdb to defpager, and put a breakpoint in malloc.
Since this is a hook, any usual code from malloc shouldn't be run.

   > > +#include <malloc.h>             /* for malloc_hook/free_hook */
   > > +
   > > +void *init_hook (void);
   > > +void *malloc_hook (size_t size, const void *caller);
   > > +void free_hook (void *ptr, const void *caller);
   > Can't these be made static?


   > > +
   > > +void (*__malloc_initialize_hook) (void) = (void *) init_hook;
   > Do you really need the void * cast?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]