This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC 13/32] Add target_ops argument to to_get_ada_task_ptid
- From: Pedro Alves <palves at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 14 Jan 2014 13:21:46 +0000
- Subject: Re: [RFC 13/32] Add target_ops argument to to_get_ada_task_ptid
- Authentication-results: sourceware.org; auth=none
- References: <1389640367-5571-1-git-send-email-tromey at redhat dot com> <1389640367-5571-14-git-send-email-tromey at redhat dot com>
Looks fine to me.
On 01/13/2014 07:12 PM, Tom Tromey wrote:
> @@ -10036,7 +10037,8 @@ remote_bfd_iovec_open (struct bfd *abfd, void *open_closure)
>
> gdb_assert (remote_filename_p (filename));
>
> - fd = remote_hostio_open (filename + 7, FILEIO_O_RDONLY, 0, &remote_errno);
> + fd = remote_hostio_open (find_target_at (process_stratum),
> + filename + 7, FILEIO_O_RDONLY, 0, &remote_errno);
Ah, I see find_target_at is indeed used in this series.
(I ought to somehow resurrect my patch to make this
work with native targets too. I.e., use target_hostio_xxx
instead.)
--
Pedro Alves