This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/8] Disallow using --attach and --wrapper together.
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: Yao Qi <qiyaoltc at gmail dot com>, gdb-patches at sourceware dot org
- Date: Fri, 24 Jul 2015 09:44:11 +0100
- Subject: Re: [PATCH 1/8] Disallow using --attach and --wrapper together.
- Authentication-results: sourceware.org; auth=none
- References: <1437392126-29503-1-git-send-email-yao dot qi at linaro dot org> <1437392126-29503-2-git-send-email-yao dot qi at linaro dot org> <55B16AC0 dot 4090808 at redhat dot com>
Pedro Alves <palves@redhat.com> writes:
> Really not sure about this. It's reasonable to do e.g.,
> alias gs="gdbserver --wrapper=/whatever/wrapper --"
> (or the equivalent wrapper shell script that execs gdbserver)
> and then always start that instead of gdbserver:
>
> sometimes:
>
> $ gs :9999 PROGRAM
>
> othertimes:
>
> $ gs --attach :9999 $pid
>
> but after the patch, the latter errors out.
IMO, it makes sense to error out in the latter case, because --wrapper
is useless if GDBserver attaches to a process.
>
> Plus, one can combine --attach and --multi, which means
> that the wrapper would still apply to processes spawned
> after connecting.
I agree on this case. I withdraw this patch.
--
Yao (éå)