summaryrefslogtreecommitdiff
path: root/gdb/m88k-pinsn.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-02-22 01:46:16 +0000
committerJohn Gilmore <gnu@cygnus>1992-02-22 01:46:16 +0000
commit1ab3bf1b148d31aad66735f52f9ff72af8769cd0 (patch)
treef599e61700fc54d6ecd3d090e3d01cf6fa66a801 /gdb/m88k-pinsn.c
parent8e48d87af60233cc7e8dc18ab4e8f63d223ac20f (diff)
downloadbinutils-gdb-1ab3bf1b148d31aad66735f52f9ff72af8769cd0.tar.gz
* Check in Fred Fish's changes in these modules. Fred
will make ChangeLog entries for all of them.
Diffstat (limited to 'gdb/m88k-pinsn.c')
-rw-r--r--gdb/m88k-pinsn.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/m88k-pinsn.c b/gdb/m88k-pinsn.c
index 325c4ed4e37..e6bb9d1e5c6 100644
--- a/gdb/m88k-pinsn.c
+++ b/gdb/m88k-pinsn.c
@@ -329,7 +329,7 @@ void sprint_address (addr, buffer)
char *buffer;
{
- register int i;
+ struct minimal_symbol *msymbol;
struct symbol *fs;
char *name;
int name_location;
@@ -339,13 +339,13 @@ void sprint_address (addr, buffer)
fs = find_pc_function (addr);
if (!fs) {
- i = find_pc_misc_function (addr);
+ msymbol = lookup_minimal_symbol_by_pc (addr);
- if (i < 0) return; /* If nothing comes through, don't
+ if (i == NULL) return;/* If nothing comes through, don't
print anything symbolic */
- name = misc_function_vector[i].name;
- name_location = misc_function_vector[i].address;
+ name = msymbol -> name;
+ name_location = msymbol -> address;
} else {
name = fs->name;
name_location = BLOCK_START (SYMBOL_BLOCK_VALUE (fs));