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