Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Source info in discontiguous hand asm files
@ 2006-05-04  1:23 Ross Morley
  2006-05-04  1:59 ` Daniel Jacobowitz
  0 siblings, 1 reply; 5+ messages in thread
From: Ross Morley @ 2006-05-04  1:23 UTC (permalink / raw)
  To: GDB List

Hello,

gdb 6.1, as 2.15.92.0.2, gcc 3.4.2 per FC3 distro.

GDB fails to display source file and line info for functions in
two different sections in a hand-assembly source file.

A simple test-case that demonstrates the problem follows:

> cat test.S

    .text
.globl foo
foo:
    nop
    
.globl main

#ifdef DIFFERENT_TEXT_SECTION
    .section .text.with.another.name,"ax",@progbits
#endif
main:
    nop


> gcc test.S -Wa,--gdwarf2
> gdb a.out
...
(gdb) b main
Breakpoint 1 at 0x804834f: file test.S, line 13.
(gdb) b foo
Breakpoint 2 at 0x8048347: file test.S, line 5.
(gdb) quit

> gcc test.S -Wa,--gdwarf2 -DDIFFERENT_TEXT_SECTION
> gdb a.out
...
(gdb) b main
Breakpoint 1 at 0x804834f
(gdb) b foo
Breakpoint 2 at 0x8048347
(gdb)


The DWARF .debug_aranges section seems to have enough information
to deal with this, but GDB doesn't use it.

We'd like to find a fix for this. Any enlightenment is appreciated.


Regards,
Ross Morley
Tensilica, Inc.




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-05-04 18:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-04  1:23 Source info in discontiguous hand asm files Ross Morley
2006-05-04  1:59 ` Daniel Jacobowitz
2006-05-04  9:07   ` Ross Morley
2006-05-04 12:45     ` Daniel Jacobowitz
2006-05-04 18:26       ` Ross Morley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox