aboutsummaryrefslogtreecommitdiff
path: root/gdb/corelow.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2009-06-17 18:48:26 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2009-06-17 18:48:26 +0000
commita78c2d625ffe6bf34934991e815db484d3393a76 (patch)
tree41b36b94ddb5c674e832c0297b24550ec4c7d606 /gdb/corelow.c
parent3b7538c0317072d430eca4e808b183dac5bd5e45 (diff)
downloadfsf-binutils-gdb-a78c2d625ffe6bf34934991e815db484d3393a76.zip
fsf-binutils-gdb-a78c2d625ffe6bf34934991e815db484d3393a76.tar.gz
fsf-binutils-gdb-a78c2d625ffe6bf34934991e815db484d3393a76.tar.bz2
* gdbarch.sh (gcore_bfd_target): New gdbarch callback.
* gdbarch.h, gdbarch.c: Regenerate. * gcore.c (default_gcore_target): Make return value const. Call gdbarch_gcore_bfd_target if present. (default_gcore_arch, default_gcore_mach): Use target_gdbarch. * corelow.c (core_read_description): Call gdbarch_core_read_description on core_gdbarch instead of current_gdbarch. * ppc-linux-tdep.c (ppc_linux_init_abi): Install gcore_bfd_target.
Diffstat (limited to 'gdb/corelow.c')
-rw-r--r--gdb/corelow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/corelow.c b/gdb/corelow.c
index 88dfe99..b69c2a1 100644
--- a/gdb/corelow.c
+++ b/gdb/corelow.c
@@ -721,8 +721,8 @@ core_thread_alive (struct target_ops *ops, ptid_t ptid)
static const struct target_desc *
core_read_description (struct target_ops *target)
{
- if (gdbarch_core_read_description_p (current_gdbarch))
- return gdbarch_core_read_description (current_gdbarch, target, core_bfd);
+ if (core_gdbarch && gdbarch_core_read_description_p (core_gdbarch))
+ return gdbarch_core_read_description (core_gdbarch, target, core_bfd);
return NULL;
}