delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/02/04/12:32:18

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f
Date: Mon, 4 Feb 2002 19:12:43 +0200 (WET)
From: Andris Pavenis <pavenis AT lanet DOT lv>
X-Sender: pavenis AT ieva06
To: Martin Stromberg <Martin DOT Stromberg AT epl DOT ericsson DOT se>
Cc: djgpp-workers AT delorie DOT com
Subject: Re: gcc-3.X and GDB
In-Reply-To: <200202041514.QAA06374@lws256.lu.erisoft.se>
Message-ID: <Pine.A41.4.05.10202041906270.49676-100000@ieva06>
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


On Mon, 4 Feb 2002, Martin Stromberg wrote:

> 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-4.18 is extreemly old. Even gdb-5.0 is old for use with
gcc-3.0.X. Unfortunatelly gdb-5.1.1 is not released
yet for DJGPP. 

> 
> (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

Make sure You have binutils new enough. Latest update of 
binutils-2.11.2 for DJGPP is required to use DWARF2 debugging
info (I myself am using newer CVS version of binutils for most stuff,
but 2.11.2 for building GCC itself) 

> 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'
> 

Andris




- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019