This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java 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] | |
There is no manual page for dladdr() on my system (though
there are for dlopen(), dlsym(), etc.) and online searches
didn't help much. Are the names not dynamically allocated
on all systems? I mean, is free() in this case non-kosher
on just glibc systems or is it the case for Solaris, etc.
as well?
Anyway, adding the "const" qualifiers and removing the misguided free() calls make things work again on Linux. I'm attaching the latest revision of this patch.
OK to apply?
Thanks, Ranjit.
- -- Ranjit Mathew Email: rmathew AT gmail DOT com
Bangalore, INDIA. Web: http://rmathew.com/
------------------------------------------------------------------------
Index: ChangeLog from Ranjit Mathew <rmathew@gcc.gnu.org>
* gcj/javaprims.h (_Jv_uintptr): New typedef similar to uintptr_t in
C99.
* include/java-stack.h: Include stdlib.h.
(_Jv_AddrInfo): New structure to hold address information.
(_Jv_platform_dladdr): Declare.
* posix.cc: Include dlfcn.h if available. Include java-stack.h.
(_Jv_platform_dladdr): Define.
* win32.cc: Include string.h. Include java-stack.h.
(backtrace): Remove.
(_Jv_platform_dladdr): Define.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |