delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-workers-bounces using -f |
From: | Martin Stromberg <Martin DOT Stromberg AT epl DOT ericsson DOT se> |
Message-Id: | <200202041514.QAA06374@lws256.lu.erisoft.se> |
Subject: | Re: gcc-3.X and GDB |
To: | djgpp-workers AT delorie DOT com |
Date: | Mon, 4 Feb 2002 16:14:30 +0100 (MET) |
In-Reply-To: | <3C5EA413.22359.4E7C12@localhost> from "pavenis@lanet.lv" at Feb 04, 2002 03:09:07 PM |
X-Mailer: | ELM [version 2.5 PL3] |
MIME-Version: | 1.0 |
Reply-To: | djgpp-workers AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp-workers AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
While we're discussing gcc 3.03, is this what should be expected: ----- c.c starts. ------ #include <stdio.h> int main(void) { printf("Hello\n"); return(0); } ----- c.c ends. ------ I compiled with "gcc -g -O2 c.c -o c" and then use gdb 4.18: (gdb) br main Breakpoint 1, main () at c.c:233 (gdb) r Starting program: <some path>/c Breakpoint 1, main () at c.c:233 Line number 233 out of range; c.c has 9 lines. ? My gcc 3.03 is dated Jan 29 18:20. "gcc -gstabs -O2 c.c -o c" works fine. "gcc -ggdb -O2 c.c -o c" or "gcc -gdwarf-2 -O2 c.c -o c" results in: c:/temp\ccyuGCSP.s: Assembler messages: c:/temp\ccyuGCSP.s:2: Warning: Missing string c:/temp\ccyuGCSP.s:2: Error: Rest of line ignored. First ignored character is `1'. c:/temp\ccyuGCSP.s:11: Warning: Missing string c:/temp\ccyuGCSP.s:11: Error: Rest of line ignored. First ignored character is `2'. c:/temp\ccyuGCSP.s:19: Error: Unknown pseudo-op: `.loc' c:/temp\ccyuGCSP.s:27: Error: Unknown pseudo-op: `.loc' c:/temp\ccyuGCSP.s:32: Error: Unknown pseudo-op: `.loc' c:/temp\ccyuGCSP.s:34: Error: Unknown pseudo-op: `.loc' c:/temp\ccyuGCSP.s:36: Error: Unknown pseudo-op: `.loc' Right, MartinS
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |