a core file. Add comment in the function description.
+2007-05-19 Joel Brobecker <brobecker@adacore.com>
+
+ * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
+ a core file. Add comment in the function description.
+
2007-05-18 Caroline Tice <ctice@apple.com>
* c-valprint.c (c_value_print): If the initialized field of the
\f
/* 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)
int ldisize = arch64 ? sizeof (ldi->l64) : sizeof (ldi->l32);
int size;
+ if (ptid_equal (inferior_ptid, null_ptid))
+ return;
+
do
{
size = load_segs * ldisize;