From b8ef816335ed97ac644f527f12edc8aa8e9fac56 Mon Sep 17 00:00:00 2001 From: Stu Grossman Date: Tue, 29 Dec 1992 00:27:18 +0000 Subject: [PATCH] * 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. --- gdb/ChangeLog | 7 +++++++ gdb/hppah-tdep.c | 4 ++-- gdb/symfile.c | 2 +- gdb/tm-hppa.h | 10 +++++----- 4 files changed, 15 insertions(+), 8 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 690b59aa925..5d535a626b8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,12 @@ 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 diff --git a/gdb/hppah-tdep.c b/gdb/hppah-tdep.c index 51608eea77b..e3ff8ea6c6f 100644 --- a/gdb/hppah-tdep.c +++ b/gdb/hppah-tdep.c @@ -768,7 +768,7 @@ skip_trampoline_code (pc, name) { msym = lookup_minimal_symbol ("$$dyncall", NULL); if (msym) - dyncall = msym->address; + dyncall = SYMBOL_VALUE_ADDRESS (msym); else dyncall = -1; } @@ -826,6 +826,6 @@ _initialize_hppah_tdep () 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); } diff --git a/gdb/symfile.c b/gdb/symfile.c index b09c691d0fc..2265693bc39 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -455,7 +455,7 @@ syms_from_objfile (objfile, addr, mainline, verbo) 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) != diff --git a/gdb/tm-hppa.h b/gdb/tm-hppa.h index 97cf7b43c67..c9baee58055 100644 --- a/gdb/tm-hppa.h +++ b/gdb/tm-hppa.h @@ -517,15 +517,15 @@ text_space ; Otherwise, go through _sr4export, { \ 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]); \ -- 2.30.2