This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to avoid "but contains no code." in command "info line"?


On Fri, Mar 23, 2007 at 03:21:29PM +0800, qinwei wrote:
> Dears, problems are here:
> 
> In a assembly file 'a.s', we define two sections which have code both.
> For example:
> 
> line1: .section mysection
> line2: load r4, [r3]
> line3: jump func
> ......
> 
> line6: .text
> line7: store r4, [r3]
> line8: jump func
> ......
> 
> "info line a.s:7" will print both the begin and end address of the line.
> but "info line a.s:2" just print the begin address and "but contains no 
> code."
> 
> I trace the behavior of gdb (6.6 release) and find if the code is not in 
> .text, 
> then it will not be put to the 'blockvector structure'

Are you sure?  It sounds to me like your assembler is not emitting the
right debug info.  GDB doesn't care what section lines are in.

-- 
Daniel Jacobowitz
CodeSourcery


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