This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFC: strip --strip-nondebug
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gdb-patches at sources dot redhat dot com, binutils at sources dot redhat dot com,nickc at redhat dot com
- Date: Thu, 5 Jun 2003 12:24:42 -0400
- Subject: Re: RFC: strip --strip-nondebug
- References: <m34r34a590.fsf@redhat.com> <m37k80y0er.fsf@gossamer.airs.com>
On Thu, Jun 05, 2003 at 09:06:04AM -0700, Ian Lance Taylor wrote:
> Nick Clifton <nickc@redhat.com> writes:
>
> > I am seeking comments and criticisms on the attached patch. It adds
> > a new switch to strip:
> >
> > --strip-nondebug
> >
> > This can be used to create an output file which only contains the
> > debug information from an executable. This would allow stripped
> > binaries to be shipped with separate debug info files, and provided
> > that the debugger supported it, they could still be debugged.
>
> I recommend a different option name. The other --strip* options
> affect only the symbol table and the debugging information. This new
> option also affects the sections. Maybe something like
> strip --nondebug
> or
> strip --keep-debug
> and don't forget
> objcopy --keep-debug
How about:
strip --keep-debug-only
objcopy --keep-debug-only
?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer