Add target_ops argument to to_fileio_readlink
authorTom Tromey <tromey@redhat.com>
Wed, 18 Dec 2013 04:39:24 +0000 (21:39 -0700)
committerTom Tromey <tromey@redhat.com>
Wed, 19 Feb 2014 14:46:14 +0000 (07:46 -0700)
2014-02-19  Tom Tromey  <tromey@redhat.com>

* target.h (struct target_ops) <to_fileio_readlink>: Add argument.
* target.c (target_fileio_readlink): Add argument.
* remote.c (remote_hostio_readlink): Add 'self' argument.
* inf-child.c (inf_child_fileio_readlink): Add 'self' argument.

gdb/ChangeLog
gdb/inf-child.c
gdb/remote.c
gdb/target.c
gdb/target.h

index 24d3b34dcf13632e143f49c2be5d527a8bd9b779..a15a8f3f7ddfcf1543afd583c961d2f807873453 100644 (file)
@@ -1,3 +1,10 @@
+2014-02-19  Tom Tromey  <tromey@redhat.com>
+
+       * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
+       * target.c (target_fileio_readlink): Add argument.
+       * remote.c (remote_hostio_readlink): Add 'self' argument.
+       * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
+
 2014-02-19  Tom Tromey  <tromey@redhat.com>
 
        * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
index eb7550a9c6544b08aeae33ee4547a5c945460080..054e2794717bf3e6cfd793012b18fead6a70b62b 100644 (file)
@@ -344,7 +344,8 @@ inf_child_fileio_unlink (struct target_ops *self,
    null-terminated string allocated via xmalloc, or NULL if an error
    occurs (and set *TARGET_ERRNO).  */
 static char *
-inf_child_fileio_readlink (const char *filename, int *target_errno)
+inf_child_fileio_readlink (struct target_ops *self,
+                          const char *filename, int *target_errno)
 {
   /* We support readlink only on systems that also provide a compile-time
      maximum path length (PATH_MAX), at least for now.  */
index cf8870edbf9da0b4b3381b748f7349cd10e6110d..866c5c00f965457803658537fd6c91292ca14f13 100644 (file)
@@ -9791,7 +9791,8 @@ remote_hostio_unlink (struct target_ops *self,
    occurs (and set *REMOTE_ERRNO).  */
 
 static char *
-remote_hostio_readlink (const char *filename, int *remote_errno)
+remote_hostio_readlink (struct target_ops *self,
+                       const char *filename, int *remote_errno)
 {
   struct remote_state *rs = get_remote_state ();
   char *p = rs->buf;
index 2c4b6b658c3d3078f3382d7bb5618cb8ac960484..a4c04194e7cb53b5e2de940e678ee3831a80275d 100644 (file)
@@ -3509,7 +3509,7 @@ target_fileio_readlink (const char *filename, int *target_errno)
     {
       if (t->to_fileio_readlink != NULL)
        {
-         char *ret = t->to_fileio_readlink (filename, target_errno);
+         char *ret = t->to_fileio_readlink (t, filename, target_errno);
 
          if (targetdebug)
            fprintf_unfiltered (gdb_stdlog,
index 5d5802ef098be80b9e81970bd6f7ebdcddd86406..626da3e4a5d24fd362e4d78686252b503353cfa9 100644 (file)
@@ -746,7 +746,8 @@ struct target_ops
     /* Read value of symbolic link FILENAME on the target.  Return a
        null-terminated string allocated via xmalloc, or NULL if an error
        occurs (and set *TARGET_ERRNO).  */
-    char *(*to_fileio_readlink) (const char *filename, int *target_errno);
+    char *(*to_fileio_readlink) (struct target_ops *,
+                                const char *filename, int *target_errno);
 
 
     /* Implement the "info proc" command.  */
This page took 0.03647 seconds and 4 git commands to generate.