Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: wangjiong@sunnorth.com.cn
To: gdb@sourceware.org
Subject: Question about Dwarf2 for VLIW processor
Date: Wed, 07 Nov 2007 06:17:00 -0000	[thread overview]
Message-ID: <OF6688A252.2BF526D6-ON4825738C.0020762E-4825738C.00227899@sunnorth.com.cn> (raw)

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


             reply	other threads:[~2007-11-07  6:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-07  6:17 wangjiong [this message]
2007-11-07 19:17 ` Joel Brobecker
2007-11-08  1:25   ` wangjiong
2007-11-08  1:27 wangjiong
2007-11-08  1:41 ` Daniel Jacobowitz
2007-11-08  1:54   ` wangjiong
2007-11-08  2:12     ` Joel Brobecker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=OF6688A252.2BF526D6-ON4825738C.0020762E-4825738C.00227899@sunnorth.com.cn \
    --to=wangjiong@sunnorth.com.cn \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox