dwarf/dwarf2 support for java

Stu Grossman grossman@cygnus.com
Sun Jun 6 07:48:00 GMT 1999


Jim Blandy writes:
 > Isn't there a corresponding patch to include/elf/dwarf.h to define
 > LANG_JAVA?

Yes, there is.. (Sorry, it got dropped in the million last-minute things to
do.)  Here it is:

Index: ChangeLog
===================================================================
RCS file: /cvs/cvsfiles/devo/include/elf/ChangeLog,v
retrieving revision 1.138.2.1
retrieving revision 1.138.2.2
diff -c -r1.138.2.1 -r1.138.2.2
*** ChangeLog	1998/10/15 12:56:13	1.138.2.1
--- ChangeLog	1999/05/27 18:21:20	1.138.2.2
***************
*** 1,3 ****
--- 1,8 ----
+ Wed May 26 14:46:49 1999  Stu Grossman  <grossman@babylon-5.cygnus.com>
+ 
+ 	* dwarf.h:  Add LANG_JAVA.
+ 	* dwarf2.h:  Add DW_LANG_Java.
+ 
  Tue Oct  6 09:22:22 1998  Catherine Moore  <clm@cygnus.com>
  
          * sparc.h:  Add vtable relocs.
Index: dwarf.h
===================================================================
RCS file: /cvs/cvsfiles/devo/include/elf/dwarf.h,v
retrieving revision 1.8
retrieving revision 1.8.252.1
diff -c -r1.8 -r1.8.252.1
*** dwarf.h	1995/10/31 23:20:48	1.8
--- dwarf.h	1999/05/27 18:21:20	1.8.252.1
***************
*** 3,9 ****
  
     Written by Ron Guilmette (rfg@ncd.com)
  
! Copyright (C) 1992 Free Software Foundation, Inc.
  
  This file is part of GNU CC.
  
--- 3,9 ----
  
     Written by Ron Guilmette (rfg@ncd.com)
  
! Copyright (C) 1992, 1999 Free Software Foundation, Inc.
  
  This file is part of GNU CC.
  
***************
*** 301,307 ****
  
      /* GNU extensions */
  
!     LANG_CHILL		= 0x00009af3	/* random value for GNU Chill */
  };
  
  #define LANG_lo_user	0x00008000  /* implementation-defined range start */
--- 301,308 ----
  
      /* GNU extensions */
  
!     LANG_CHILL		= 0x00009af3,	/* random value for GNU Chill */
!     LANG_JAVA		= 0x00009af4    /* random value + 1 for GNU Java */
  };
  
  #define LANG_lo_user	0x00008000  /* implementation-defined range start */
Index: dwarf2.h
===================================================================
RCS file: /cvs/cvsfiles/devo/include/elf/dwarf2.h,v
retrieving revision 1.2
retrieving revision 1.2.184.1
diff -c -r1.2 -r1.2.184.1
*** dwarf2.h	1996/12/04 13:03:56	1.2
--- dwarf2.h	1999/05/27 18:21:20	1.2.184.1
***************
*** 1,6 ****
  /* Declarations and definitions of codes relating to the DWARF symbolic
     debugging information format.
!    Copyright (C) 1992, 1993, 1995, 1996 Free Software Foundation, Inc.
  
     Written by Gary Funck (gary@intrepid.com) The Ada Joint Program
     Office (AJPO), Florida State Unviversity and Silicon Graphics Inc.
--- 1,6 ----
  /* Declarations and definitions of codes relating to the DWARF symbolic
     debugging information format.
!    Copyright (C) 1992, 1993, 1995, 1996, 1999 Free Software Foundation, Inc.
  
     Written by Gary Funck (gary@intrepid.com) The Ada Joint Program
     Office (AJPO), Florida State Unviversity and Silicon Graphics Inc.
***************
*** 530,535 ****
--- 530,536 ----
      DW_LANG_Fortran90 = 0x0008,
      DW_LANG_Pascal83 = 0x0009,
      DW_LANG_Modula2 = 0x000a,
+     DW_LANG_Java = 0x9af4,
      DW_LANG_Mips_Assembler = 0x8001
    };
  


More information about the Gdb-patches mailing list