From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Jacobowitz To: gdb-patches@sources.redhat.com Subject: PATCH: solib-svr4.c needs to know what DT_MIPS_RLD_MAP is Date: Fri, 08 Jun 2001 14:07:00 -0000 Message-id: <20010608140711.A6248@nevyn.them.org> X-SW-Source: 2001-06/msg00178.html A block in solib-svr4.c is #ifdef'd on DT_MIPS_RLD_MAP, which is defined in "elf/mips.h". Including that file would probably help. We could conditionally include this file based on target, but I just went by other files in GDB which referenced it and included it always. How's this patch? 2001-06-08 Daniel Jacobowitz * solib-svr4.c: Include "elf/mips.h". (elf_locate_base): Make DT_MIPS_RLD_MAP block unconditional. -- Daniel Jacobowitz Debian GNU/Linux Developer Monta Vista Software Debian Security Team >From tromey@redhat.com Fri Jun 08 14:09:00 2001 From: Tom Tromey To: Daniel Berlin Cc: Per Bothner , Andrew Cagney , gdb-patches@sources.redhat.com Subject: Re: obvious set_cu_language patch Date: Fri, 08 Jun 2001 14:09:00 -0000 Message-id: <8766e6eke4.fsf@creche.redhat.com> References: <3B212FC8.6010801@cygnus.com> <87vgm6snjf.fsf@cgsoftware.com> X-SW-Source: 2001-06/msg00179.html Content-length: 1295 >>>>> "Daniel" == Daniel Berlin writes: Daniel> Could you please point me to where i can find out what java Daniel> arrays *are*, so i can make a type structure for them (the new Daniel> typesystem is a hierarchy of structs, rather than a single Daniel> type struct. This means whatever java arrays *are*, can Daniel> easily be represented and handled, with no fuss or muss). Java arrays are structures. You can see the definition in gcc/libjava/gcj/array.h. I've appended the relevant bits for your perusal. Most instantiations of JArray are actually created at runtime. Only primitive arrays are created statically. Tom class __JArray : public java::lang::Object { protected: // This is just a hack to work around a warning emitted by the C++ // compiler. We initialize `length' evilly, but it doesn't know // that. __JArray () : length (0) { } public: const jsize length; friend jsize JvGetArrayLength (__JArray*); }; template class JArray : public __JArray { T data[0]; public: friend T* elements<>(JArray& x); friend T* elements<>(JArray* x); // T* getData() { return data; } // T& operator[](jint i) { return data[i]; } };