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]

Question about Dwarf2 for VLIW processor


Dear all:

        Suppose I have a c file example.c, the 15th line is " int i=1 "
 
        ...
        ...

        int i=1;    // the 15th line

        ...
        ...

       And this statement corresponds to two instruction groups, the first 
instruction group ranges from from 0x800003c5 to 0x800003ca and the second 
from 0x800003cb to 0x800003cf.

       But the dwarf2 information of the line range generated is:

         Special opcode 89: advance Address by 6 to 0x800003bd and Line by 
0 to 14
         Special opcode 6: advance Address by 0 to 0x800003bd and Line by 
1 to 15           ****
        Special opcode 117: advance Address by 8 to 0x800003c5 and Line by 
0 to 15         ****  These three lines should be compressed to one ???
        Special opcode 89: advance Address by 6 to 0x800003cb and Line by 
0 to 15          ****
        Special opcode 76: advance Address by 5 to 0x800003d0 and Line by 
1 to 16

      that is one line for each instruction group which should be one 
statement. 
 
      so gdb will think the statement "int i=1" is from 0x800003c5 to 
0x800003cb which should be 0x800003c5 to 0x800003cf.

      How should I handle this situation, wish your advice .
 

Wang Jiong 

  tel:2254


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