This is the mail archive of the gdb-patches@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]

Re: [PATCH] Forbid watchpoint on a constant value


On Sat, 05 Jun 2010 06:50:08 +0200, Sergio Durigan Junior wrote:
> One thing to notice is that instead of doing:
> 
> 	if (!TYPE_CONST (SYMBOL_TYPE (s)) != TYPE_CODE_FUNC
> 	...
> 
> I am now doing:
> 
> 	if (!SYMBOL_CLASS (s) != LOC_BLOCK
> 	...
> 
> Jan kindly suggested me to do this change, and I checked the DWARF spec in
> order to see if LOC_BLOCK is equivalent to TYPE_CODE_FUNC.

The DWARF spec http://www.dwarfstd.org/doc/DWARF4-public-review.pdf contains
neither LOC_BLOCK nor TYPE_CODE_FUNC.  But I have checked now TYPE_CODE_FUNC
and LOC_BLOCK are IMO equivalent at least for the DWARF symbols in this case
as being read in by dwarf2read.c.


Thanks,
Jan


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