delorie.com/archives/browse.cgi | search |
Message-ID: | <001e01c30be4$c8fbcca0$0600000a@broadpark.no> |
From: | "Gisle Vanem" <giva AT bgnett DOT no> |
To: | "djgpp workers" <djgpp-workers AT delorie DOT com> |
Subject: | Debuglines for asm-code |
Date: | Sat, 26 Apr 2003 13:12:54 +0200 |
MIME-Version: | 1.0 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook Express 6.00.2800.1158 |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2800.1165 |
Reply-To: | djgpp-workers AT delorie DOT com |
I have some asm-files (.S) with preprocessing statements like: #include <machine/asm.h> #define DATA(x,type) .globl x; x: type .data DATA (vendor_id, .zero 13) .text ENTRY (CheckVendor); pushl %ebx My makefile has this rule: $(OBJDIR)/%.o: %.s $(CC) -g -Wall -x assembler-with-cpp -o $@ -c $< This gets impossible to step through with RHGDB, since gcc gives 'as' a temp file as input. 'objdump -s file.o' is showing debug-info like: Contents of section .debug_line: 0000 ab000000 02002600 00000101 fb0e0a00 ......&......... 0010 01010101 00000001 00633a2f 74656d70 .........c:/temp 0020 2f636356 45434c33 642e7300 00000000 /ccVECL3d.s..... RHGDB is asking for c:\temp\ccVECL3d.s. How do I solve this w/o the need for a temp .s file for RHGDB to debug? I rather not use "raw" .s files or asm in a .c-file. I noticed the libc sources uses a similar '.S.o' rule. How are you djgpp-workers debugging as-code? --gv
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |