aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1992-12-29 00:27:18 +0000
committerStu Grossman <grossman@cygnus>1992-12-29 00:27:18 +0000
commitb8ef816335ed97ac644f527f12edc8aa8e9fac56 (patch)
treeb4368d578b1114f1a206ceaf778fea1f3e6c14b0
parentb5c10493e9666be2c7413ffcf712160d35246966 (diff)
downloadgdb-b8ef816335ed97ac644f527f12edc8aa8e9fac56.zip
gdb-b8ef816335ed97ac644f527f12edc8aa8e9fac56.tar.gz
gdb-b8ef816335ed97ac644f527f12edc8aa8e9fac56.tar.bz2
* 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.
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/hppah-tdep.c4
-rw-r--r--gdb/symfile.c2
-rw-r--r--gdb/tm-hppa.h10
4 files changed, 15 insertions, 8 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 690b59a..5d535a6 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 51608ee..e3ff8ea 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 b09c691..2265693 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 97cf7b4..c9baee5 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]); \