GCC patch to support dwarf2 debugging info on sh port

Will Cohen wcohen@redhat.com
Tue Aug 15 12:09:00 GMT 2000


 
I have developed a patches to provide dwarf2 debugging information in
the sh tool chain.  GDB works better with the dwarf2 debugging
information.  Below are the entries in the gcc Changelog and the
patches to gcc.  This patch has a companion patch to modify gas for
the sh.

-Will Cohen
wcohen@redhat.com

2000-08-15  Will Cohen  <wcohen@redhat.com>

	* Added exception handling that uses dwarf2 unwind for sh.
	* config/sh/elf.h (DWARF2_UNWIND_INFO): Defined.
	* config/sh/sh.h (INCOMING_RETURN_ADDR_RTX): Defined.
	(DWARF_FRAME_RETURN_COLUMN): Defined.
	(INCOMING_FRAME_SP_OFFSET): Defined.
	* config/sh/sh.c (push): Set RTX_FRAME_RELATED_P.
	* config/sh/shbegin.c: Added to provide __EH_BEGIN_FRAME
	* config/sh/shend.c: Added.

2000-08-09  William Cohen  <wcohen@redhat.com>

	* config/sh/elf.h (DWARF2_DEBUGGING_INFO): Defined.
	(PREFERRED_DEBUGGING_TYPE): Set to dwarf2 info.
	(DWARF2_ASM_LINE_DEBUG_INFO): Defined.
	


Index: gcc/ChangeLog
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/ChangeLog,v
retrieving revision 1.5578
diff -c -2 -p -r1.5578 ChangeLog
*** ChangeLog	2000/08/08 10:03:42	1.5578
--- ChangeLog	2000/08/15 12:40:36
***************
*** 1,2 ****
--- 1,8 ----
+ 2000-08-09  William Cohen  <wcohen@redhat.com>
+ 
+ 	* config/sh/elf.h (DWARF2_DEBUGGING_INFO): Defined.
+ 	(PREFERRED_DEBUGGING_TYPE): Set to dwarf2 info.
+ 	(DWARF2_ASM_LINE_DEBUG_INFO): Defined.
+ 	
  2000-08-08  Richard Henderson  <rth@cygnus.com>
  
Index: gcc/config/sh/elf.h
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/config/sh/elf.h,v
retrieving revision 1.15
diff -c -2 -p -r1.15 elf.h
*** elf.h	2000/05/15 17:53:03	1.15
--- elf.h	2000/08/15 12:40:37
*************** Boston, MA 02111-1307, USA.  */
*** 26,29 ****
--- 26,38 ----
  #undef SDB_DEBUGGING_INFO
  
+ /* Generate DWARF2 debugging information and make it the default */
+ #define DWARF2_DEBUGGING_INFO
+ 
+ #undef PREFERRED_DEBUGGING_TYPE
+ #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
+ 
+ /* use a more compact format for line information */
+ #define DWARF2_ASM_LINE_DEBUG_INFO 1
+ 
  /* Undefine some macros defined in both sh.h and svr4.h.  */
  #undef IDENT_ASM_OP
*************** Boston, MA 02111-1307, USA.  */
*** 37,41 ****
  #undef ASM_OUTPUT_DESTRUCTOR
  #undef ASM_DECLARE_FUNCTION_NAME
- #undef PREFERRED_DEBUGGING_TYPE
  #undef MAX_OFILE_ALIGNMENT
  
--- 46,49 ----


More information about the Gcc-patches mailing list