Fix base class function call
authorChristian Biesinger <cbiesinger@google.com>
Wed, 5 Feb 2020 17:43:22 +0000 (11:43 -0600)
committerChristian Biesinger <cbiesinger@google.com>
Wed, 5 Feb 2020 17:51:58 +0000 (11:51 -0600)
This was a typo introduced in f6ac5f3d63e03a81c4ff3749aba234961cc9090e.

Found by looking through NetBSD's GDB patches:
https://github.com/NetBSD/pkgsrc-wip/blob/master/gdb-netbsd/patches/patch-gdb_sparc-nat.h

This patch can't be tested on Linux because Linux does not use the
sparc_target template.

gdb/ChangeLog:

2020-02-05  Christian Biesinger  <cbiesinger@google.com>

* sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
function call.

Change-Id: I4fa88cbdc365efe89b84cc0619b60db38718d9ce

gdb/ChangeLog
gdb/sparc-nat.h

index 193edf0507d56a02f9bbdda6c0b97f0f67b00682..b38ec254d1f53a1b415991700a072f21c1ce7dc7 100644 (file)
@@ -1,3 +1,8 @@
+2020-02-05  Christian Biesinger  <cbiesinger@google.com>
+
+       * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
+       function call.
+
 2020-02-05  Christian Biesinger  <cbiesinger@google.com>
 
        * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
index 1dbdd80b5ed6998ecbbf61c1b133aa57171e1536..d07bd86d039776b99dc4105ee03eca1ca86ef294 100644 (file)
@@ -75,8 +75,8 @@ struct sparc_target : public BaseTarget
       return sparc_xfer_wcookie (object, annex, readbuf, writebuf,
                                 offset, len, xfered_len);
 
-    return BaseTarget (object, annex, readbuf, writebuf,
-                      offset, len, xfered_len);
+    return BaseTarget::xfer_partial (object, annex, readbuf, writebuf,
+                                    offset, len, xfered_len);
   }
 };