From 546e6a3955339d4841cedfde83d1b5603f00c3cd Mon Sep 17 00:00:00 2001 From: Kung Hsu Date: Thu, 13 Apr 1995 19:37:57 +0000 Subject: [PATCH] * 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. --- gdb/ChangeLog | 13 +++++++++++++ gdb/a29k-tdep.c | 5 +++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0b9154f4d5..c9b8dc95be 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,16 @@ +Thu Apr 13 12:23:31 1995 Kung Hsu + + * 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. + +Thu Apr 13 12:10:14 1995 Michael Meissner + + * rs6000-tdep.c (xcoff_add_toc_to_loadinfo): Don't use a prototype + to declare the function. + Wed Apr 12 16:40:20 1995 Stan Shebs * monitor.h (init_monitor_ops): Declare. diff --git a/gdb/a29k-tdep.c b/gdb/a29k-tdep.c index dbcd60b0ad..206c676b0f 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 */