2002-10-23 David Carlton <carlton@math.stanford.edu>
* parse.c (parse_exp_1): Use BLOCK_START. * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END, SYMBOL_BLOCK_VALUE. * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
This commit is contained in:
parent
87f2f08c7f
commit
8da065d53c
@ -1,3 +1,10 @@
|
||||
2002-10-23 David Carlton <carlton@math.stanford.edu>
|
||||
|
||||
* parse.c (parse_exp_1): Use BLOCK_START.
|
||||
* x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
|
||||
SYMBOL_BLOCK_VALUE.
|
||||
* objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
|
||||
|
||||
2002-10-23 David Carlton <carlton@math.stanford.edu>
|
||||
|
||||
* symtab.c: Delete cplusplus_hint.
|
||||
|
@ -1320,8 +1320,8 @@ find_methods (struct symtab *symtab, char type,
|
||||
continue;
|
||||
|
||||
if (symtab)
|
||||
if ((SYMBOL_VALUE_ADDRESS (msymbol) < block->startaddr) ||
|
||||
(SYMBOL_VALUE_ADDRESS (msymbol) >= block->endaddr))
|
||||
if ((SYMBOL_VALUE_ADDRESS (msymbol) < BLOCK_START (block)) ||
|
||||
(SYMBOL_VALUE_ADDRESS (msymbol) >= BLOCK_END (block)))
|
||||
/* Not in the specified symtab. */
|
||||
continue;
|
||||
|
||||
|
@ -1123,7 +1123,7 @@ parse_exp_1 (char **stringptr, struct block *block, int comma)
|
||||
if (block)
|
||||
{
|
||||
expression_context_block = block;
|
||||
expression_context_pc = block->startaddr;
|
||||
expression_context_pc = BLOCK_START (block);
|
||||
}
|
||||
else
|
||||
expression_context_block = get_selected_block (&expression_context_pc);
|
||||
|
@ -889,7 +889,7 @@ x86_64_skip_prologue (CORE_ADDR pc)
|
||||
if (!v_function || !v_function->ginfo.value.block || !v_sal.symtab)
|
||||
return pc;
|
||||
|
||||
endaddr = v_function->ginfo.value.block->endaddr;
|
||||
endaddr = BLOCK_END (SYMBOL_BLOCK_VALUE (v_function));
|
||||
|
||||
for (i = 0; i < v_sal.symtab->linetable->nitems; i++)
|
||||
if (v_sal.symtab->linetable->item[i].pc >= pc
|
||||
|
Loading…
x
Reference in New Issue
Block a user