This is the mail archive of the gas2@sourceware.cygnus.com mailing list for the gas2 project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Problem
-------
Gas appears to get the line number debugging information wrong for the
last ".loc" pseudo-op in a source file.
Also, if there's only one ".loc" pseudo-op in a file, it does not
appear in the line number information.
Version
-------
GNU assembler version 940706 (iris), using BFD version cygnus-2.3
(also apparent in gas-2.3)
Test program
------------
.file 1 "test.s"
.text
.ent test
test:
.loc 1 1
li $2, 1
.loc 1 2
li $2, 2
.end test
Output (Using IRIX 4.0.5H)
--------------------------
% as -g test.s -o test.o
% mips-tdump -l test.o
.
.
There are 2 bytes holding line numbers, starting at 220.
Line 1, delta 0, count 1
Line 2, delta 1, count 1
.
.
% gas -g test.s -o test.o
% mips-tdump -l test.o
.
.
There are 2 bytes holding line numbers, starting at 320.
Line 1, delta 0, count 1
Line 1, delta 0, count 16
.
.
----------------------------------------------------------------
David Johnson
International Computer Science Institute