28fdd94
2005-02-07  Jeff Johnston  <jjohnstn@redhat.com>
20b150b
28fdd94
        * linux-nat.c (linux_nat_xfer_memory): Don't use
9dde329
        linux_proc_xfer_memory for ia64.
20b150b
9231e41
Index: gdb-6.5/gdb/linux-nat.c
9231e41
===================================================================
9231e41
--- gdb-6.5.orig/gdb/linux-nat.c	2006-07-07 00:57:56.000000000 -0300
9231e41
+++ gdb-6.5/gdb/linux-nat.c	2006-07-07 02:24:51.000000000 -0300
9231e41
@@ -3152,10 +3152,15 @@ linux_xfer_partial (struct target_ops *o
9231e41
     return procfs_xfer_auxv (ops, object, annex, readbuf, writebuf,
9231e41
 			     offset, len);
20b150b
 
9231e41
+#ifndef NATIVE_XFER_UNWIND_TABLE
28fdd94
+  /* FIXME: For ia64, we cannot currently use linux_proc_xfer_memory
28fdd94
+            for accessing thread storage.  Revert when Bugzilla 147436
28fdd94
+	    is fixed.  */
9231e41
   xfer = linux_proc_xfer_partial (ops, object, annex, readbuf, writebuf,
9231e41
 				  offset, len);
9231e41
   if (xfer != 0)
9231e41
     return xfer;
28fdd94
+#endif
20b150b
 
9231e41
   return super_xfer_partial (ops, object, annex, readbuf, writebuf,
9231e41
 			     offset, len);