mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-15 05:01:13 +08:00
use the SYMBOL_VALUE macro -- from Stu
This commit is contained in:
@ -61,7 +61,7 @@ nindy_frame_chain_valid (chain, curframe)
|
|||||||
sym = lookup_symbol(sf, 0, VAR_NAMESPACE, (int *)NULL,
|
sym = lookup_symbol(sf, 0, VAR_NAMESPACE, (int *)NULL,
|
||||||
(struct symtab **)NULL);
|
(struct symtab **)NULL);
|
||||||
if ( sym != 0 ){
|
if ( sym != 0 ){
|
||||||
a = sym->value.value;
|
a = SYMBOL_VALUE (sym);
|
||||||
} else {
|
} else {
|
||||||
msymbol = lookup_minimal_symbol (sf, (struct objfile *) NULL);
|
msymbol = lookup_minimal_symbol (sf, (struct objfile *) NULL);
|
||||||
if (msymbol == NULL)
|
if (msymbol == NULL)
|
||||||
|
Reference in New Issue
Block a user