Fix gdb mingw build
authorTom Tromey <tom@tromey.com>
Fri, 8 Jun 2018 16:06:43 +0000 (10:06 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 8 Jun 2018 16:07:37 +0000 (10:07 -0600)
I noticed that the mingw build was failing in the buildbot.  This
patch fixes the problem.  I'm checking it in as obvious.

gdb/ChangeLog
2018-06-08  Tom Tromey  <tom@tromey.com>

* windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
now a method.

gdb/ChangeLog
gdb/windows-nat.c

index 4f732b5b81b8d1b3a9220ad3d3549f2a5f787ac8..a10155bd958c6e333b4e4f627d196a7c29571ede 100644 (file)
@@ -1,3 +1,8 @@
+2018-06-08  Tom Tromey  <tom@tromey.com>
+
+       * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
+       now a method.
+
 2018-06-08  Tom Tromey  <tom@tromey.com>
 
        * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
index e3e36cdc3e549900842e80364ecbe1f2f87f3ebb..63a780014abdfb922c7fa0a70d4feb32dd494488 100644 (file)
@@ -2953,8 +2953,8 @@ windows_xfer_shared_libraries (struct target_ops *ops,
 enum target_xfer_status
 windows_nat_target::xfer_partial (enum target_object object,
                                  const char *annex, gdb_byte *readbuf,
-                                 const gdb_byte *writebuf, ULONGEST offset, ULONGEST len,
-                                 ULONGEST *xfered_len)
+                                 const gdb_byte *writebuf, ULONGEST offset,
+                                 ULONGEST len, ULONGEST *xfered_len)
 {
   switch (object)
     {
@@ -2966,16 +2966,16 @@ windows_nat_target::xfer_partial (enum target_object object,
                                            writebuf, offset, len, xfered_len);
 
     default:
-      if (beneath == NULL)
+      if (beneath () == NULL)
        {
          /* This can happen when requesting the transfer of unsupported
             objects before a program has been started (and therefore
             with the current_target having no target beneath).  */
          return TARGET_XFER_E_IO;
        }
-      return beneath->xfer_partial (object, annex,
-                                   readbuf, writebuf, offset, len,
-                                   xfered_len);
+      return beneath ()->xfer_partial (object, annex,
+                                      readbuf, writebuf, offset, len,
+                                      xfered_len);
     }
 }