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]

patch to add support for dwarf2 generation with djgpp


Hello,
This patch adds support to DJGPP for generation of dwarf2 debug info.

Disclosure: An equivalent patch was tested with gcc 2.95.2 and with a binutils modified 
for dwarf2 support. For a while now I've been unable to bootstrap gcc in cvs because my 
machine doesn't have enough memory to satisfy genattrtab. But I do get far enough 
verify that dwarf2dbg.c does compile. Since the changes are the same between 2.95.2 and 
cvs, I'm confident that patch won't introduce new problems.

Index: gcc/gcc/config/i386/djgpp.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/i386/djgpp.h,v
retrieving revision 1.19
diff -c -p -r1.19 djgpp.h
*** djgpp.h	2000/11/02 23:29:09	1.19
--- djgpp.h	2000/12/06 19:39:36
*************** Boston, MA 02111-1307, USA.  */
*** 20,25 ****
--- 20,28 ----
  
  #include "dbxcoff.h"
  
+ /* Support generation of DWARF2 debugging info.  */
+ #define DWARF2_DEBUGGING_INFO
+ 
  /* Don't assume anything about the header files. */
  #define NO_IMPLICIT_EXTERN_C
  
*************** Boston, MA 02111-1307, USA.  */
*** 74,79 ****
--- 77,94 ----
  /* Define the name of the .text section.  */
  #undef TEXT_SECTION_ASM_OP
  #define TEXT_SECTION_ASM_OP "\t.section .text"
+ 
+ /* How to output an unaligned integer.  */
+ #undef UNALIGNED_INT_ASM_OP
+ #define	UNALIGNED_INT_ASM_OP	"\t.long\t"
+ 
+ /* How to output an unaligned double length integer.  */
+ #undef UNALIGNED_DOUBLE_INT_ASM_OP
+ #define	UNALIGNED_DOUBLE_INT_ASM_OP	"\t.quad\t"
+ 
+ /* How to output an unaligned half length intenger.  */
+ #undef UNALIGNED_SHORT_ASM_OP
+ #define	UNALIGNED_SHORT_ASM_OP	"\t.short\t"
  
  /* Tell GCC where our standard include directory is.  */
  #undef STANDARD_INCLUDE_DIR


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