Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Re: GDB cannot find line info
@ 2009-09-21  7:45 Robert Bu
  2009-09-21 15:00 ` Christophe LYON
  0 siblings, 1 reply; 9+ messages in thread
From: Robert Bu @ 2009-09-21  7:45 UTC (permalink / raw)
  To: christophe.lyon; +Cc: gdb

Hi Christophe,

Maybe you can try the CVS head or the 7.0 preview. I've once met the
same problem. And the problem is gone in CVS. Actually the problem is
fixed by the newly added function "watch_main_source_file_lossage
(void)" in buildsym.c

Robert.

>
>
> Hello,
>
> I have found a bug in our compiler (Open64 for ST200), which I have
> fixed to make it correctly output the directory table related to
> debug_line info.
> But now, I have many regressions in the GDB testsuite (6.8), the first
> one being in break.exp: now the command "break break.c:103" returns
> 'No line 103 in file "break.c"'
>
> I have dumped the dwarf debug_line info with 'dwarfdump -l' and
> 'readelf -wl', but could not find anything suspect:
> - with dwarfdump, the only difference is in the directory path
> - with readelf, the directory tables contain one more entry (absolute
> path to gdb.base) and the file table has dir numbers updated
> accordingly. (obviously, the length and offset of the corresponding
> sections are different)
>
> Is there any GDB internal command I could use to understand the problem?
>
> Thanks,
>
> Christophe.
>


^ permalink raw reply	[flat|nested] 9+ messages in thread
* GDB cannot find line info
@ 2009-09-18 16:12 Christophe LYON
  2009-09-18 16:27 ` Frédéric RISS
  2009-09-19 16:40 ` Joel Brobecker
  0 siblings, 2 replies; 9+ messages in thread
From: Christophe LYON @ 2009-09-18 16:12 UTC (permalink / raw)
  To: gdb

Hello,

I have found a bug in our compiler (Open64 for ST200), which I have 
fixed to make it correctly output the directory table related to 
debug_line info.
But now, I have many regressions in the GDB testsuite (6.8), the first 
one being in break.exp: now the command "break break.c:103" returns 'No 
line 103 in file "break.c"'

I have dumped the dwarf debug_line info with 'dwarfdump -l' and 'readelf 
-wl', but could not find anything suspect:
- with dwarfdump, the only difference is in the directory path
- with readelf, the directory tables contain one more entry (absolute 
path to gdb.base) and the file table has dir numbers updated 
accordingly. (obviously, the length and offset of the corresponding 
sections are different)

Is there any GDB internal command I could use to understand the problem?

Thanks,

Christophe.


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

end of thread, other threads:[~2009-09-25 15:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-21  7:45 GDB cannot find line info Robert Bu
2009-09-21 15:00 ` Christophe LYON
2009-09-21 15:35   ` Christophe LYON
2009-09-22 16:04     ` Christophe LYON
2009-09-25 15:37       ` Christophe LYON
  -- strict thread matches above, loose matches on Subject: below --
2009-09-18 16:12 Christophe LYON
2009-09-18 16:27 ` Frédéric RISS
2009-09-18 16:33   ` Frederic Riss
2009-09-19 16:40 ` Joel Brobecker

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