This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Locate executables on remote stubs without multiprocess extensions
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Gary Benson <gbenson at redhat dot com>
- Cc: gdb-patches at sourceware dot org, philippe dot waroquiers at skynet dot be
- Date: Wed, 06 May 2015 20:15:02 +0300
- Subject: Re: [PATCH] Locate executables on remote stubs without multiprocess extensions
- Authentication-results: sourceware.org; auth=none
- References: <20150506103145 dot GA30896 at blade dot nx> <1430932230-12551-1-git-send-email-gbenson at redhat dot com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: Gary Benson <gbenson@redhat.com>
> Cc: Philippe Waroquiers <philippe.waroquiers@skynet.be>
> Date: Wed, 6 May 2015 18:10:30 +0100
>
> This commit allows GDB to determine filenames of main executables
> when debugging using remote stubs without multiprocess extensions.
> The qXfer:exec-file:read packet is extended to allow an empty
> annex, with the meaning that the remote stub should supply the
> filename of whatever it thinks is the current process.
>
> Built and regtested on RHEL6.6 x86_64.
>
> Is this ok to commit?
>
> Cheers,
> Gary
>
>
> gdb/ChangeLog:
>
> * remote.c (remote_add_inferior): Call exec_file_locate_attach
> for fake PIDs as well as real ones.
> (remote_pid_to_exec_file): Send empty annex if PID is fake.
>
> gdb/doc/ChangeLog:
>
> * gdb.texinfo (General Query Packets): Document
> qXfer:exec-file:read with empty annex.
>
> gdb/gdbserver/ChangeLog:
>
> * server.c (handle_qxfer_exec_file): Use current process
> if annex is empty.
The documentation part is OK.
Thanks.