Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Keith Walker <keith.walker@arm.com>
To: ankit thukral <ankit_plug@yahoo.com>, gdb@sources.redhat.com
Subject: Re: Dwarf information about a symbol
Date: Wed, 15 Oct 2003 09:12:00 -0000	[thread overview]
Message-ID: <4.3.2.7.2.20031015095546.02ae7880@mhsun1.maidenhead.arm.com> (raw)
In-Reply-To: <20031015082657.63907.qmail@web60108.mail.yahoo.com>

At 01:26 15/10/2003 -0700, ankit thukral wrote:

>for instance,if a variable ,which is in a
>register during early stages of the program,ceases to
>be in the register (due to less usage) and is stored
>in memory,then the symbol Dwarf information should
>change from DW_OP_regx to
>DW_OP_fbreg.

Yes this can be described in DWARF-2 (and DWARF-3)

The actual location (ie. the register, memory address, etc) is described by 
a Location Expression.     This is sufficient to describe an item if it's 
location does not vary.

The ability to vary the location of an item is then described by a Location 
List.    A Location List is a list of <PC address range and associated 
Location Expression>.     Using a Location List therefore allows the 
actual  location to vary depending on the current PC value.

Support for Location Lists has only recently been implemented and made 
available in gdb 6.0

Obviously this does rely on the compiler generating the relevant Location 
List information in the first place for the debugger to use.

Keith


Keith Walker           Tel:+44 (1628) 427732
ARM Ltd, Liberty House, Moorbridge Road, Maidenhead, SL6 8LT UK

This e-mail message is intended for the addressee(s) only and may contain 
information that is the property of, and/or subject to a confidentiality 
agreement between the intended recipient(s), their organisation and/or the 
ARM Group of Companies. If you are not an intended recipient of this e-mail 
message, you should not read, copy, forward or otherwise distribute or 
further disclose the information in it; misuse of the contents of this 
e-mail message may violate various laws in your state, country or 
jurisdiction. If you have received this e-mail message in error, please 
contact the originator of this e-mail message via e-mail and delete all 
copies of this message from your computer or network, thank you.




  reply	other threads:[~2003-10-15  9:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-09 14:24 A thread has-a selected/current frame Andrew Cagney
2003-10-15  8:26 ` Dwarf information about a symbol ankit thukral
2003-10-15  9:12   ` Keith Walker [this message]
2003-10-15 13:52   ` Daniel Jacobowitz

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=4.3.2.7.2.20031015095546.02ae7880@mhsun1.maidenhead.arm.com \
    --to=keith.walker@arm.com \
    --cc=ankit_plug@yahoo.com \
    --cc=gdb@sources.redhat.com \
    /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