Index: rs6000-nat.c =================================================================== RCS file: /cvs/src/src/gdb/rs6000-nat.c,v retrieving revision 1.70 diff -u -p -r1.70 rs6000-nat.c --- rs6000-nat.c 11 May 2007 19:55:20 -0000 1.70 +++ rs6000-nat.c 18 May 2007 22:17:46 -0000 @@ -1016,7 +1016,9 @@ rs6000_create_inferior (char *exec_file, /* xcoff_relocate_symtab - hook for symbol table relocation. - also reads shared libraries. */ + + This is only applicable to live processes, and is a no-op when + debugging a core file. */ void xcoff_relocate_symtab (unsigned int pid) @@ -1028,6 +1030,9 @@ xcoff_relocate_symtab (unsigned int pid) int ldisize = arch64 ? sizeof (ldi->l64) : sizeof (ldi->l32); int size; + if (ptid_equal (inferior_ptid, null_ptid)) + return; + do { size = load_segs * ldisize;