2006-07-04 Andreas Tobler <a.tobler@schweiz.ch>
+ PR libgcj/28226:
+ * include/posix.h (_Jv_platform_dladdr): Remove const qualifier.
+ * include/win32.h (_Jv_platform_dladdr): Likewise.
+ * posix.cc (_Jv_platform_dladdr): Likewise.
+ * win32.cc (_Jv_platform_dladdr): Likewise.
+
* testsuite/lib/libjava.exp (libjava_init): Look for libgcj-$version.jar
instead of libgcj-*.jar.
// Given an address, determine the executable or shared object that defines
// it and the nearest named symbol.
-extern int _Jv_platform_dladdr (const void *addr, _Jv_AddrInfo *info);
+extern int _Jv_platform_dladdr (void *addr, _Jv_AddrInfo *info);
#endif /* __JV_POSIX_H__ */
// Given an address, determine the executable or shared object that defines
// it and the nearest named symbol.
-extern int _Jv_platform_dladdr (const void *addr, _Jv_AddrInfo *info);
+extern int _Jv_platform_dladdr (void *addr, _Jv_AddrInfo *info);
#endif /* __JV_WIN32_H__ */
// defined symbol to that address. Returns 0 if no object defines this
// address.
int
-_Jv_platform_dladdr (const void *addr, _Jv_AddrInfo *info)
+_Jv_platform_dladdr (void *addr, _Jv_AddrInfo *info)
{
int ret_val = 0;
// defined symbol to that address. Returns 0 if no object defines this
// address.
int
-_Jv_platform_dladdr (const void *addr, _Jv_AddrInfo *info)
+_Jv_platform_dladdr (void *addr, _Jv_AddrInfo *info)
{
// Since we do not have dladdr() on Windows, we use a trick involving
// VirtualQuery() to find the module (EXE or DLL) that contains a given