Single-executable patch

Daniel Jacobowitz drow@false.org
Wed May 17 20:23:00 GMT 2006


On Wed, May 17, 2006 at 03:27:35PM -0400, Mikhail Teterin wrote:
> ?????? 17 ??????? 2006 15:07, Daniel Jacobowitz ???????:
> > This has been a world of trouble for other programs in the past,
> 
> I wonder, what kind of trouble?

Portability.  There are many other platforms out there and many of them
are very strange...

> > If this is all you want, here's a simple implementation:
> >
> > /usr/bin/gdbtui:
> > #!/usr/bin/gdb -i=tui
> 
> Cool! I wonder, why even bother linking other executables... It would make 
> sense to do it, if, for example, the gdb was not linking with Tcl and 
> friends, but it does anyway...

It's easier if you only want one of them, and if you aren't installing
in fixed paths.  Portably locating the invoked shell script is also a
bit tricky.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb-patches mailing list