This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH to dwarf2out output_die


The debugging information became less readable when dwarf2out started to
use FORM_strp.  The simple solution is to print the contents of the string
in the -dA comment.

2001-12-14  Jason Merrill  <jason@redhat.com>

	* dwarf2out.c (output_die): Print the string in the comment for
	a DW_FORM_strp.

*** dwarf2out.c.~1~	Fri Dec 14 10:20:52 2001
--- dwarf2out.c	Thu Dec 13 14:20:01 2001
*************** output_die (die)
*** 6356,6362 ****
  	  if (AT_string_form (a) == DW_FORM_strp)
  	    dw2_asm_output_offset (DWARF_OFFSET_SIZE,
  				   a->dw_attr_val.v.val_str->label,
! 				   "%s", name);
  	  else
  	    dw2_asm_output_nstring (AT_string (a), -1, "%s", name);
  	  break;
--- 6356,6362 ----
  	  if (AT_string_form (a) == DW_FORM_strp)
  	    dw2_asm_output_offset (DWARF_OFFSET_SIZE,
  				   a->dw_attr_val.v.val_str->label,
! 				   "%s: \"%s\"", name, AT_string (a));
  	  else
  	    dw2_asm_output_nstring (AT_string (a), -1, "%s", name);
  	  break;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]