This is the mail archive of the gdb-patches@sources.redhat.com 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: [RFC/RFA] new gdbarch method: NAME_OF_MALLOC


> Can ``const char *'' be used?  I think you'll just need to tweak the 
> function signature for find_function_in_inferior().  If you need to 
> tweak more, yell! :-)

Yes, actually, you were right. I thought that the compiler would yell to
see one of the struct fields be a "const", but it did not.

I sent a patch that constains the tweaks separately, see
http://sources.redhat.com/ml/gdb-patches/2002-09/msg00221.html.

This patch depends on the patch mentionned above.

2002-09-12  Joel Brobecker  <brobecker@gnat.com>

        * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
        vector. Will be useful for Interix.
        * gdbarch.h, gdbarch.c: Regenerate.

        * valops.c (value_allocate_space_in_inferior): Replace hard-coded
        name of the malloc function by NAME_OF_MALLOC.

> doc/gdbint.texinfo will need a separate patch.

Ah yes, right. I will work on that as soon as the code is approved.

Thanks,
-- 
Joel

Attachment: NAME_OF_MALLOC.diff
Description: Text document


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