Article View: comp.sys.acorn.tech
Article #464Re: Bug found in v4 of Acorn C compiler
From: Andrew P.Mell
Date: Fri, 02 Oct 1992 00:42
Date: Fri, 02 Oct 1992 00:42
76 lines
3113 bytes
3113 bytes
Talking of bugs in Cv4, Help! I'm stuck on this one....
!DDT repeatedly address exceptions on me, I've tracked this down to
probably being Acorn C v4.00 generating incorrect debug info
(specifically the line number info)
Look at the output of decaof -g for one of my program modules.
How do I get around this apparent bug in Cv4?
Andy
** Identification
Norcroft RISC OS ARM C vsn 4.00 [May 3 1991]
** Header
AOF file type: Relocatable object code
AOF VSN: 150
No of areas: 5
No of symbols: 534
** Area C$$debug, Alignment 4, Size 50200 (0xc418), 1386 relocations
Attributes: Data: Read only: Debugging tables
00000000 --- Section
00000002 Length = 40
00000004 Language: C
00000005 Flags: line number info, local variable info
00000007 Debugging table version: 1
00000008 Code address 0x00000000 (Relocation offset 0x00000008)
0000000c Data address 0x00000000 (Relocation offset 0x0000000c)
00000010 Code size = 0x0000f7a4
00000014 Data size = 0x000011cc
00000018 File info offset = 0x0000af90 (AREA offset 0x0000af90)
0000001c Section size = 50200
00000020 Section name: "c.term"
00000028 --- Type
.. etc..
0000c398 Line 7060, statement 1 at code address 0x0000f792
0000c39a Line 7061, statement 1 at code address 0x0000f7a2
0000c39c Line 7062, statement 1 at code address 0x0000f7aa
0000c39e Line 7063, statement 1 at code address 0x0000f7b2
0000c3a0 Line 7064, statement 1 at code address 0x0000f7be
0000c3a2 Line 7065, statement 1 at code address 0x0000f7ca
..etc...
0000c3a4 Fragment 3 (size = 19661112)
0000c3a8 First line = 19661112
0000c3ac Last line = 19661104
0000c3b0 Code address 0x01100230 (Relocation offset 0x0000c3b0)
0000c3b4 Code size 0x03e70000
0000c3b8 Line 19661112, statement 1 at code address 0x01100230
0000c3ba Line 19661112, statement 2 at code address 0x01100234
0000c3c0 Line 19661136, statement 1 at code address 0x01100234
0000c3c6 Line 19661136, statement 2 at code address 0x01106a3c
...etc...
00012932 Line 29139522, statement 10 at code address 0x017d6c8d
00012938 Line 29139522, statement 11 at code address 0x017d6c8d
0001293e Line 29139522, statement 12 at code address 0x017d6c8d
00012944 Line 29139522, statement 13 at code address 0x017d6c8d
0001294a Line 29139522, statement 14 at code address 0x017d6c8d
00012950 Line 29139522, statement 15 at code address 0x017d6c8d
I seriously doubt my program has 29139522 lines, and more than 10
statements per line. I've tried fiddling the source around, rearranging
it etc. but to no avail, please tell me whats wrong, its driving me mad!
Technical Details
Message-ID:
<1992Oct2.004210.22526@mnemosyne.cs.du.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!mnemosyne.cs.du.edu!nyx!amellReferences:
<1992Oct1.033932.22482@cs.aukuni.ac.nz> <19076@acorn.co.uk>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.acorn.tech Path: arc1-ca.pugleaf.net!sparky!uunet!mnemosyne.cs.du.edu!nyx!amell From: amell@nyx.cs.du.edu (Andrew P.Mell) Subject: Re: Bug found in v4 of Acorn C compiler Message-ID: <1992Oct2.004210.22526@mnemosyne.cs.du.edu> Sender: usenet@mnemosyne.cs.du.edu (netnews admin account) Organization: Nyx, Public Access Unix at U. of Denver Math/CS dept. References: <1992Oct1.033932.22482@cs.aukuni.ac.nz> <19076@acorn.co.uk> Date: Fri, 2 Oct 92 00:42:10 GMT Lines: 77