aboutsummaryrefslogtreecommitdiff
path: root/gdb/rs6000-nat.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2009-03-15 20:26:11 +0000
committerJoel Brobecker <brobecker@gnat.com>2009-03-15 20:26:11 +0000
commit1ba0a4eebc1439600bcfa5077d568a86f648201d (patch)
tree4910cb47776f16acfdec2ad35973858e2b09cd9d /gdb/rs6000-nat.c
parentd30acaa715bbe0d2e628831b1eabca166114652e (diff)
downloadgdb-1ba0a4eebc1439600bcfa5077d568a86f648201d.zip
gdb-1ba0a4eebc1439600bcfa5077d568a86f648201d.tar.gz
gdb-1ba0a4eebc1439600bcfa5077d568a86f648201d.tar.bz2
Fix an error happening while loading symbols from a core file
(on AIX). * rs6000-nat.c (xcoff_relocate_symtab): Use target_has_execution to detect whether we're debugging a core file or not.
Diffstat (limited to 'gdb/rs6000-nat.c')
-rw-r--r--gdb/rs6000-nat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c
index 9f8a43f..5241183 100644
--- a/gdb/rs6000-nat.c
+++ b/gdb/rs6000-nat.c
@@ -1036,7 +1036,8 @@ xcoff_relocate_symtab (unsigned int pid)
int ldisize = arch64 ? sizeof (ldi->l64) : sizeof (ldi->l32);
int size;
- if (ptid_equal (inferior_ptid, null_ptid))
+ /* Nothing to do if we are debugging a core file. */
+ if (!target_has_execution)
return;
do