This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Question about Dwarf2 for VLIW processor
- From: wangjiong at sunnorth dot com dot cn
- To: gdb at sourceware dot org
- Date: Wed, 7 Nov 2007 14:16:37 +0800
- Subject: 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