This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/8] Disallow using --attach and --wrapper together.


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 (éå)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]