Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* PATCH:  partial merge of dwarf2.h
@ 2001-06-11 20:15 Per Bothner
  2001-06-12 11:56 ` Jim Blandy
  0 siblings, 1 reply; 8+ messages in thread
From: Per Bothner @ 2001-06-11 20:15 UTC (permalink / raw)
  To: gdb-patches; +Cc: per

Ok to check in?

        * dwarf2.h:  Partial merge with gcc version.
        (enum dwarf_descrim_list):  Fix typo -> dwarf_discrim_list.
        (DW_LANG_Java):  Use value from dwarf 2.1 draft (also used in gcc).

Index: dwarf2.h
===================================================================
RCS file: /cvs/src/src/include/elf/dwarf2.h,v
retrieving revision 1.3
diff -u -r1.3 dwarf2.h
--- dwarf2.h	2001/03/14 02:27:44	1.3
+++ dwarf2.h	2001/06/12 03:10:48
@@ -1,6 +1,6 @@
-/* Declarations and definitions of codes relating to the DWARF symbolic
+/* Declarations and definitions of codes relating to the DWARF2 symbolic
    debugging information format.
-   Copyright 1992, 1993, 1995, 1996, 1999 Free Software Foundation, Inc.
+   Copyright 1992, 1993, 1995, 1996, 1999, 2000 Free Software Foundation, Inc.
 
    Written by Gary Funck (gary@intrepid.com) The Ada Joint Program
    Office (AJPO), Florida State Unviversity and Silicon Graphics Inc.
@@ -31,6 +31,9 @@
    by UNIX International.  Copies of this specification are available from
    UNIX International, 20 Waterview Boulevard, Parsippany, NJ, 07054.  */
 
+/* This file is shared between GCC and GDB, and should not contain
+   prototypes.  */
+
 #ifndef _ELF_DWARF2_H
 #define _ELF_DWARF2_H
 
@@ -177,7 +180,9 @@
     /* GNU extensions */
     DW_TAG_format_label = 0x4101,	/* for FORTRAN 77 and Fortran 90 */
     DW_TAG_function_template = 0x4102,	/* for C++ */
-    DW_TAG_class_template = 0x4103	/* for C++ */
+    DW_TAG_class_template = 0x4103,	/* for C++ */
+    DW_TAG_GNU_BINCL = 0x4104,
+    DW_TAG_GNU_EINCL = 0x4105
   };
 
 #define DW_TAG_lo_user	0x4080
@@ -535,8 +540,8 @@
     DW_INL_declared_inlined = 3
   };
 
-/* descriminant lists */
-enum dwarf_descrim_list
+/* discriminant lists */
+enum dwarf_discrim_list
   {
     DW_DSC_label = 0,
     DW_DSC_range = 1
@@ -586,8 +591,20 @@
     DW_CFA_def_cfa = 0x0c,
     DW_CFA_def_cfa_register = 0x0d,
     DW_CFA_def_cfa_offset = 0x0e,
+    DW_CFA_def_cfa_expression = 0x0f,
+    DW_CFA_expression = 0x10,
+    /* Dwarf 2.1 */
+    DW_CFA_offset_extended_sf = 0x11,
+    DW_CFA_def_cfa_sf = 0x12,
+    DW_CFA_def_cfa_offset_sf = 0x13,
+
     /* SGI/MIPS specific */
-    DW_CFA_MIPS_advance_loc8 = 0x1d
+    DW_CFA_MIPS_advance_loc8 = 0x1d,
+
+    /* GNU extensions */
+    DW_CFA_GNU_window_save = 0x2d,
+    DW_CFA_GNU_args_size = 0x2e,
+    DW_CFA_GNU_negative_offset_extended = 0x2f
   };
 
 #define DW_CIE_ID	  0xffffffff
@@ -616,7 +633,7 @@
     DW_LANG_Fortran90 = 0x0008,
     DW_LANG_Pascal83 = 0x0009,
     DW_LANG_Modula2 = 0x000a,
-    DW_LANG_Java = 0x9af4,
+    DW_LANG_Java = 0x000b,
     DW_LANG_Mips_Assembler = 0x8001
   };
 
@@ -634,5 +651,29 @@
     DW_MACINFO_end_file = 4,
     DW_MACINFO_vendor_ext = 255
   };
+
+\f
+/* @@@ For use with GNU frame unwind information.  */
+
+#define DW_EH_PE_absptr		0x00
+#define DW_EH_PE_omit		0xff
+
+#define DW_EH_PE_uleb128	0x01
+#define DW_EH_PE_udata2		0x02
+#define DW_EH_PE_udata4		0x03
+#define DW_EH_PE_udata8		0x04
+#define DW_EH_PE_sleb128	0x09
+#define DW_EH_PE_sdata2		0x0A
+#define DW_EH_PE_sdata4		0x0B
+#define DW_EH_PE_sdata8		0x0C
+#define DW_EH_PE_signed		0x08
+
+#define DW_EH_PE_pcrel		0x10
+#define DW_EH_PE_textrel	0x20
+#define DW_EH_PE_datarel	0x30
+#define DW_EH_PE_funcrel	0x40
+#define DW_EH_PE_aligned	0x50
+
+#define DW_EH_PE_indirect	0x80
 
 #endif /* _ELF_DWARF2_H */

-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/


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

* Re: PATCH:  partial merge of dwarf2.h
  2001-06-11 20:15 PATCH: partial merge of dwarf2.h Per Bothner
@ 2001-06-12 11:56 ` Jim Blandy
  2001-06-12 14:14   ` Elena Zannoni
  2001-06-12 14:30   ` Andrew Cagney
  0 siblings, 2 replies; 8+ messages in thread
From: Jim Blandy @ 2001-06-12 11:56 UTC (permalink / raw)
  To: Per Bothner; +Cc: gdb-patches

I'm not sure who approves changes to include/dwarf2.h, but I approve
this change.

Per Bothner <per@bothner.com> writes:

> 
> Ok to check in?
> 
>         * dwarf2.h:  Partial merge with gcc version.
>         (enum dwarf_descrim_list):  Fix typo -> dwarf_discrim_list.
>         (DW_LANG_Java):  Use value from dwarf 2.1 draft (also used in gcc).
> 
> Index: dwarf2.h
> ===================================================================
> RCS file: /cvs/src/src/include/elf/dwarf2.h,v
> retrieving revision 1.3
> diff -u -r1.3 dwarf2.h
> --- dwarf2.h	2001/03/14 02:27:44	1.3
> +++ dwarf2.h	2001/06/12 03:10:48
> @@ -1,6 +1,6 @@
> -/* Declarations and definitions of codes relating to the DWARF symbolic
> +/* Declarations and definitions of codes relating to the DWARF2 symbolic
>     debugging information format.
> -   Copyright 1992, 1993, 1995, 1996, 1999 Free Software Foundation, Inc.
> +   Copyright 1992, 1993, 1995, 1996, 1999, 2000 Free Software Foundation, Inc.
>  
>     Written by Gary Funck (gary@intrepid.com) The Ada Joint Program
>     Office (AJPO), Florida State Unviversity and Silicon Graphics Inc.
> @@ -31,6 +31,9 @@
>     by UNIX International.  Copies of this specification are available from
>     UNIX International, 20 Waterview Boulevard, Parsippany, NJ, 07054.  */
>  
> +/* This file is shared between GCC and GDB, and should not contain
> +   prototypes.  */
> +
>  #ifndef _ELF_DWARF2_H
>  #define _ELF_DWARF2_H
>  
> @@ -177,7 +180,9 @@
>      /* GNU extensions */
>      DW_TAG_format_label = 0x4101,	/* for FORTRAN 77 and Fortran 90 */
>      DW_TAG_function_template = 0x4102,	/* for C++ */
> -    DW_TAG_class_template = 0x4103	/* for C++ */
> +    DW_TAG_class_template = 0x4103,	/* for C++ */
> +    DW_TAG_GNU_BINCL = 0x4104,
> +    DW_TAG_GNU_EINCL = 0x4105
>    };
>  
>  #define DW_TAG_lo_user	0x4080
> @@ -535,8 +540,8 @@
>      DW_INL_declared_inlined = 3
>    };
>  
> -/* descriminant lists */
> -enum dwarf_descrim_list
> +/* discriminant lists */
> +enum dwarf_discrim_list
>    {
>      DW_DSC_label = 0,
>      DW_DSC_range = 1
> @@ -586,8 +591,20 @@
>      DW_CFA_def_cfa = 0x0c,
>      DW_CFA_def_cfa_register = 0x0d,
>      DW_CFA_def_cfa_offset = 0x0e,
> +    DW_CFA_def_cfa_expression = 0x0f,
> +    DW_CFA_expression = 0x10,
> +    /* Dwarf 2.1 */
> +    DW_CFA_offset_extended_sf = 0x11,
> +    DW_CFA_def_cfa_sf = 0x12,
> +    DW_CFA_def_cfa_offset_sf = 0x13,
> +
>      /* SGI/MIPS specific */
> -    DW_CFA_MIPS_advance_loc8 = 0x1d
> +    DW_CFA_MIPS_advance_loc8 = 0x1d,
> +
> +    /* GNU extensions */
> +    DW_CFA_GNU_window_save = 0x2d,
> +    DW_CFA_GNU_args_size = 0x2e,
> +    DW_CFA_GNU_negative_offset_extended = 0x2f
>    };
>  
>  #define DW_CIE_ID	  0xffffffff
> @@ -616,7 +633,7 @@
>      DW_LANG_Fortran90 = 0x0008,
>      DW_LANG_Pascal83 = 0x0009,
>      DW_LANG_Modula2 = 0x000a,
> -    DW_LANG_Java = 0x9af4,
> +    DW_LANG_Java = 0x000b,
>      DW_LANG_Mips_Assembler = 0x8001
>    };
>  
> @@ -634,5 +651,29 @@
>      DW_MACINFO_end_file = 4,
>      DW_MACINFO_vendor_ext = 255
>    };
> +
> +\f
> +/* @@@ For use with GNU frame unwind information.  */
> +
> +#define DW_EH_PE_absptr		0x00
> +#define DW_EH_PE_omit		0xff
> +
> +#define DW_EH_PE_uleb128	0x01
> +#define DW_EH_PE_udata2		0x02
> +#define DW_EH_PE_udata4		0x03
> +#define DW_EH_PE_udata8		0x04
> +#define DW_EH_PE_sleb128	0x09
> +#define DW_EH_PE_sdata2		0x0A
> +#define DW_EH_PE_sdata4		0x0B
> +#define DW_EH_PE_sdata8		0x0C
> +#define DW_EH_PE_signed		0x08
> +
> +#define DW_EH_PE_pcrel		0x10
> +#define DW_EH_PE_textrel	0x20
> +#define DW_EH_PE_datarel	0x30
> +#define DW_EH_PE_funcrel	0x40
> +#define DW_EH_PE_aligned	0x50
> +
> +#define DW_EH_PE_indirect	0x80
>  
>  #endif /* _ELF_DWARF2_H */
> 
> -- 
> 	--Per Bothner
> per@bothner.com   http://www.bothner.com/per/
> 


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

* Re: PATCH:  partial merge of dwarf2.h
  2001-06-12 11:56 ` Jim Blandy
@ 2001-06-12 14:14   ` Elena Zannoni
  2001-06-12 14:19     ` Per Bothner
  2001-06-12 14:30   ` Andrew Cagney
  1 sibling, 1 reply; 8+ messages in thread
From: Elena Zannoni @ 2001-06-12 14:14 UTC (permalink / raw)
  To: Jim Blandy; +Cc: Per Bothner, gdb-patches

Jim Blandy writes:
 > 
 > I'm not sure who approves changes to include/dwarf2.h, but I approve
 > this change.
 > 

Shouldn't the copyright years include 2001 as well?

Elena


 > Per Bothner <per@bothner.com> writes:
 > 
 > > 
 > > Ok to check in?
 > > 
 > >         * dwarf2.h:  Partial merge with gcc version.
 > >         (enum dwarf_descrim_list):  Fix typo -> dwarf_discrim_list.
 > >         (DW_LANG_Java):  Use value from dwarf 2.1 draft (also used in gcc).
 > > 
 > > Index: dwarf2.h
 > > ===================================================================
 > > RCS file: /cvs/src/src/include/elf/dwarf2.h,v
 > > retrieving revision 1.3
 > > diff -u -r1.3 dwarf2.h
 > > --- dwarf2.h	2001/03/14 02:27:44	1.3
 > > +++ dwarf2.h	2001/06/12 03:10:48
 > > @@ -1,6 +1,6 @@
 > > -/* Declarations and definitions of codes relating to the DWARF symbolic
 > > +/* Declarations and definitions of codes relating to the DWARF2 symbolic
 > >     debugging information format.
 > > -   Copyright 1992, 1993, 1995, 1996, 1999 Free Software Foundation, Inc.
 > > +   Copyright 1992, 1993, 1995, 1996, 1999, 2000 Free Software Foundation, Inc.
 > >  
 > >     Written by Gary Funck (gary@intrepid.com) The Ada Joint Program
 > >     Office (AJPO), Florida State Unviversity and Silicon Graphics Inc.
 > > @@ -31,6 +31,9 @@
 > >     by UNIX International.  Copies of this specification are available from
 > >     UNIX International, 20 Waterview Boulevard, Parsippany, NJ, 07054.  */
 > >  
 > > +/* This file is shared between GCC and GDB, and should not contain
 > > +   prototypes.  */
 > > +
 > >  #ifndef _ELF_DWARF2_H
 > >  #define _ELF_DWARF2_H
 > >  
 > > @@ -177,7 +180,9 @@
 > >      /* GNU extensions */
 > >      DW_TAG_format_label = 0x4101,	/* for FORTRAN 77 and Fortran 90 */
 > >      DW_TAG_function_template = 0x4102,	/* for C++ */
 > > -    DW_TAG_class_template = 0x4103	/* for C++ */
 > > +    DW_TAG_class_template = 0x4103,	/* for C++ */
 > > +    DW_TAG_GNU_BINCL = 0x4104,
 > > +    DW_TAG_GNU_EINCL = 0x4105
 > >    };
 > >  
 > >  #define DW_TAG_lo_user	0x4080
 > > @@ -535,8 +540,8 @@
 > >      DW_INL_declared_inlined = 3
 > >    };
 > >  
 > > -/* descriminant lists */
 > > -enum dwarf_descrim_list
 > > +/* discriminant lists */
 > > +enum dwarf_discrim_list
 > >    {
 > >      DW_DSC_label = 0,
 > >      DW_DSC_range = 1
 > > @@ -586,8 +591,20 @@
 > >      DW_CFA_def_cfa = 0x0c,
 > >      DW_CFA_def_cfa_register = 0x0d,
 > >      DW_CFA_def_cfa_offset = 0x0e,
 > > +    DW_CFA_def_cfa_expression = 0x0f,
 > > +    DW_CFA_expression = 0x10,
 > > +    /* Dwarf 2.1 */
 > > +    DW_CFA_offset_extended_sf = 0x11,
 > > +    DW_CFA_def_cfa_sf = 0x12,
 > > +    DW_CFA_def_cfa_offset_sf = 0x13,
 > > +
 > >      /* SGI/MIPS specific */
 > > -    DW_CFA_MIPS_advance_loc8 = 0x1d
 > > +    DW_CFA_MIPS_advance_loc8 = 0x1d,
 > > +
 > > +    /* GNU extensions */
 > > +    DW_CFA_GNU_window_save = 0x2d,
 > > +    DW_CFA_GNU_args_size = 0x2e,
 > > +    DW_CFA_GNU_negative_offset_extended = 0x2f
 > >    };
 > >  
 > >  #define DW_CIE_ID	  0xffffffff
 > > @@ -616,7 +633,7 @@
 > >      DW_LANG_Fortran90 = 0x0008,
 > >      DW_LANG_Pascal83 = 0x0009,
 > >      DW_LANG_Modula2 = 0x000a,
 > > -    DW_LANG_Java = 0x9af4,
 > > +    DW_LANG_Java = 0x000b,
 > >      DW_LANG_Mips_Assembler = 0x8001
 > >    };
 > >  
 > > @@ -634,5 +651,29 @@
 > >      DW_MACINFO_end_file = 4,
 > >      DW_MACINFO_vendor_ext = 255
 > >    };
 > > +
 > > +\f
 > > +/* @@@ For use with GNU frame unwind information.  */
 > > +
 > > +#define DW_EH_PE_absptr		0x00
 > > +#define DW_EH_PE_omit		0xff
 > > +
 > > +#define DW_EH_PE_uleb128	0x01
 > > +#define DW_EH_PE_udata2		0x02
 > > +#define DW_EH_PE_udata4		0x03
 > > +#define DW_EH_PE_udata8		0x04
 > > +#define DW_EH_PE_sleb128	0x09
 > > +#define DW_EH_PE_sdata2		0x0A
 > > +#define DW_EH_PE_sdata4		0x0B
 > > +#define DW_EH_PE_sdata8		0x0C
 > > +#define DW_EH_PE_signed		0x08
 > > +
 > > +#define DW_EH_PE_pcrel		0x10
 > > +#define DW_EH_PE_textrel	0x20
 > > +#define DW_EH_PE_datarel	0x30
 > > +#define DW_EH_PE_funcrel	0x40
 > > +#define DW_EH_PE_aligned	0x50
 > > +
 > > +#define DW_EH_PE_indirect	0x80
 > >  
 > >  #endif /* _ELF_DWARF2_H */
 > > 
 > > -- 
 > > 	--Per Bothner
 > > per@bothner.com   http://www.bothner.com/per/
 > > 
 > 


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

* Re: PATCH:  partial merge of dwarf2.h
  2001-06-12 14:14   ` Elena Zannoni
@ 2001-06-12 14:19     ` Per Bothner
  2001-06-12 14:24       ` Elena Zannoni
  0 siblings, 1 reply; 8+ messages in thread
From: Per Bothner @ 2001-06-12 14:19 UTC (permalink / raw)
  To: Elena Zannoni; +Cc: gdb-patches

Elena Zannoni <ezannoni@cygnus.com> writes:

> Shouldn't the copyright years include 2001 as well?

Well, the gcc/dwarf2.h doesn't, and this is basically a merge
from that.  (There are some formatting differences, and there
are also some extensions in the binutils version.  I'm leaving those
as is for now.)
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/


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

* Re: PATCH:  partial merge of dwarf2.h
  2001-06-12 14:19     ` Per Bothner
@ 2001-06-12 14:24       ` Elena Zannoni
  2001-06-13  2:03         ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Elena Zannoni @ 2001-06-12 14:24 UTC (permalink / raw)
  To: Per Bothner; +Cc: Elena Zannoni, gdb-patches

Per Bothner writes:
 > Elena Zannoni <ezannoni@cygnus.com> writes:
 > 
 > > Shouldn't the copyright years include 2001 as well?
 > 
 > Well, the gcc/dwarf2.h doesn't, and this is basically a merge
 > from that.  (There are some formatting differences, and there
 > are also some extensions in the binutils version.  I'm leaving those
 > as is for now.)

Ok, you haven't changed anything. But still, the file itself has been
touched. Hmm, I don't know what the rules are in this case.

Anyone? 

Elena


 > -- 
 > 	--Per Bothner
 > per@bothner.com   http://www.bothner.com/per/
 > 


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

* Re: PATCH:  partial merge of dwarf2.h
  2001-06-12 11:56 ` Jim Blandy
  2001-06-12 14:14   ` Elena Zannoni
@ 2001-06-12 14:30   ` Andrew Cagney
  1 sibling, 0 replies; 8+ messages in thread
From: Andrew Cagney @ 2001-06-12 14:30 UTC (permalink / raw)
  To: Jim Blandy, Per Bothner; +Cc: gdb-patches

> I'm not sure who approves changes to include/dwarf2.h, but I approve
> this change.


Hmm, include/.... Didn't notice that detail.

As the file notes:

	This file is part of GNU CC.

Since GCC has the master, people are free to just import the latest 
changes at their leasure.  Just remember to warn GDB and (if relevant) 
binutils when it is happening (perhaphs with a sanity build :-).

	Andrew


> Per Bothner <per@bothner.com> writes:
> 
> 
>> 
>> Ok to check in?
>> 
>> * dwarf2.h:  Partial merge with gcc version.
>> (enum dwarf_descrim_list):  Fix typo -> dwarf_discrim_list.
>> (DW_LANG_Java):  Use value from dwarf 2.1 draft (also used in gcc).





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

* Re: PATCH: partial merge of dwarf2.h
  2001-06-12 14:24       ` Elena Zannoni
@ 2001-06-13  2:03         ` Eli Zaretskii
  2001-06-13  8:15           ` Elena Zannoni
  0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2001-06-13  2:03 UTC (permalink / raw)
  To: Elena Zannoni; +Cc: Per Bothner, gdb-patches

On Tue, 12 Jun 2001, Elena Zannoni wrote:

> Per Bothner writes:
>  > Elena Zannoni <ezannoni@cygnus.com> writes:
>  > 
>  > > Shouldn't the copyright years include 2001 as well?
>  > 
>  > Well, the gcc/dwarf2.h doesn't, and this is basically a merge
>  > from that.  (There are some formatting differences, and there
>  > are also some extensions in the binutils version.  I'm leaving those
>  > as is for now.)
> 
> Ok, you haven't changed anything. But still, the file itself has been
> touched. Hmm, I don't know what the rules are in this case.

The rules are that the Copyright notice should mention years when
someone worked on a released version of a file.  So if the changes
were done by GCC maintainers only in 2000, I think it is okay not to
include 2001.


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

* Re: PATCH: partial merge of dwarf2.h
  2001-06-13  2:03         ` Eli Zaretskii
@ 2001-06-13  8:15           ` Elena Zannoni
  0 siblings, 0 replies; 8+ messages in thread
From: Elena Zannoni @ 2001-06-13  8:15 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Elena Zannoni, Per Bothner, gdb-patches

Eli Zaretskii writes:
 > 
 > On Tue, 12 Jun 2001, Elena Zannoni wrote:
 > 
 > > Per Bothner writes:
 > >  > Elena Zannoni <ezannoni@cygnus.com> writes:
 > >  > 
 > >  > > Shouldn't the copyright years include 2001 as well?
 > >  > 
 > >  > Well, the gcc/dwarf2.h doesn't, and this is basically a merge
 > >  > from that.  (There are some formatting differences, and there
 > >  > are also some extensions in the binutils version.  I'm leaving those
 > >  > as is for now.)
 > > 
 > > Ok, you haven't changed anything. But still, the file itself has been
 > > touched. Hmm, I don't know what the rules are in this case.
 > 
 > The rules are that the Copyright notice should mention years when
 > someone worked on a released version of a file.  So if the changes
 > were done by GCC maintainers only in 2000, I think it is okay not to
 > include 2001.
 > 

Thanks for clarifying this, Eli.
I withdraw my objection.

Elena


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

end of thread, other threads:[~2001-06-13  8:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-11 20:15 PATCH: partial merge of dwarf2.h Per Bothner
2001-06-12 11:56 ` Jim Blandy
2001-06-12 14:14   ` Elena Zannoni
2001-06-12 14:19     ` Per Bothner
2001-06-12 14:24       ` Elena Zannoni
2001-06-13  2:03         ` Eli Zaretskii
2001-06-13  8:15           ` Elena Zannoni
2001-06-12 14:30   ` Andrew Cagney

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