Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* PATCH: reindent comment
@ 2004-01-28  5:57 Jim Blandy
  0 siblings, 0 replies; only message in thread
From: Jim Blandy @ 2004-01-28  5:57 UTC (permalink / raw)
  To: gdb-patches


Committed as obvious.

2004-01-27  Jim Blandy  <jimb@redhat.com>

	* dwarf2read.c (read_func_scope): Re-indent comment.

Index: gdb/dwarf2read.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2read.c,v
retrieving revision 1.128
diff -c -r1.128 dwarf2read.c
*** gdb/dwarf2read.c	28 Jan 2004 04:02:51 -0000	1.128
--- gdb/dwarf2read.c	28 Jan 2004 04:04:04 -0000
***************
*** 2173,2199 ****
      {
        struct die_info *spec_die = die_specification (die, cu);
  
! 	  /* NOTE: carlton/2004-01-23: We have to be careful in the
! 	     presence of DW_AT_specification.  For example, with GCC
! 	     3.4, given the code
  
!                namespace N {
! 	         void foo() {
! 		   // Definition of N::foo.
! 	         }
! 	       }
  
! 	     then we'll have a tree of DIEs like this:
  
! 	     1: DW_TAG_compile_unit
!                2: DW_TAG_namespace        // N
!                  3: DW_TAG_subprogram     // declaration of N::foo
!                4: DW_TAG_subprogram       // definition of N::foo
!                     DW_AT_specification   // refers to die #3
  
!              Thus, when processing die #4, we have to pretend that
!              we're in the context of its DW_AT_specification, namely
!              the contex of die #3.  */
  	
        if (spec_die != NULL)
  	{
--- 2173,2199 ----
      {
        struct die_info *spec_die = die_specification (die, cu);
  
!       /* NOTE: carlton/2004-01-23: We have to be careful in the
!          presence of DW_AT_specification.  For example, with GCC 3.4,
!          given the code
  
!            namespace N {
!              void foo() {
!                // Definition of N::foo.
!              }
!            }
  
!          then we'll have a tree of DIEs like this:
  
!          1: DW_TAG_compile_unit
!            2: DW_TAG_namespace        // N
!              3: DW_TAG_subprogram     // declaration of N::foo
!            4: DW_TAG_subprogram       // definition of N::foo
!                 DW_AT_specification   // refers to die #3
  
!          Thus, when processing die #4, we have to pretend that we're
!          in the context of its DW_AT_specification, namely the contex
!          of die #3.  */
  	
        if (spec_die != NULL)
  	{


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-01-28  5:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-28  5:57 PATCH: reindent comment Jim Blandy

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