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 Saturday 05 June 2010 11:37:52, Jan Kratochvil wrote:
> 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.

The DWARF spec doesn't contain LOC_BLOCK nor TYPE_CODE_FUNC because they're
specific to GDB internals.  Instead of it, I took a look into GDB source
and found the related DWARF elements associated to LOC_BLOCK (I already
knew the TYPE_CODE_FUNC was used for routines, so I assumed it used
the DWARF elements to describe a routine).  Given that, I found that
LOC_BLOCK is used in the same situation as TYPE_CODE_FUNC, and that's why
I concluded that both are equivalent.

-- 
Sergio Durigan Junior
Red Hat


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