01917d
2005-02-07  Jeff Johnston  <jjohnstn@redhat.com>
01917d
01917d
        * linux-nat.c (linux_nat_xfer_memory): Don't use
01917d
        linux_proc_xfer_memory for ia64.
01917d
01917d
Index: gdb-6.8.50.20090803/gdb/linux-nat.c
01917d
===================================================================
01917d
--- gdb-6.8.50.20090803.orig/gdb/linux-nat.c	2009-08-04 06:29:47.000000000 +0200
01917d
+++ gdb-6.8.50.20090803/gdb/linux-nat.c	2009-08-04 06:29:55.000000000 +0200
01917d
@@ -4495,10 +4495,15 @@ linux_xfer_partial (struct target_ops *o
01917d
 	offset &= ((ULONGEST) 1 << addr_bit) - 1;
01917d
     }
01917d
 
01917d
+#ifndef NATIVE_XFER_UNWIND_TABLE
01917d
+  /* FIXME: For ia64, we cannot currently use linux_proc_xfer_memory
01917d
+	    for accessing thread storage.  Revert when Bugzilla 147436
01917d
+	    is fixed.  */
01917d
   xfer = linux_proc_xfer_partial (ops, object, annex, readbuf, writebuf,
01917d
 				  offset, len);
01917d
   if (xfer != 0)
01917d
     return xfer;
01917d
+#endif
01917d
 
01917d
   return super_xfer_partial (ops, object, annex, readbuf, writebuf,
01917d
 			     offset, len);