aboutsummaryrefslogtreecommitdiff
path: root/gdb/a29k-tdep.c
diff options
context:
space:
mode:
authorKung Hsu <kung@cygnus>1995-04-13 19:37:57 +0000
committerKung Hsu <kung@cygnus>1995-04-13 19:37:57 +0000
commit546e6a3955339d4841cedfde83d1b5603f00c3cd (patch)
tree7ba30122163dd1c0874e3ffe9766696315a172ac /gdb/a29k-tdep.c
parent07dc1e42d795699e0b61acc2b354f5de5e526bd3 (diff)
downloadgdb-546e6a3955339d4841cedfde83d1b5603f00c3cd.zip
gdb-546e6a3955339d4841cedfde83d1b5603f00c3cd.tar.gz
gdb-546e6a3955339d4841cedfde83d1b5603f00c3cd.tar.bz2
* a29k-tdep.c (get_longjmp_target): Replace SWAP_TARGET_AND_HOST with
extract_address. * remote-vxsparc.c: New file, preliminary check in, this configuration not supported yet. * remote-vxmips.c: ditto.
Diffstat (limited to 'gdb/a29k-tdep.c')
-rw-r--r--gdb/a29k-tdep.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/a29k-tdep.c b/gdb/a29k-tdep.c
index dbcd60b..206c676 100644
--- a/gdb/a29k-tdep.c
+++ b/gdb/a29k-tdep.c
@@ -989,14 +989,15 @@ get_longjmp_target(pc)
CORE_ADDR *pc;
{
CORE_ADDR jb_addr;
+ char buf[sizeof(CORE_ADDR)];
jb_addr = read_register(LR2_REGNUM);
- if (target_read_memory(jb_addr + JB_PC * JB_ELEMENT_SIZE, (char *) pc,
+ if (target_read_memory(jb_addr + JB_PC * JB_ELEMENT_SIZE, (char *) buf,
sizeof(CORE_ADDR)))
return 0;
- SWAP_TARGET_AND_HOST(pc, sizeof(CORE_ADDR));
+ *pc = extract_address ((PTR) buf, sizeof(CORE_ADDR));
return 1;
}
#endif /* GET_LONGJMP_TARGET */