* values.c, value.h (modify_field), callers: Make fieldval a LONGEST.
[deliverable/binutils-gdb.git] / gdb / m88k-pinsn.c
index e6bb9d1e5c60e868a61ca2c1f9a3e518bc91aeec..b427b01707e26d82566fb49cba69b9c138f1970c 100644 (file)
@@ -19,9 +19,8 @@ You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
-#include <stdio.h>
-#include "opcode/m88k.h"
 #include "defs.h"
+#include "opcode/m88k.h"
 #include "symtab.h"
 
 void sprint_address ();
@@ -341,13 +340,13 @@ void sprint_address (addr, buffer)
        if (!fs) {
            msymbol = lookup_minimal_symbol_by_pc (addr);
 
-           if (i == NULL) return;/* If nothing comes through, don't
-                                  print anything symbolic */
+           if (msymbol == NULL) return;  /* If nothing comes through, don't
+                                            print anything symbolic */
 
-           name = msymbol -> name;
-           name_location = msymbol -> address;
+           name = SYMBOL_NAME (msymbol);
+           name_location = SYMBOL_VALUE_ADDRESS (msymbol);
        } else {
-           name = fs->name;
+           name = SYMBOL_NAME (fs);
            name_location = BLOCK_START (SYMBOL_BLOCK_VALUE (fs));
        }
 
This page took 0.023804 seconds and 4 git commands to generate.