[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Original names; was: Assignment statement isn't parsing



Thanks, works like a charm.

Feng QIAN wrote:
> Nathan,
> 
> I believe the problem was caused by following code
>     74           e = local_variable_table[i];
>     75           if (e.index==idx &&
>     76               (code==-1 ||
>     77                (code>=e.start_pc && code<e.start_pc+e.length))) {
> 
> Line 77 should be a bug, because according to the spec, the interval
> should be [start_pc, start_pc+length] inclusively. So changing the line
> 77 to:
>  new 77               (code>=e.start_pc && code<=e.start_pc+e.length))) {
>                     /* [start_pc, start_pc+length] should be inclusive */
> 
> This will fix the bug in your example, and hopefully it will fix your other
> programs as well.
> 
> Cheers,
> ===========================================================
> Feng Qian                             fqian@sable.mcgill.ca
> 
-- 
Nathan Kitchen
kitchen@ee.byu.edu