accessing minimal symbol data.
* infcmd.c (read_pc): Use #ifdef, not #if.
* symfile.c (syms_from_objfile): Add CONST to decl for targets.
* tm-hppa.h (FIX_CALL_DUMMY): Use new macros for accessing
minimal symbol data.
Mon Dec 28 15:00:01 1992 Stu Grossman (grossman at cygnus.com)
+ * hppah-tdep.c (skip_trampoline_code): Use new macros for
+ accessing minimal symbol data.
+ * infcmd.c (read_pc): Use #ifdef, not #if.
+ * symfile.c (syms_from_objfile): Add CONST to decl for targets.
+ * tm-hppa.h (FIX_CALL_DUMMY): Use new macros for accessing
+ minimal symbol data.
+
* hppah-tdep.c (frame_saved_pc): Use better test for outermost
frame. Use find_return_regnum to find the caller.
* (find_unwind_entry): New routine to locate stack frame info
{
msym = lookup_minimal_symbol ("$$dyncall", NULL);
if (msym)
- dyncall = msym->address;
+ dyncall = SYMBOL_VALUE_ADDRESS (msym);
else
dyncall = -1;
}
add_show_from_set
(add_set_cmd ("use_unwind", class_obscure, var_boolean,
(char *)&use_unwind,
- "Control the useage of unwind info.\n", &setlist),
+ "Set the usage of unwind info", &setlist),
&showlist);
}
list with the one for the bfd we are using.
FIXME: Remove this check after a round of testing.
-- gnu@cygnus.com, 16dec92 */
- char **targets = bfd_target_list ();
+ CONST char **targets = bfd_target_list ();
if (targets != NULL && *targets != NULL)
{
if (bfd_get_symbol_leading_char (objfile->obfd) !=
{ \
struct minimal_symbol *msymbol; \
msymbol = lookup_minimal_symbol ("$$dyncall", (struct objfile *) NULL);\
- if (msymbol == NULL) \
- error ("Can't find an address for $$dyncall trampoline"); \
+ if (msymbol == NULL) \
+ error ("Can't find an address for $$dyncall trampoline"); \
else \
- dyncall_addr = msymbol -> address; \
+ dyncall_addr = SYMBOL_VALUE_ADDRESS (msymbol); \
msymbol = lookup_minimal_symbol ("_sr4export", (struct objfile *) NULL);\
- if (msymbol == NULL) \
+ if (msymbol == NULL) \
error ("Can't find an address for _sr4export trampoline"); \
else \
- sr4export_addr = msymbol -> address; \
+ sr4export_addr = SYMBOL_VALUE_ADDRESS (msymbol); \
} \
dummyname[9] = deposit_21 (fun >> 11, dummyname[9]); \
dummyname[10] = deposit_14 (fun & MASK_11, dummyname[10]); \