This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Incorrect code on PowerPC


Jeffrey A Law wrote:
>
> In message <XFMail.990104121057.gdt@linuxppc.org>you write:
>   >   Is there any [portable] way to get some indication in the ".s" file
>   >   of the corresponding C source lines?
> Not that I'm aware of.  When I get desparate I sometimes use the line numbers
> from the stabs/dwarf2 debug symbols to map from assembly code to source lines.

The second-last digit in a stabs is generally the src line number, e.g.

.stabs "GRADIENTL:t215",128,0,8164,0

is line 8164. With a stabd, it's the last digit:

.stabd 68,0,9

is line 9. Or have I misunderstood the question?

Henry


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]