Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* PATCH: solib-svr4.c needs to know what DT_MIPS_RLD_MAP is
@ 2001-06-08 14:07 Daniel Jacobowitz
  2001-06-18 17:28 ` Kevin Buettner
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Jacobowitz @ 2001-06-08 14:07 UTC (permalink / raw)
  To: gdb-patches

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  <drow@mvista.com>
	* 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 <tromey@redhat.com>
To: Daniel Berlin <dan@cgsoftware.com>
Cc: Per Bothner <per@bothner.com>, Andrew Cagney <ac131313@cygnus.com>, 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: <m24rtrwkfd.fsf@kelso.bothner.com> <3B212FC8.6010801@cygnus.com> <m2pucevgf6.fsf@kelso.bothner.com> <87vgm6snjf.fsf@cgsoftware.com>
X-SW-Source: 2001-06/msg00179.html
Content-length: 1295

>>>>> "Daniel" == Daniel Berlin <dan@cgsoftware.com> 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 T>
    class JArray : public __JArray
    {
      T data[0];
    public:
      friend T* elements<>(JArray<T>& x);
      friend T* elements<>(JArray<T>* x);
      // T* getData() { return data; }
      // T& operator[](jint i) { return data[i]; }
    };


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-07-02 12:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-08 14:07 PATCH: solib-svr4.c needs to know what DT_MIPS_RLD_MAP is Daniel Jacobowitz
2001-06-18 17:28 ` Kevin Buettner
2001-06-18 19:53   ` Daniel Jacobowitz
2001-06-19  8:40   ` Andrew Cagney
2001-06-25 17:48     ` Kevin Buettner
2001-07-02 12:38   ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox