* hppah-tdep.c (skip_trampoline_code): Use new macros for
authorStu Grossman <grossman@cygnus>
Tue, 29 Dec 1992 00:27:18 +0000 (00:27 +0000)
committerStu Grossman <grossman@cygnus>
Tue, 29 Dec 1992 00:27:18 +0000 (00:27 +0000)
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
gdb/hppah-tdep.c
gdb/symfile.c
gdb/tm-hppa.h

index 690b59aa92585b2c8976b5163b9d74ff07139d6d..5d535a626b8a9b2bdd65cdc5a19fd53781d576c4 100644 (file)
@@ -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
index 51608eea77ba7cef613eb1b45cd0ffb170c56eb1..e3ff8ea6c6f62d238aa434bba4302b0a3882ebe4 100644 (file)
@@ -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);
 }
index b09c691d0fc0af14953dd498c2144f28eea2024e..2265693bc3961960ff9510eaa7a39e55b3da0375 100644 (file)
@@ -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) !=
index 97cf7b43c67b898269a70a0314e3538193702b55..c9baee58055ca8544eadb2c3d41e151765f0ee73 100644 (file)
@@ -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]);            \