Fix build failure on darwin due to darwin_read_dyld_info not being defined.
authorJoel Brobecker <brobecker@gnat.com>
Mon, 7 Jan 2013 11:14:37 +0000 (11:14 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Mon, 7 Jan 2013 11:14:37 +0000 (11:14 +0000)
gdb/ChangeLog:

        * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
        used to decide whether to define darwin_read_dyld_info or not.

gdb/ChangeLog
gdb/darwin-nat.c

index ac806e99ad380ceb8e72fbfb41fd0869b8e88f65..69b71f54fab7d599ea4cf709e9efe953bd12ad27 100644 (file)
@@ -1,3 +1,8 @@
+2013-01-07  Joel Brobecker  <brobecker@adacore.com>
+
+       * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
+       used to decide whether to define darwin_read_dyld_info or not.
+
 2013-01-03  Pierre Muller  <muller@sourceware.org>
 
        * main.c (relocate_gdb_directory): Avoid calling stat function
index 03070481e0bfa39518c0a6ab73b6d91b04c9e070..1344101c7cb70ec3dda18031aa0bf9ee99bd6765 100644 (file)
@@ -1818,7 +1818,7 @@ out:
    to RDADDR.
    Return 0 on failure; number of bytes read / written otherwise.  */
 
-#ifndef TASK_DYLD_INFO_COUNT
+#ifdef TASK_DYLD_INFO_COUNT
 /* This is not available in Darwin 9.  */
 static int
 darwin_read_dyld_info (task_t task, CORE_ADDR addr, char *rdaddr, int length)