This is the mail archive of the gdb@sources.redhat.com 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: Dwarf information about a symbol


On Wed, Oct 15, 2003 at 01:26:57AM -0700, ankit thukral wrote:
> hi all,  
>     this is regarding the dwarf information regarding
> a variable (which is in struct symbol in the following
> field : symbol.aux_value.loc.baton.data  ).can this
> information change over different stages in the
> process? 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.
>      i am not very sure whether my knowledge about the
> compilation process (gcc , of course) is correct to
> this end.

To add to Keith's answer:
  - loc.baton.data will _not_ change.  loc.baton.data may point to a
list of different locations, however.

  - current gcc only occasionally generates location lists.  It may be
3.5 before they're really available.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


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